Rename login subcommand to generate-token and logout subcommand
to revoke-token.
Details
Details
- Reviewers
ardumont - Group Reviewers
Reviewers - Commits
- rDWCLI4dc69f4cccba: cli: Use more explicit naming for auth subcommands
Diff Detail
Diff Detail
- Repository
- rDWCLI Web client
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Event Timeline
Comment Actions
Build is green
Patch application report for D4336 (id=15342)
Rebasing onto 0d962ea355...
Current branch diff-target is up to date.
Changes applied before test
commit 4f24ee3be34a89e7f275b4ca4129220c6b8963b6 Author: Antoine Lambert <antoine.lambert@inria.fr> Date: Thu Oct 22 17:10:02 2020 +0200 cli: Use more explicit naming for auth subcommands Rename login subcommand to generate-token and logout subcommand to revoke-token.
See https://jenkins.softwareheritage.org/job/DWCLI/job/tests-on-diff/25/ for more details.
Comment Actions
looks good to me
now, i don't know if:
- we need to send an email about that change to notify users
- add an alias with the old name and add a deprecation notice on those old names
thoughts?
Comment Actions
I think adding aliases with deprecation warnings is the better option here as no client code would be broken.
Comment Actions
Update: Ensure backward compatibility by keeping old command names as aliases and marking them as deprecated.
Comment Actions
Build is green
Patch application report for D4336 (id=15349)
Rebasing onto 0d962ea355...
Current branch diff-target is up to date.
Changes applied before test
commit 4dc69f4cccbacd833c598eec0888be467df34095 Author: Antoine Lambert <antoine.lambert@inria.fr> Date: Thu Oct 22 17:10:02 2020 +0200 cli: Use more explicit naming for auth subcommands Rename login subcommand to generate-token and logout subcommand to revoke-token.
See https://jenkins.softwareheritage.org/job/DWCLI/job/tests-on-diff/26/ for more details.