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

prompt for argument automatically, *If* we determine an example requires arguments #3

Open
rnag opened this issue Apr 1, 2022 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@rnag
Copy link
Owner

rnag commented Apr 1, 2022

  • cargo-rx version: 0.1
  • Rust Compiler (rustc) version: 1.59
  • Operating System: Mac OS X

Description

I want rx to automatically prompt for arguments -- i.e. same as invoking --parse-args -- when we can determine that an example script requires arguments passed in from command-line.

Some ideas on what might work:

  • Scan example file for a markdown header in doc comments, like //! # Arguments
  • Look for a specific keyword in either doc comments or just regular comments. For instance, the keyword might be like rx:requires_args. This way our script knows for certain that a script requires command-line arguments, and can prompt user to input arguments automatically.
@rnag rnag added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers labels Apr 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant