Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = &cobra.Command{ Use: "itctl", Short: "Control the itd daemon for InfiniTime smartwatches", Run: func(cmd *cobra.Command, args []string) { sh := ishell.New() sh.SetPrompt("itctl> ") for _, subCmd := range cmd.Commands() { sh.AddCmd(&ishell.Cmd{ Name: subCmd.Name(), Help: subCmd.Short, Aliases: subCmd.Aliases, LongHelp: subCmd.Long, Func: func(ctx *ishell.Context) { args := append([]string{ctx.Cmd.Name}, ctx.Args...) cmd.SetArgs(args) cmd.Execute() }, }) } sh.Run() }, }
RootCmd represents the base command when called without any subcommands
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.