-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CLI improvements proposal: subcommands #71
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
happyRip
force-pushed
the
feature/56-cli-improvement-subcommands
branch
2 times, most recently
from
April 18, 2023 15:02
8301840
to
325f64c
Compare
happyRip
force-pushed
the
feature/56-cli-improvement-subcommands
branch
from
April 18, 2023 15:09
325f64c
to
03d4d18
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great start.
happyRip
commented
Apr 25, 2023
happyRip
force-pushed
the
feature/56-cli-improvement-subcommands
branch
4 times, most recently
from
April 25, 2023 15:18
0f4f518
to
5b47c48
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This definitely goes in the right direction, thanks
Execute parent's persistent pre-run in subcommands spf13/cobra#252
happyRip
force-pushed
the
feature/56-cli-improvement-subcommands
branch
from
April 26, 2023 11:25
54e2b3e
to
57cb05d
Compare
happyRip
force-pushed
the
feature/56-cli-improvement-subcommands
branch
from
April 26, 2023 11:56
57cb05d
to
d1d4bba
Compare
Closed
happyRip
force-pushed
the
feature/56-cli-improvement-subcommands
branch
from
April 28, 2023 06:22
d1d4bba
to
cf58f86
Compare
Apply the changes when `spf13/cobra` package is upgraded in `go.mod`.
Command used: ```bash $ find . -name "*.go" -type f -exec sed -i '' 's/© 202./© 2023/g' {} \; ```
happyRip
force-pushed
the
feature/56-cli-improvement-subcommands
branch
from
April 28, 2023 06:31
cf58f86
to
738fe88
Compare
adriansmares
approved these changes
Apr 28, 2023
johanstokking
approved these changes
Apr 29, 2023
6 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Ref #56
#65 (comment)
This PR features changes from #70
Changes
ttnv3
command withdevice
andapplication
subcommandssource.FlagSet
takes an argument to return the flags for the specified sourcesource.AllFlagSets
is used. It prepends each flag name with a source names, so each flag is unique (replicating legacy behaviour)Testing
Use
ttnv3
command to export devices instead of relying on the--source
flag:Regressions
...
Notes for Reviewers
ttnv2
andchirpstack
commands have been skipped for the initial iteration since they should be twin tottnv3
anyway.Checklist
CHANGELOG.md
.