Provide support for reading a single parameter value from file - #738
Merged
Johan Stenberg (ex-msft) (johanste) merged 33 commits intoAug 31, 2016
Merged
Conversation
Values prefixed with @ will be replaced with the content of the file immediately following the @-sign. The pseudo-name '-' is used to indicate stdin.
Member
|
|
| def _load_file(path): | ||
| try: | ||
| if path == '-': | ||
| content = sys.stdin.read() |
Contributor
There was a problem hiding this comment.
should we throw an error if more than one - is specified?
* Convert all updates to cli_generic_update_commands. * Code review fixes.
* Eliminates anti-pattern of creating CliArgumentTypes inline during parameter registration. * Minor fixes.
… to (Azure#766) work with new logic.
* 'az configure' experience - Allows user to set default output type. - Infrastructure for CLI configurations also implemented. * Add license header & fix deprecated method * Wrap SafeConfigParser instead of extending from it * Code review feedback changes
* Table format revisions - Table output is generic and automatically extracts fields from the result. - No longer use simple_output_query as it was specific for commands and as packages will support multiple API versions, this solution is no longer feasible. * Support callable again for table format after discussion When a callable is set for a command, it will be used as long as there is no query active. If there's a query active, the callable will not be used so the user has to specify a full query that can generate an appropriate table.
* Remove 'starting' message for long running operations * Change name of poll_interval_ms as ambiguous and also change logger messages that referred to this interval
Member
|
|
* Use 'ignore_type' within resource module. Fix issue 763. * Code review fixes.
* Fix issue 770. * Fix undeclared-variable
* Add commands for Azure IoT * 1.Include files into azure-cli.pyproj; 2. Update license info in setup.py * add missing pylint directive * resolve review comments * resolve comments * fix typo
* Fix issue Azure#784. * Code review fix.
Committer: yugangw-msft
Values prefixed with @ will be replaced with the content of the file immediately following the @-sign. The pseudo-name '-' is used to indicate stdin.
Kerwin(Kaihui) Sun (00Kai0)
pushed a commit
to 00Kai0/azure-cli
that referenced
this pull request
Apr 7, 2021
* [db-up] Set the max CLI core version as 2.0.66 * [db-up] Publish 0.1.12 * [db-up] Remove config_parser
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.
Values prefixed with @ will be replaced with the content of the file immediately following the @-sign.
The pseudo-name '-' is used to indicate stdin.