Skip to content
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

User prompts #8

Closed
lkingland opened this issue May 23, 2020 · 0 comments
Closed

User prompts #8

lkingland opened this issue May 23, 2020 · 0 comments
Assignees

Comments

@lkingland
Copy link
Member

The general architecture of the system is to provide sensible defaults for as many choice-points as possible in order to smooth the overall first-use flow. However this has the side-effect of hiding the details of what is happening, and producing sometimes inscrutable errors when the defaults are not able to be inferred. This only applies to the CLI, not the client library (which clearly deliniates the expected parameters and returns errors), so we could solve this by adding an interactive prompt when the terminal is detected to be interactive, such that defaults are clearly displayed with an option to override. This maintains the important "paved path" of default options, while exposing them for inspection and optional override.

  • Prompt for choice points, such as:
    • Function name
    • Container registry
    • Skip public route (internal only)
    • Overwrite extant
  • Display calculated default, allowing an [enter] to accept
  • Validate user input prior to invoking the client library
  • Keep the implementation separate from the client library
  • Implement as a package, not hacked into cmd or main with full tests.
  • Only prompt when terminal is interactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant