Documentation
¶
Overview ¶
Package configcmd provides lango config get/set/keys subcommands.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewConfigCmd ¶
NewConfigCmd creates the "config" parent command with all profile subcommands. bootLoader is called to obtain the bootstrap result (DB + crypto + config). The caller wires get/set/keys subcommands separately if needed.
func NewKeysCmd ¶
NewKeysCmd creates the "config keys [prefix]" command.
func NewSetCmd ¶
func NewSetCmd( cfgLoader func() (*config.Config, func(), error), cfgSaver func(*config.Config) error, ) *cobra.Command
NewSetCmd creates the "config set <dot.path> <value>" command. The passphrase is implicitly verified via bootstrap (caller must bootstrap first). cfgLoader returns (config, cleanup, error). cleanup closes bootstrap resources and is called via defer in RunE so resources are released on all code paths.
Types ¶
This section is empty.