Documentation ¶
Index ¶
- Variables
- func Execute()
- func GetCmdCtxPtr() *cmdcontext.CmdCtx
- func GetModulesInfoPtr() *modules.ModulesInfo
- func InitRoot()
- func InternalUninstallModule(cmdCtx *cmdcontext.CmdCtx, args []string) error
- func NewBinariesCmd() *cobra.Command
- func NewBuildCmd() *cobra.Command
- func NewCartridgeCmd() *cobra.Command
- func NewCatCmd() *cobra.Command
- func NewCfgCmd() *cobra.Command
- func NewCheckCmd() *cobra.Command
- func NewCleanCmd() *cobra.Command
- func NewClusterCmd() *cobra.Command
- func NewCmdRoot() *cobra.Command
- func NewCompletionCmd() *cobra.Command
- func NewConnectCmd() *cobra.Command
- func NewCoredumpCmd() *cobra.Command
- func NewCreateCmd() *cobra.Command
- func NewDaemonCmd() *cobra.Command
- func NewDumpCmd() *cobra.Command
- func NewInitCmd() *cobra.Command
- func NewInstallCmd() *cobra.Command
- func NewInstancesCmd() *cobra.Command
- func NewLogrotateCmd() *cobra.Command
- func NewPackCmd() *cobra.Command
- func NewPlayCmd() *cobra.Command
- func NewRestartCmd() *cobra.Command
- func NewRocksCmd() *cobra.Command
- func NewRunCmd() *cobra.Command
- func NewSearchCmd() *cobra.Command
- func NewStartCmd() *cobra.Command
- func NewStatusCmd() *cobra.Command
- func NewStopCmd() *cobra.Command
- func NewUninstallCmd() *cobra.Command
- func NewVersionCmd() *cobra.Command
- func RootShellCompletionCommands(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
- type DefaultHelpFunc
- type LogHandler
Constants ¶
This section is empty.
Variables ¶
var ( // InjectedCmds is populated with the command to be injected into root. // TT-EE. InjectedCmds []*cobra.Command )
Functions ¶
func Execute ¶
func Execute()
Execute root command. If received error is of an ArgError type, usage help is printed.
func GetCmdCtxPtr ¶
func GetCmdCtxPtr() *cmdcontext.CmdCtx
GetCmdCtxPtr returns a pointer to cmdCtx, which can be used to create injected commands. TT-EE.
func GetModulesInfoPtr ¶
func GetModulesInfoPtr() *modules.ModulesInfo
GetModulesInfoPtr returns a pointer to modulesInfo, which can be used to create injected commands. TT-EE.
func InitRoot ¶
func InitRoot()
InitRoot initializes global flags, configures CLI, configure external modules, collects information about available modules and configure `help` module.
func InternalUninstallModule ¶ added in v0.3.0
func InternalUninstallModule(cmdCtx *cmdcontext.CmdCtx, args []string) error
InternalUninstallModule is a default uninstall module.
func NewBinariesCmd ¶ added in v1.0.0
NewBinariesCmd creates binaries command.
func NewCartridgeCmd ¶
NewCartridgeCmd chains commands from cartridge-cli to our corba tree.
func NewClusterCmd ¶ added in v1.3.0
func NewCompletionCmd ¶
NewCompletionCmd creates a new completion command.
func NewCreateCmd ¶
NewCreateCmd creates an application from a template.
func NewDumpCmd ¶ added in v0.4.0
NewDumpCmd creates a new dump command.
func NewInitCmd ¶
NewInitCmd analyses current working directory and generates tt.yaml for existing application found in working dir. It there is no app in current directory, default version of tt.yaml will be generated.
func NewInstancesCmd ¶ added in v1.0.0
NewInstancesCmd creates instances command.
func NewLogrotateCmd ¶
NewLogrotateCmd creates logrotate command.
func NewPackCmd ¶
func NewUninstallCmd ¶ added in v0.3.0
NewUninstallCmd creates uninstall command.
func NewVersionCmd ¶
NewVersionCmd creates a new version command.
func RootShellCompletionCommands ¶
func RootShellCompletionCommands(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
RootShellCompletionCommands returns a list of external commands for autocomplete.
Types ¶
type DefaultHelpFunc ¶
DefaultHelpFunc is a type of the standard built-in cobra implementation of the help function.
type LogHandler ¶ added in v0.4.0
type LogHandler struct{}
LogHandler is a custom log handler implementation used to print formatted error and warning log messages.
Source Files ¶
- binaries.go
- build.go
- cartridge.go
- cat.go
- cfg.go
- cfg_dump.go
- check.go
- clean.go
- cluster.go
- common.go
- completion.go
- connect.go
- coredump.go
- create.go
- daemon.go
- help.go
- init.go
- install.go
- instances.go
- logrotate.go
- pack.go
- play.go
- restart.go
- rocks.go
- root.go
- run.go
- search.go
- start.go
- status.go
- stop.go
- uninstall.go
- version.go