-
Notifications
You must be signed in to change notification settings - Fork 6
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
Support configuration via a config file (e.g. YAML) #3
Labels
enhancement
New feature or request
Comments
asimpleidea
added a commit
to asimpleidea/cnwan-reader
that referenced
this issue
Aug 27, 2020
This commit removes the default value for the `--metadata-key` flag (previously, when not set, it would assume the default value `profile`). Nonetheless, it has been marked as a required flag, as it is a critical parameter for the the program. Signed-off-by: Elis Lulja <elulja@cisco.com>
asimpleidea
added a commit
to asimpleidea/cnwan-reader
that referenced
this issue
Aug 27, 2020
`region` and `project` are now required flags. This doesn't change much the behavior of the program, as an error was being thrown when they were empty even before this change. Labelling them as required will now make the framework always display the usage when they are empty. Also, this frees us from having to validate them explicitly. Signed-off-by: Elis Lulja <elulja@cisco.com>
asimpleidea
added a commit
to asimpleidea/cnwan-reader
that referenced
this issue
Aug 27, 2020
In an effort to make the CLI more descriptive, this commit removes the `--credentials` flag from the root command and moves it to the `servicedirectory` command with new name `--service-account`. With this change the `--service-account` flag now becomes a *local* flag, not a global one as was `--credentials` before. This is because Google Cloud documentation always talks about *Service Account* rather than credentials, so this change should help anyone understand the command at first glimpse. Readme will be updated in next commit. Signed-off-by: Elis Lulja <elulja@cisco.com>
asimpleidea
added a commit
to asimpleidea/cnwan-reader
that referenced
this issue
Aug 27, 2020
The Readme is now updated with usage on `--service-account` instead of `--credentials`. Some other sentences have been rephrased to improve readability. Signed-off-by: Elis Lulja <elulja@cisco.com>
#4 will benefit from this very much, as specifying them via CLI is going to bring much headache |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently, the CNWAN Reader has to be configured via CLI arguments. It might be interesting to have the possibility to provide the configuration via a, for instance, YAML file.
The text was updated successfully, but these errors were encountered: