-
Notifications
You must be signed in to change notification settings - Fork 0
Add alternatives to JSON flags where possible #152
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
Conversation
…' and 'imodel connection sourcefile add' commands. Added a check to 'imodel populate' for the case when connector-type count is not equal to file count or 1.
…ember group add' command. Added JSON validation for commands, that accept JSON.
…ember group add command.
…member user add' command.
… in order to avoid errors.
|
https://blog.kellybrazil.com/2022/05/19/working-with-json-in-various-shells/ Traditional shells like Bash and Windows Command Prompt (cmd.exe) don’t have built-in JSON support and require 3rd party utilities. Newer shells like NGS, Nushell, Oil, Elvish, Murex, and PowerShell have JSON serialization/deserialization and filtering capabilities built-in for a cleaner experience. It's not in scope of this PR, but we need to document and provide guidelines how to pass over json data through CLI commands in the most popular shells: cmd, bash, pwsh |
|
There is a general issue across all the files that |
…sallow providing multiple.
* Added alternative extent flags to imodel create command. * Added alternative extent flags to imodel update command. * Fixed connector-type options being different between 'imodel populate' and 'imodel connection sourcefile add' commands. Added a check to 'imodel populate' for the case when connector-type count is not equal to file count or 1. * Added alternative flags for '--groups' JSON flag in 'access-control member group add' command. Added JSON validation for commands, that accept JSON. * Added GUID CSV list validation to --role-ids flag in �ccess-control member group add command. * Added alternative flags for '--members' JSON flag in 'access-control member user add' command. * Re-generated documentation. * Updated docs-generator command, so it always runs npm build before it in order to avoid errors. * Changed endlines in some command descriptions. * Addressed part of PR comments. * Addressed PR comment. * Updated documentation. * Removed JSON validation. Will re-add it in a separate PR. * Updated examples for 'access-control member group add' command. * Updated 'access-control member group add' command role-ids flag to disallow providing multiple. * Updated documentation. * Updated documentation.
access-control member group add---group-idand--role-idsas an alternative to--groupsaccess-control member user add---emailand--role-idsas an alternative to--membersimodel create---sw-latitude,--sw-longitude,--ne-latitude,--ne-longitudeas an alternative to--extentimodel update---sw-latitude,--sw-longitude,--ne-latitude,--ne-longitudeas an alternative to--extentimodel populatecommand now returns an error if--connector-typecount is not equal--filecount and is not 1.imodel populateandimodel connection sourcefile addcommands