Add ttnv3 command with device and application subcommands
source.FlagSet takes an argument to return the flags for the specified source
To get flags for all registered sources source.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:
go run cmd/ttn-lw-migrate/main.go ttnv3 devices --help
Regressions
...
Notes for Reviewers
ttnv2 and chirpstack commands have been skipped for the initial iteration since they should be twin to ttnv3 anyway.
Checklist
[x] Scope: The referenced issue is addressed, there are no unrelated changes.
[ ] Documentation: Relevant documentation is added or updated.
[ ] Changelog: Significant features, behavior changes, deprecations and fixes are added to CHANGELOG.md.
Summary
Ref #56 https://github.com/TheThingsNetwork/lorawan-stack-migrate/pull/65#issuecomment-1448454632
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
.