Skip to content
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

feat: option to load arguments from config file #107

Merged

Conversation

baruchiro
Copy link
Contributor

  • bind flags from viper to cobra command
  • add tests
  • test for Execute
  • support multiple config formats
  • update readme with help message
  • document configuration env and file

Closes #21

Proposed Changes

  • feat: read arguments from Environment Variables
  • feat: read arguments from JSON/YAML file
  • docs: auto-update the README when the help message was changed
  • docs: how to use arguments from Environment Variables or config file

Limitations

  • You still can run only one plugin at a time.
  • You have to add the plugin command to the CLI command.
  • Positional arguments are not yet supported.

@baruchiro baruchiro requested a review from jossef June 25, 2023 15:30
@github-actions
Copy link

github-actions bot commented Jun 25, 2023

kics-logo

KICS version: v1.7.0

Category Results
HIGH HIGH 0
MEDIUM MEDIUM 0
LOW LOW 1
INFO INFO 0
TRACE TRACE 0
TOTAL TOTAL 1
Metric Values
Files scanned placeholder 1
Files parsed placeholder 1
Files failed to scan placeholder 0
Total executed queries placeholder 49
Queries failed to execute placeholder 0
Execution time placeholder 2

.github/workflows/release.yml Outdated Show resolved Hide resolved
lib/flags_test.go Outdated Show resolved Hide resolved
README.md Show resolved Hide resolved
@baruchiro baruchiro merged commit 127e190 into master Jun 29, 2023
@baruchiro baruchiro deleted the baruchiro/option-to-load-all-arguments-from-config-file branch June 29, 2023 11:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

option to load all arguments from config file
2 participants