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 NewCmdAuth(f *cmdutil.Factory) *cobra.Command {
|
||||
cmd := &cobra.Command{
|
||||
Use: "auth <command>",
|
||||
Short: "Authenticate proboctl with Probo",
|
||||
Short: "Authenticate prb with Probo",
|
||||
}
|
||||
|
||||
cmd.AddCommand(login.NewCmdLogin(f))
|
||||
|
||||
@@ -34,10 +34,10 @@ func NewCmdLogin(f *cmdutil.Factory) *cobra.Command {
|
||||
Use: "login",
|
||||
Short: "Authenticate with a Probo host",
|
||||
Example: ` # Interactive login (prompts for hostname, token, and org)
|
||||
proboctl auth login
|
||||
prb auth login
|
||||
|
||||
# Non-interactive login
|
||||
proboctl auth login --hostname app.getprobo.com --token <token> --org <org-id>`,
|
||||
prb auth login --hostname app.getprobo.com --token <token> --org <org-id>`,
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
if f.IOStreams.IsInteractive() {
|
||||
if flagHost == "" {
|
||||
|
||||
@@ -31,10 +31,10 @@ func NewCmdLogout(f *cmdutil.Factory) *cobra.Command {
|
||||
Use: "logout",
|
||||
Short: "Log out of a Probo host",
|
||||
Example: ` # Log out of the active host
|
||||
proboctl auth logout
|
||||
prb auth logout
|
||||
|
||||
# Log out of a specific host
|
||||
proboctl auth logout --hostname app.getprobo.com`,
|
||||
prb auth logout --hostname app.getprobo.com`,
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
cfg, err := f.Config()
|
||||
if err != nil {
|
||||
|
||||
@@ -27,7 +27,7 @@ func NewCmdStatus(f *cmdutil.Factory) *cobra.Command {
|
||||
Use: "status",
|
||||
Short: "View authentication status",
|
||||
Example: ` # Show all configured hosts and their authentication status
|
||||
proboctl auth status`,
|
||||
prb auth status`,
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
cfg, err := f.Config()
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user