flarectl: fix duplicate alias in zone subcommand #1484
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes: #1465
Description
check and certs were both aliased to "c". Changed certs alias from "c" to "ct".
This would've been way more easier to debug if a log were introduced before os.Exit(1). I'd be happy to add it here but I'm unsure if not logging is the intended behavior.
cloudflare-go/cmd/flarectl/flarectl.go
Lines 715 to 718 in c3ac69e
Just checked v0.82.0 where the zone command worked and
zone c
use the create command instead of the certs command. It looks like thec
alias was changed fromcerts
tocreate
since the create command was added (d0f7110 )Has your change been tested?
Yes,
flarectl zone
now worksScreenshots (if appropriate):
Not appropriate
Types of changes
What sort of change does your code introduce/modify?
Checklist:
and relies on stable APIs.