Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = common.StandardCommand(&cobra.Command{ Use: "ak", Short: "autokitteh command-line interface and local server", PersistentPreRunE: func(cmd *cobra.Command, args []string) error { if json { common.SetRenderer(common.JSONRenderer) if arrayJSONList { common.SetArrayJSONList(true) } } if niceJSON { common.SetRenderer(common.NiceJSONRenderer) } path := filepath.Join(xdg.ConfigHomeDir(), ".env") if err := godotenv.Load(path); err != nil { if !errors.Is(err, os.ErrNotExist) { return fmt.Errorf(".env file loading error: %w", err) } } confmap, err := parseConfigs(configs) if err != nil { return err } if err := common.InitConfig(confmap); err != nil { return fmt.Errorf("init root config: %w", err) } return common.InitRPCClient(token) }, })
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.