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

flexibility on overriding config values #133

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

viveksahu26
Copy link
Contributor

close: #125

This PR provides the flexibility to override any individual field (e.g., just "version") without being required to provide all the other grouped fields. If any value along with config file are provides, then those flag value will be prioritize over config default values.

For example:

  • override version value from config value:

    $ sbomasm assemble -v "v2.2.2" -c config.yaml -o final-sbom-config.spdx.json sbomex-cdx.json sbomgr-cdx.json
  • override name, type, version values from config values:

    $ sbomasm assemble -v "v1.0.20" -n "bob"  -t "library"  -c config.yaml -o final-sbom-config.spdx.json sbomex-cdx.json sbomgr-cdx.json

    To understand issue more detail, see here

Signed-off-by: Vivek Kumar Sahu <vivekkumarsahu650@gmail.com>
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.

Feature: Allow assemble version override based on flag when using config
1 participant