Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LinkCmd ¶
type LinkCmd struct {
Io *iostreams.IOStreams
GetWorkDir func() (string, error)
FileReader func(path string) ([]byte, error)
LookPath func(bin string) (string, error)
IsDirEmpty func(dirpath string) (bool, error)
CleanDir func(dirpath string) error
WriteFile func(filename string, data []byte, perm fs.FileMode) error
OpenFile func(name string) (*os.File, error)
RemoveAll func(path string) error
Rename func(oldpath string, newpath string) error
EnvLoader func(path string) ([]string, error)
Stat func(path string) (fs.FileInfo, error)
Mkdir func(path string, perm os.FileMode) error
CommandRunner func(f *cmdutil.Factory, comm string, envVars []string) (string, error)
CommandRunInteractive func(f *cmdutil.Factory, comm string) error
ShouldConfigure func(info *LinkInfo) bool
ShouldDevDeploy func(info *LinkInfo, msg string, defaultYes bool) bool
DeployCmd func(f *cmdutil.Factory) *deploy.DeployCmd
DevCmd func(f *cmdutil.Factory) *dev.DevCmd
BuildCmd func(f *cmdutil.Factory) *build.BuildCmd
F *cmdutil.Factory
}
func NewLinkCmd ¶
Click to show internal directories.
Click to hide internal directories.