Documentation
¶
Overview ¶
Package bootstrap initializes the ctx CLI application.
It provides functions to create the root command and register all subcommands. The typical usage pattern is:
cmd := bootstrap.Initialize(bootstrap.RootCmd())
if err := cmd.Execute(); err != nil {
// handle error
}
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Initialize ¶
Initialize registers all ctx subcommands with the root command.
This function attaches all available subcommands (init, status, load, add, complete, agent, drift, sync, compact, watch, hook, session, tasks, loop) to the provided root command.
Parameters:
- cmd: The root cobra command to attach subcommands to
Returns:
- *cobra.Command: The same command with all subcommands registered
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.