-
Notifications
You must be signed in to change notification settings - Fork 16
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
group options #463
Merged
Merged
group options #463
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -158,46 +158,58 @@ function buildYargs(argvInput) { | |
type: "boolean", | ||
// https://github.com/chalk/chalk?tab=readme-ov-file#chalklevel | ||
default: chalk.level > 0, | ||
group: "Output:", | ||
}, | ||
config: { | ||
type: "string", | ||
description: "Path to a CLI config file to use. Use `--profile` to select a profile from the file.", | ||
description: | ||
"Path to a CLI config file to use. Use `--profile` to select a profile from the file.", | ||
default: ".", | ||
group: "Config:", | ||
}, | ||
profile: { | ||
alias: "p", | ||
type: "string", | ||
description: | ||
"Profile from the CLI config file to use. Each profile specifies a set of CLI settings.", | ||
default: "default", | ||
group: "Config:", | ||
}, | ||
user: { | ||
alias: "u", | ||
type: "string", | ||
description: "User account used to run the command. Register a user account in the CLI using `fauna login`.", | ||
description: | ||
"User account used to run the command. Register a user account in the CLI using `fauna login`.", | ||
default: "default", | ||
group: "API:", | ||
}, | ||
json: { | ||
type: "boolean", | ||
description: "Output the results as JSON.", | ||
default: false, | ||
group: "Output:", | ||
}, | ||
quiet: { | ||
type: "boolean", | ||
description: "Only output the results of the command. Useful for scripts, CI/CD, and automation workflows.", | ||
description: | ||
"Only output the results of the command. Useful for scripts, CI/CD, and automation workflows.", | ||
default: false, | ||
group: "Output:", | ||
}, | ||
verboseComponent: { | ||
description: | ||
"Components to emit diagnostic logs for. Takes precedence over the `--verbosity` flag. Pass components as a comma-separate list, such as `--verboseComponent fetch, error`, or as separate flags, such as `--verboseComponent fetch --verboseComponent error`.", | ||
"Components to emit diagnostic logs for. Takes precedence over the `--verbosity` flag. Pass components as a space-separated list, such as `--verboseComponent fetch error`, or as separate flags, such as `--verboseComponent fetch --verboseComponent error`.", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for fixing this! |
||
type: "array", | ||
default: [], | ||
choices: ["fetch", "error", "config", "argv", "creds"], | ||
group: "Debug:", | ||
}, | ||
verbosity: { | ||
description: "Maximum verbosity level for log messages. Accepts 1 (fatal) to 5 (debug). Lower values represent more critical logs.", | ||
description: | ||
"Maximum verbosity level for log messages. Accepts 1 (fatal) to 5 (debug). Lower values represent more critical logs.", | ||
type: "number", | ||
default: 0, | ||
group: "Debug:", | ||
}, | ||
}) | ||
.wrap(yargsInstance.terminalWidth()) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you think about something like "Authentication/Authorization" instead of "API"? definitely more verbose... "AuthN/Z"? "Auth"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here's what's in the group now:
i feel like database and url are only tenuously auth? but it is a clearer expression of what they do than "API". except for those 2? bleh.