Rename proboctl CLI binary to prb
Shorter CLI name for faster typing. Renames the binary, build targets, goreleaser config, command examples, and documentation. Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
@@ -25,7 +25,7 @@ import (
|
||||
func NewCmdConfig(f *cmdutil.Factory) *cobra.Command {
|
||||
cmd := &cobra.Command{
|
||||
Use: "config <command>",
|
||||
Short: "Manage configuration for proboctl",
|
||||
Short: "Manage configuration for prb",
|
||||
}
|
||||
|
||||
cmd.AddCommand(configget.NewCmdConfigGet(f))
|
||||
|
||||
@@ -27,10 +27,10 @@ func NewCmdConfigGet(f *cmdutil.Factory) *cobra.Command {
|
||||
Short: "Print the value of a given configuration key",
|
||||
Long: "Print the value of a given configuration key.\n\nAvailable keys: editor, browser, pager, prompt, http_timeout",
|
||||
Example: ` # Get the configured editor
|
||||
proboctl config get editor
|
||||
prb config get editor
|
||||
|
||||
# Get the HTTP timeout
|
||||
proboctl config get http_timeout`,
|
||||
prb config get http_timeout`,
|
||||
Args: cobra.ExactArgs(1),
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
cfg, err := f.Config()
|
||||
|
||||
@@ -27,13 +27,13 @@ func NewCmdConfigSet(f *cmdutil.Factory) *cobra.Command {
|
||||
Short: "Update configuration with a value for the given key",
|
||||
Long: "Update configuration with a value for the given key.\n\nAvailable keys: editor, browser, pager, prompt, http_timeout",
|
||||
Example: ` # Set the default editor
|
||||
proboctl config set editor vim
|
||||
prb config set editor vim
|
||||
|
||||
# Set the HTTP timeout to 60 seconds
|
||||
proboctl config set http_timeout 60s
|
||||
prb config set http_timeout 60s
|
||||
|
||||
# Disable interactive prompts
|
||||
proboctl config set prompt disabled`,
|
||||
prb config set prompt disabled`,
|
||||
Args: cobra.ExactArgs(2),
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
cfg, err := f.Config()
|
||||
|
||||
Reference in New Issue
Block a user