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:
Bryan Frimin
2026-03-16 15:10:01 +01:00
parent 1f1df63676
commit 7e86d2c89f
30 changed files with 82 additions and 82 deletions

View File

@@ -44,17 +44,17 @@ func NewCmdAPI(f *cmdutil.Factory) *cobra.Command {
Short: "Make an authenticated GraphQL request",
Long: "Send a GraphQL query or mutation to the Probo API and print the response.",
Example: ` # Run a query against the console schema (default)
proboctl api 'query { viewer { id email } }'
prb api 'query { viewer { id email } }'
# Run a mutation with variables
proboctl api 'mutation($input: CreateRiskInput!) { createRisk(input: $input) { riskEdge { node { id } } } }' \
prb api 'mutation($input: CreateRiskInput!) { createRisk(input: $input) { riskEdge { node { id } } } }' \
-f input='{"organizationId":"...","name":"Test","category":"Operational","treatment":"ACCEPTED","inherentLikelihood":3,"inherentImpact":3}'
# Query the connect schema
proboctl api --schema connect 'query { viewer { id email } }'
prb api --schema connect 'query { viewer { id email } }'
# Read query from stdin
echo '{ viewer { id } }' | proboctl api -`,
echo '{ viewer { id } }' | prb api -`,
Args: cobra.MaximumNArgs(1),
RunE: func(cmd *cobra.Command, args []string) error {
endpoint, ok := schemaEndpoints[flagSchema]