parsec-cloud
parsec-cloud copied to clipboard
Implement ToS acceptance via CLI
The CLI-based workflow described in #7847 needs to be able to work on a server requesting ToS acceptance (introduced in #6439).
Some ideas on how to achieve this (to be discussed):
- CLI "auto-accept-tos" option added to each command
- CLI "auto-accept-tos" mode via configuration or envvar
In either cases, the workflow would be something like:
- CLI runs command X
- Server respond "ToS acceptance required"
- CLI sends ToS acceptance
- CLI retry command X
Notes:
- Only implementing CLI commands for getting/accept ToS is not sufficient because it should be possible to automate the process (thus the auto accept option or mode).
- Also, exposing commands for getting/accept ToS is not strictly required either because this could be transparently implemented as a behavior of the CLI (enabled via envvar) instead of commands available for the user. This could be done later.
TODOs
- [x] #8773
- [ ] #8778
- [ ] #8782
- [ ] #8787