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

Revamp CLI, add CycloneDX spec version configuration #634

Merged
merged 26 commits into from
Mar 1, 2024

Conversation

Shnatsel
Copy link
Contributor

@Shnatsel Shnatsel commented Feb 28, 2024

  1. Show progress information from cargo metadata by default (no more "why is it taking so long?!")
  2. Switch -q to disabling progress reports, add -qq to suppress warnings (previously done by -q)
  3. Remove --output-prefix, --output-pattern, --output-cdx flags, subsumed by the newly introduced --override-filename flag
  4. Split configuration of what the SBOM describes into a separate flag --describe
  5. Make CycloneDX version configurable

Fixes #633, #605, #562, #632

@Shnatsel Shnatsel requested a review from a team as a code owner February 28, 2024 04:58
Signed-off-by: Sergey "Shnatsel" Davidoff <shnatsel@gmail.com>
Signed-off-by: Sergey "Shnatsel" Davidoff <shnatsel@gmail.com>
Signed-off-by: Sergey "Shnatsel" Davidoff <shnatsel@gmail.com>
This reverts commit 8743160.

Signed-off-by: Sergey "Shnatsel" Davidoff <shnatsel@gmail.com>
Signed-off-by: Sergey "Shnatsel" Davidoff <shnatsel@gmail.com>
…ta` instead of a direct dependency on Cargo internals

Signed-off-by: Sergey "Shnatsel" Davidoff <shnatsel@gmail.com>
Signed-off-by: Sergey "Shnatsel" Davidoff <shnatsel@gmail.com>
Signed-off-by: Sergey "Shnatsel" Davidoff <shnatsel@gmail.com>
Signed-off-by: Sergey "Shnatsel" Davidoff <shnatsel@gmail.com>
Signed-off-by: Sergey "Shnatsel" Davidoff <shnatsel@gmail.com>
Signed-off-by: Sergey "Shnatsel" Davidoff <shnatsel@gmail.com>
Signed-off-by: Sergey "Shnatsel" Davidoff <shnatsel@gmail.com>
…e general --override-filename flag that subsumes all of them

Signed-off-by: Sergey "Shnatsel" Davidoff <shnatsel@gmail.com>
Signed-off-by: Sergey "Shnatsel" Davidoff <shnatsel@gmail.com>
…onfig structs to match the new CLI

Signed-off-by: Sergey "Shnatsel" Davidoff <shnatsel@gmail.com>
Signed-off-by: Sergey "Shnatsel" Davidoff <shnatsel@gmail.com>
Signed-off-by: Sergey "Shnatsel" Davidoff <shnatsel@gmail.com>
Signed-off-by: Sergey "Shnatsel" Davidoff <shnatsel@gmail.com>
Signed-off-by: Sergey "Shnatsel" Davidoff <shnatsel@gmail.com>
…t the same time producing non-compliant BOMs without .cdx extension. Previously: `bom_x86_64-unknown-linux-gnu.xml`, now: `bom_x86_64-unknown-linux-gnu.cdx.xml`

Signed-off-by: Sergey "Shnatsel" Davidoff <shnatsel@gmail.com>
Signed-off-by: Sergey "Shnatsel" Davidoff <shnatsel@gmail.com>
Signed-off-by: Sergey "Shnatsel" Davidoff <shnatsel@gmail.com>
@Shnatsel Shnatsel changed the title Revamp CLI Revamp CLI, add CycloneDX spec version configuration Feb 28, 2024
Shnatsel added a commit to Shnatsel/cyclonedx-rust-cargo that referenced this pull request Feb 28, 2024
Signed-off-by: Sergey "Shnatsel" Davidoff <shnatsel@gmail.com>
Copy link
Contributor

@justahero justahero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, the CLI options feel clearer now.

Copy link
Contributor

@lfrancke lfrancke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The same minor comment twice.
I tested it and it looks good to me otherwise.

cargo-cyclonedx/src/cli.rs Show resolved Hide resolved
cargo-cyclonedx/src/cli.rs Show resolved Hide resolved
…cribe argument

Signed-off-by: Sergey "Shnatsel" Davidoff <shnatsel@gmail.com>
Signed-off-by: Sergey "Shnatsel" Davidoff <shnatsel@gmail.com>
@Shnatsel
Copy link
Contributor Author

Shnatsel commented Mar 1, 2024

All the review comments are addressed. Merging.

Signed-off-by: Sergey "Shnatsel" Davidoff <shnatsel@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.

--output-pattern flag is confusing
3 participants