Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var StartCmd = cobra.Command{ Use: "start", Short: "Start the local agent", Long: "Start the local agent", Run: func(cmd *cobra.Command, args []string) { ctx := cmd.Context() cfg, err := config.LoadConfig() if err != nil { fmt.Fprintln(os.Stderr, err) ExitCLI(1) } log.Printf("starting agent [%s] connecting to %s", cfg.Name, cfg.ServerURL) session, err := initialization.Start(ctx, cfg) if err != nil { fmt.Fprintln(os.Stderr, err) ExitCLI(1) } session.WaitUntilDisconnected() session.Close() }, }
Functions ¶
func RegisterCLIExitInterceptor ¶
func RegisterCLIExitInterceptor(interceptor func(int))
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.