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:
@@ -60,7 +60,7 @@ func NewCmdCreate(f *cmdutil.Factory) *cobra.Command {
|
||||
Use: "create",
|
||||
Short: "Create a new statement of applicability",
|
||||
Example: ` # Create a statement of applicability
|
||||
proboctl soa create --name "ISO 27001 SoA" --owner PROFILE_ID`,
|
||||
prb soa create --name "ISO 27001 SoA" --owner PROFILE_ID`,
|
||||
Args: cobra.NoArgs,
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
cfg, err := f.Config()
|
||||
@@ -85,7 +85,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'")
|
||||
}
|
||||
|
||||
input := map[string]any{
|
||||
|
||||
@@ -96,7 +96,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{
|
||||
|
||||
@@ -73,10 +73,10 @@ func NewCmdAdd(f *cmdutil.Factory) *cobra.Command {
|
||||
Use: "add",
|
||||
Short: "Add an applicability statement to a SoA",
|
||||
Example: ` # Add a control as applicable
|
||||
proboctl soa statement add --soa SOA_ID --control CTRL_ID --applicable
|
||||
prb soa statement add --soa SOA_ID --control CTRL_ID --applicable
|
||||
|
||||
# Add a control as not applicable with justification
|
||||
proboctl soa statement add --soa SOA_ID --control CTRL_ID --not-applicable --justification "Not in scope"`,
|
||||
prb soa statement add --soa SOA_ID --control CTRL_ID --not-applicable --justification "Not in scope"`,
|
||||
Args: cobra.NoArgs,
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
if flagApplicable && flagNotApplicable {
|
||||
|
||||
Reference in New Issue
Block a user