Repository navigation
Conversation
grabbou
commented
Nov 25, 2020
thymikee
reviewed
Nov 25, 2020
thymikee
reviewed
Nov 25, 2020
| /** | ||
| * Extend built-in help information by displaying examples, if defined | ||
| */ | ||
| cmd.on('--help', () => { |
Member
There was a problem hiding this comment.
can we set similar hook for config command where we disable logger? https://github.com/react-native-community/cli/pull/1327/files#diff-2fb448d11702324cc59d657d5945d59cd325540eb87b71f2e66a5bc01ada834cR141-R143
Member
Author
There was a problem hiding this comment.
Surprisingly, doesn't work on('command:config'). Need to try again.
thymikee
reviewed
Nov 25, 2020
thymikee
reviewed
Nov 25, 2020
Co-authored-by: Michał Pierzchała <thymikee@gmail.com>
Member
Author
|
Related issue to handle: #1261 (comment) |
Member
Author
|
Closing as part of it already landed. Will submit a follow-up soon with a different take. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Upgrades Commander to the latest version and removes some of the hacks that were put up in place.
Changes:
--paths <list...>and have your option automatically accept array values. No need for custom parsing and splitting by a commaprintHelpInformationwas removedBreaking changes:
--name <string>and--name [string]previously had no effect. In this version,name <string>means that--namemust always include a value and passing--namewill throw an error. This prevents issues when users invoke CLI with--portand not provide value. For--name [string],[]indicate that the value is optional and can be either boolean--nameor string--name Mike. This should prevent issues like fix: options for init command have required arguments #1324--paths a b cinstead of--paths a,b,c. This only affects commands built-in to the CLI. Other community plugins have an opportunity to take advantage of the new interface, but it will not be turned on automatically, unless option declaration is updated.