Skip to content

fix(cli): add shorthand flags and accept positional secret name (#410, #449)#19

Open
jackthepunished wants to merge 2 commits into
mainfrom
fix/cli-shorthand-flags
Open

fix(cli): add shorthand flags and accept positional secret name (#410, #449)#19
jackthepunished wants to merge 2 commits into
mainfrom
fix/cli-shorthand-flags

Conversation

@jackthepunished

Copy link
Copy Markdown
Owner

Summary

Targets upstream: poyrazK#410, poyrazK#449

Test plan

  • go build ./cmd/cloud/...

…yrazK#410, poyrazK#449)

Users typing the widely-expected one-letter short flags ('-n', '-v',
'-p') were getting unknown-flag errors because the cobra command
definitions only declared long forms. Add the standard shorthands:

* lb create:    -n name, -v vpc, -p port, -a algorithm
* lb add-target -i instance, -p port, -w weight

For 'secrets create', accept a positional [name] argument as well as
the -n flag — cobra rejected `cloud secrets create mysecret -v ...`
because it required the flag form. Either form now works; the
positional wins if both are given.
Copilot AI review requested due to automatic review settings May 14, 2026 00:00
@coderabbitai

coderabbitai Bot commented May 14, 2026

Copy link
Copy Markdown

Warning

Rate limit exceeded

@poyrazK has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 40 minutes and 43 seconds before requesting another review.

You’ve run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 00466561-0f73-49c5-bf0d-81ebfc52f86d

📥 Commits

Reviewing files that changed from the base of the PR and between 09730b4 and 7747877.

📒 Files selected for processing (2)
  • cmd/cloud/loadbalancer.go
  • cmd/cloud/secrets.go
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/cli-shorthand-flags

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants