Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Version = "0.1.0"
Version is set at build time via ldflags.
Functions ¶
func AddCLISubcommands ¶ added in v0.39.14
AddCLISubcommands registers the core Base CLI subcommands (collection, record, login, whoami, crons, daemon) directly onto the given parent command. Use this instead of NewCLICommand when you want the commands at root level (e.g. `base collection list` instead of `base cli collection list`).
Does NOT add network flags (--mainnet, --testnet, --devnet, --dev) or infrastructure commands (cluster, operator, config, status, self, rpc) because the parent's root typically already has a --dev flag from Base.
func NewCLICommand ¶ added in v0.39.14
NewCLICommand returns the top-level Cobra command tree for the Base CLI client. These subcommands hit the running server's HTTP API, so they work against any daemon that embeds Base, by URL.
Usage from a downstream daemon:
rootCmd.AddCommand(cmd.NewCLICommand())
Types ¶
This section is empty.