-
Notifications
You must be signed in to change notification settings - Fork 218
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
--show is used to include additional data in select command output, including the shape type, file where the shape is defined, and/or variables captured when the shape was matched. For example: ``` smithy select --selector 'structure $neighbors(>)' --show-traits documentation --show type,file,vars --aut s3.json ``` Outputs: ``` [ { "shape": "com.amazonaws.s3#CSVInput", "type": "structure", "file": "/path/to/s3.json:16224:34", "vars": { "neighbors": [ "com.amazonaws.s3#CSVInput$AllowQuotedRecordDelimiter", "com.amazonaws.s3#CSVInput$Comments", "com.amazonaws.s3#CSVInput$FieldDelimiter", "com.amazonaws.s3#CSVInput$FileHeaderInfo", "com.amazonaws.s3#CSVInput$QuoteCharacter", "com.amazonaws.s3#CSVInput$QuoteEscapeCharacter", "com.amazonaws.s3#CSVInput$RecordDelimiter" ] }, "traits": { "smithy.api#documentation": "<p>Describes how an uncompressed comma-separated values (CSV)-formatted input object is formatted.</p>" } } ] ``` This now deprecates the `--show-vars` option, as `--show vars` should be used instead.
- Loading branch information
Showing
3 changed files
with
166 additions
and
33 deletions.
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
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
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