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

Add flag to output variant name to BoM filename #58

Merged
merged 2 commits into from
Jun 27, 2019
Merged

Add flag to output variant name to BoM filename #58

merged 2 commits into from
Jun 27, 2019

Conversation

trentks
Copy link
Contributor

@trentks trentks commented Jun 27, 2019

Hi @SchrodingersGat,

Just following up from yesterdays pull you did for #37 which added support for multiple variants. I had seen the value in adding these variants names to the BoM filename, and @AngusP (author of #37) had intended himself to add support for this. I believe this patch I have written satisfies this feature.

There is a certain amount of personal preference when it comes to how this variant name actually gets included in the filename so in particular I would advise that you review line 183 of KiBOM_CLI.py (and therefore line 210 of README.md).

Cheers.

Changes made:

Changes to KiBOM_CLI.py:

  • Add logic to include variant name in filename if flag is set.
  • Clean up some rogue whitespace.

Changes to README.md:

  • Add description for new includeVariantName flag.
  • Add include_variant_name flag to default bom.ini.
  • Fix inconsistencies in capitalisation of "BoM".
  • Add missing include_version_number flag to default bom.ini.

Changes to bomlib/preferences.py:

  • Add support for include_variant_name, includeVariantName where
    appropriate

trentks added 2 commits June 28, 2019 11:22
Changes to `KiBOM_CLI.py`:

- Add logic to include variant name in filename if flag is set.
- Clean up some rogue whitespace.

Changes to `README.md`:

- Add description for new `includeVariantName` flag.
- Add `include_variant_name` flag to default `bom.ini`.
- Fix inconsistencies in capitalisation of "BoM".
- Add missing `include_version_number` flag to default `bom.ini`.

Changes to `bomlib/preferences.py`:

- Add support for `include_variant_name`, `includeVariantName` where
  appropriate
@SchrodingersGat
Copy link
Owner

This all seems quite reasonable. Thanks for the contribution!

@SchrodingersGat SchrodingersGat merged commit d98c6ed into SchrodingersGat:master Jun 27, 2019
@trentks trentks deleted the filename-variant branch June 28, 2019 12:36
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.

2 participants