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:
@@ -83,10 +83,10 @@ func NewCmdCreate(f *cmdutil.Factory) *cobra.Command {
|
||||
Use: "create",
|
||||
Short: "Create a new risk",
|
||||
Example: ` # Create a risk interactively
|
||||
proboctl risk create --inherent-likelihood 3 --inherent-impact 4
|
||||
prb risk create --inherent-likelihood 3 --inherent-impact 4
|
||||
|
||||
# Create a risk non-interactively
|
||||
proboctl risk create --name "Data breach" --category "Security" --treatment MITIGATED --inherent-likelihood 3 --inherent-impact 4`,
|
||||
prb risk create --name "Data breach" --category "Security" --treatment MITIGATED --inherent-likelihood 3 --inherent-impact 4`,
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
cfg, err := f.Config()
|
||||
if err != nil {
|
||||
@@ -110,7 +110,7 @@ func NewCmdCreate(f *cmdutil.Factory) *cobra.Command {
|
||||
}
|
||||
|
||||
if flagOrg == "" {
|
||||
return fmt.Errorf("organization is required; pass --org or set a default with 'proboctl auth login'")
|
||||
return fmt.Errorf("organization is required; pass --org or set a default with 'prb auth login'")
|
||||
}
|
||||
|
||||
if f.IOStreams.IsInteractive() {
|
||||
|
||||
@@ -74,13 +74,13 @@ func NewCmdList(f *cmdutil.Factory) *cobra.Command {
|
||||
Short: "List risks in an organization",
|
||||
Aliases: []string{"ls"},
|
||||
Example: ` # List risks in the default organization
|
||||
proboctl risk list
|
||||
prb risk list
|
||||
|
||||
# Filter risks by name
|
||||
proboctl risk list --filter "data breach"
|
||||
prb risk list --filter "data breach"
|
||||
|
||||
# List risks sorted by inherent score
|
||||
proboctl risk ls --order-by INHERENT_RISK_SCORE --json`,
|
||||
prb risk ls --order-by INHERENT_RISK_SCORE --json`,
|
||||
Args: cobra.NoArgs,
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
if err := cmdutil.ValidateOutputFlag(flagOutput); err != nil {
|
||||
@@ -109,7 +109,7 @@ func NewCmdList(f *cmdutil.Factory) *cobra.Command {
|
||||
}
|
||||
|
||||
if flagOrg == "" {
|
||||
return fmt.Errorf("organization is required; pass --org or set a default with 'proboctl auth login'")
|
||||
return fmt.Errorf("organization is required; pass --org or set a default with 'prb auth login'")
|
||||
}
|
||||
|
||||
variables := map[string]any{
|
||||
|
||||
Reference in New Issue
Block a user