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

Standardize CLI options & commands #1440

Open
pavjacko opened this issue Mar 5, 2024 · 0 comments
Open

Standardize CLI options & commands #1440

pavjacko opened this issue Mar 5, 2024 · 0 comments
Assignees

Comments

@pavjacko
Copy link
Member

pavjacko commented Mar 5, 2024

Core RNV CLI Options & Commands

FLAGS

Output

change way how console outputs information

--no-color - remove all ANSI coloring & decorations
--no-summary - omit summary box
--no-intro - omit intro box
--json - output in json format
--print-exec - add log for each exec command (child_process)

Log Level

only one accepted from least to most verbose

--silent
--fatal
--error
--warn
--info (default)
--debug
--trace

Interaction

changes interactivity behaviour

--ci - expects no questions otherwise fail
--yes - answer positively/default for any question
--answers <value> - provide specific set of predefined answers
--no-default - guide users trough each relevant option where default would be used (similar to wizard experience)

Command Options

acts like a special command

--help
--version

ENV VARS:

expose options as env vars

RNV_NO_COLOR=1
RNV_JSON=1
RNV_SUMMARY=1
RNV_DEBUG=1
RNV_ANSWERS=<VALUE>

COMMANDS

info - display system info relevant to RNV

update - self upgrade

@pavjacko pavjacko self-assigned this Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant