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

Preserve separator spec on subcommands #1710

Merged
merged 1 commit into from Mar 26, 2023

Conversation

thschmitt
Copy link

What type of PR is this?

  • bug

What this PR does / why we need it:

The separatorSpec is not passed along to the subcommands which means that SliceFlags on subcommands will not use the global separator settings. Extended the command to pass the separatorSpec along.

Which issue(s) this PR fixes:

SliceFlags on sub commands will not use the global separator settings.

Testing

Added test case to ensure this change works as expected.

Release Notes

NONE

The separatorSpec is not passed along to the subcommands which means
that SliceFlags on subcommands will not use the global separator
settings.
@thschmitt thschmitt requested a review from a team as a code owner March 23, 2023 09:41
Copy link
Contributor

@skelouse skelouse left a comment

Choose a reason for hiding this comment

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

Great catch,
thanks for submitting a PR!

@meatballhat meatballhat added kind/bug describes or fixes a bug area/v2 relates to / is being considered for v2 labels Mar 26, 2023
@meatballhat meatballhat modified the milestones: Release 3.x, Release 2.x Mar 26, 2023
@meatballhat meatballhat changed the title v2 - Fix: Preserve separator spec on subcommands Preserve separator spec on subcommands Mar 26, 2023
@meatballhat meatballhat merged commit 0436998 into urfave:v2-maint Mar 26, 2023
10 checks passed
Copy link
Contributor

@dearchap dearchap left a comment

Choose a reason for hiding this comment

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

Aargh this comment was in my queue and didnt get submitted. @meatballhat

command.go Show resolved Hide resolved
another-rex pushed a commit to google/osv-scanner that referenced this pull request Mar 28, 2023
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [github.com/urfave/cli/v2](https://togithub.com/urfave/cli) | require
| patch | `v2.25.0` -> `v2.25.1` |
| [golang.org/x/exp](https://togithub.com/golang/exp) | require | digest
| `642cace` -> `10a5072` |

---

### Release Notes

<details>
<summary>urfave/cli</summary>

### [`v2.25.1`](https://togithub.com/urfave/cli/releases/tag/v2.25.1)

[Compare
Source](https://togithub.com/urfave/cli/compare/v2.25.0...v2.25.1)

#### What's Changed

- Shift tested Go versions in v2-maint by
[@&#8203;meatballhat](https://togithub.com/meatballhat) in
[urfave/cli#1692
- Preserve separator spec on subcommands by
[@&#8203;thschmitt](https://togithub.com/thschmitt) in
[urfave/cli#1710

#### New Contributors

- [@&#8203;thschmitt](https://togithub.com/thschmitt) made their first
contribution in
[urfave/cli#1710

**Full Changelog**:
urfave/cli@v2.25.0...v2.25.1

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "before 6am on monday" in timezone
Australia/Sydney, Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config help](https://togithub.com/renovatebot/renovate/discussions) if
that's undesired.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://app.renovatebot.com/dashboard#github/google/osv-scanner).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xNC4yIiwidXBkYXRlZEluVmVyIjoiMzUuMTQuMiJ9-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/v2 relates to / is being considered for v2 kind/bug describes or fixes a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants