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

Pipe character for listing options (issue 1434) #1498

Conversation

FrankRay78
Copy link
Contributor

fixes #1434

  • I have read the Contribution Guidelines
  • I have commented on the issue above and discussed the intended changes
  • A maintainer has signed off on the changes and the issue was assigned to me
  • All newly added code is adequately covered by tests
  • All existing tests are still running without errors
  • The documentation was modified to reflect the changes OR no documentation changes are required.

Changes

Allow the pipe character for listing options e.g. --option [RED|GREEN|BLUE]

image

nb. Aligns with CommandLine, see:

image

https://learn.microsoft.com/en-us/dotnet/standard/commandline/define-commands

@FrankRay78 FrankRay78 requested a review from a team March 18, 2024 13:07
@FrankRay78 FrankRay78 self-assigned this Mar 18, 2024
@FrankRay78 FrankRay78 added the area-CLI Command-Line Interface label Mar 18, 2024
@FrankRay78 FrankRay78 added this to the 0.49 milestone Mar 18, 2024
@patriksvensson patriksvensson merged commit 43f9ae9 into spectreconsole:main Mar 18, 2024
3 checks passed
renovate bot added a commit to buehler/dotnet-operator-sdk that referenced this pull request Apr 23, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[Spectre.Console.Testing](https://togithub.com/spectreconsole/spectre.console)
| `0.48.0` -> `0.49.0` |
[![age](https://developer.mend.io/api/mc/badges/age/nuget/Spectre.Console.Testing/0.49.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/nuget/Spectre.Console.Testing/0.49.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/nuget/Spectre.Console.Testing/0.48.0/0.49.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/nuget/Spectre.Console.Testing/0.48.0/0.49.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>spectreconsole/spectre.console
(Spectre.Console.Testing)</summary>

###
[`v0.49.0`](https://togithub.com/spectreconsole/spectre.console/releases/tag/0.49.0)

[Compare
Source](https://togithub.com/spectreconsole/spectre.console/compare/0.48.0...0.49.0)

##### What's Changed

- Cleanup Line-Endings by [@&#8203;nils-a](https://togithub.com/nils-a)
in
[spectreconsole/spectre.console#1381
- Added spectre.console.cli to quick-start. by
[@&#8203;nils-a](https://togithub.com/nils-a) in
[spectreconsole/spectre.console#1413
- Fix rendering of ListPrompt for odd pageSizes by
[@&#8203;nils-a](https://togithub.com/nils-a) in
[spectreconsole/spectre.console#1365
- Remove mandelbrot example due to conflicting license by
[@&#8203;patriksvensson](https://togithub.com/patriksvensson) in
[spectreconsole/spectre.console#1426
- Allow specifying a property to ignore the use of build-time packages
for versioning and analysis by
[@&#8203;baronfel](https://togithub.com/baronfel) in
[spectreconsole/spectre.console#1425
- Add the possibility to register multiple interceptors by
[@&#8203;nils-a](https://togithub.com/nils-a) in
[spectreconsole/spectre.console#1412
- Added the ITypeResolver to the ExceptionHandler by
[@&#8203;nils-a](https://togithub.com/nils-a) in
[spectreconsole/spectre.console#1411
- Updated typo in commandApp.md by
[@&#8203;DarqueWarrior](https://togithub.com/DarqueWarrior) in
[spectreconsole/spectre.console#1431
- Command with -v displays app version instead of executing the command
by [@&#8203;FrankRay78](https://togithub.com/FrankRay78) in
[spectreconsole/spectre.console#1427
- HelpProvider colors should be configurable by
[@&#8203;FrankRay78](https://togithub.com/FrankRay78) in
[spectreconsole/spectre.console#1408
- Direct contributors to the current CONTRIBUTING.md by
[@&#8203;tonycknight](https://togithub.com/tonycknight) in
[spectreconsole/spectre.console#1435
- Fix deadlock when cancelling prompts by
[@&#8203;caesay](https://togithub.com/caesay) in
[spectreconsole/spectre.console#1439
- Add progress bar value formatter by
[@&#8203;jsheely](https://togithub.com/jsheely) in
[spectreconsole/spectre.console#1414
- Update dependencies and do some clean-up by
[@&#8203;patriksvensson](https://togithub.com/patriksvensson) in
[spectreconsole/spectre.console#1440
- Delete \[UsesVerify], which has become obsolete through the latest
update. by [@&#8203;danielcweber](https://togithub.com/danielcweber) in
[spectreconsole/spectre.console#1456
- Don't erase secret prompt text upon backspace when mask is null by
[@&#8203;danielcweber](https://togithub.com/danielcweber) in
[spectreconsole/spectre.console#1458
- Update dependencies to the latest version by
[@&#8203;patriksvensson](https://togithub.com/patriksvensson) in
[spectreconsole/spectre.console#1459
- Automatically register command settings by
[@&#8203;patriksvensson](https://togithub.com/patriksvensson) in
[spectreconsole/spectre.console#1463
- chore: Update dependency dotnet-example to v3.1.0 by
[@&#8203;renovate](https://togithub.com/renovate) in
[spectreconsole/spectre.console#1470
- chore: Update dependency Roslynator.Analyzers to v4.11.0 by
[@&#8203;renovate](https://togithub.com/renovate) in
[spectreconsole/spectre.console#1473
- Remove \[DebuggerDisplay] from Paragraph by
[@&#8203;martincostello](https://togithub.com/martincostello) in
[spectreconsole/spectre.console#1477
- Selection Prompt Search by
[@&#8203;slang25](https://togithub.com/slang25) in
[spectreconsole/spectre.console#1289
- Update dependency SixLabors.ImageSharp to v3.1.3 by
[@&#8203;renovate](https://togithub.com/renovate) in
[spectreconsole/spectre.console#1486
- Positioned Progress Tasks - Before or After Other Tasks by
[@&#8203;thomhurst](https://togithub.com/thomhurst) in
[spectreconsole/spectre.console#1250
- Added NoStackTrace to ExceptionFormats by
[@&#8203;gerardog](https://togithub.com/gerardog) in
[spectreconsole/spectre.console#1489
- Pipe character for listing options (issue 1434) by
[@&#8203;FrankRay78](https://togithub.com/FrankRay78) in
[spectreconsole/spectre.console#1498
- Improve XmlDoc output by
[@&#8203;yenneferofvengerberg](https://togithub.com/yenneferofvengerberg)
in
[spectreconsole/spectre.console#1503
- Revert
[`71a5d83`](https://togithub.com/spectreconsole/spectre.console/commit/71a5d830)
to undo flickering regression by
[@&#8203;phil-scott-78](https://togithub.com/phil-scott-78) in
[spectreconsole/spectre.console#1504
- AddDelegate uses an abstract type when used in a branch by
[@&#8203;BlazeFace](https://togithub.com/BlazeFace) in
[spectreconsole/spectre.console#1509
- Missing Separator When Headers are Hidden by
[@&#8203;BlazeFace](https://togithub.com/BlazeFace) in
[spectreconsole/spectre.console#1513
- Expose raw arguments on the command context by
[@&#8203;patriksvensson](https://togithub.com/patriksvensson) in
[spectreconsole/spectre.console#1523
- Add token representation to remaining arguments by
[@&#8203;patriksvensson](https://togithub.com/patriksvensson) in
[spectreconsole/spectre.console#1525

##### New Contributors

- [@&#8203;baronfel](https://togithub.com/baronfel) made their first
contribution in
[spectreconsole/spectre.console#1425
- [@&#8203;DarqueWarrior](https://togithub.com/DarqueWarrior) made their
first contribution in
[spectreconsole/spectre.console#1431
- [@&#8203;tonycknight](https://togithub.com/tonycknight) made their
first contribution in
[spectreconsole/spectre.console#1435
- [@&#8203;caesay](https://togithub.com/caesay) made their first
contribution in
[spectreconsole/spectre.console#1439
- [@&#8203;jsheely](https://togithub.com/jsheely) made their first
contribution in
[spectreconsole/spectre.console#1414
- [@&#8203;danielcweber](https://togithub.com/danielcweber) made their
first contribution in
[spectreconsole/spectre.console#1456
- [@&#8203;martincostello](https://togithub.com/martincostello) made
their first contribution in
[spectreconsole/spectre.console#1477
- [@&#8203;slang25](https://togithub.com/slang25) made their first
contribution in
[spectreconsole/spectre.console#1289
- [@&#8203;thomhurst](https://togithub.com/thomhurst) made their first
contribution in
[spectreconsole/spectre.console#1250
- [@&#8203;gerardog](https://togithub.com/gerardog) made their first
contribution in
[spectreconsole/spectre.console#1489
-
[@&#8203;yenneferofvengerberg](https://togithub.com/yenneferofvengerberg)
made their first contribution in
[spectreconsole/spectre.console#1503
- [@&#8203;BlazeFace](https://togithub.com/BlazeFace) made their first
contribution in
[spectreconsole/spectre.console#1509

**Full Changelog**:
spectreconsole/spectre.console@0.48.0...0.49.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "after 9pm,before 6am" in timezone
Europe/Zurich, Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

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

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- 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://developer.mend.io/github/buehler/dotnet-operator-sdk).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zMTMuMSIsInVwZGF0ZWRJblZlciI6IjM3LjMxMy4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
ian-buse pushed a commit to dh2i-devs/dotnet-operator-sdk that referenced this pull request May 3, 2024
…ehler#751)

[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[Spectre.Console.Testing](https://togithub.com/spectreconsole/spectre.console)
| `0.48.0` -> `0.49.0` |
[![age](https://developer.mend.io/api/mc/badges/age/nuget/Spectre.Console.Testing/0.49.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/nuget/Spectre.Console.Testing/0.49.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/nuget/Spectre.Console.Testing/0.48.0/0.49.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/nuget/Spectre.Console.Testing/0.48.0/0.49.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>spectreconsole/spectre.console
(Spectre.Console.Testing)</summary>

###
[`v0.49.0`](https://togithub.com/spectreconsole/spectre.console/releases/tag/0.49.0)

[Compare
Source](https://togithub.com/spectreconsole/spectre.console/compare/0.48.0...0.49.0)

##### What's Changed

- Cleanup Line-Endings by [@&#8203;nils-a](https://togithub.com/nils-a)
in
[spectreconsole/spectre.console#1381
- Added spectre.console.cli to quick-start. by
[@&#8203;nils-a](https://togithub.com/nils-a) in
[spectreconsole/spectre.console#1413
- Fix rendering of ListPrompt for odd pageSizes by
[@&#8203;nils-a](https://togithub.com/nils-a) in
[spectreconsole/spectre.console#1365
- Remove mandelbrot example due to conflicting license by
[@&#8203;patriksvensson](https://togithub.com/patriksvensson) in
[spectreconsole/spectre.console#1426
- Allow specifying a property to ignore the use of build-time packages
for versioning and analysis by
[@&#8203;baronfel](https://togithub.com/baronfel) in
[spectreconsole/spectre.console#1425
- Add the possibility to register multiple interceptors by
[@&#8203;nils-a](https://togithub.com/nils-a) in
[spectreconsole/spectre.console#1412
- Added the ITypeResolver to the ExceptionHandler by
[@&#8203;nils-a](https://togithub.com/nils-a) in
[spectreconsole/spectre.console#1411
- Updated typo in commandApp.md by
[@&#8203;DarqueWarrior](https://togithub.com/DarqueWarrior) in
[spectreconsole/spectre.console#1431
- Command with -v displays app version instead of executing the command
by [@&#8203;FrankRay78](https://togithub.com/FrankRay78) in
[spectreconsole/spectre.console#1427
- HelpProvider colors should be configurable by
[@&#8203;FrankRay78](https://togithub.com/FrankRay78) in
[spectreconsole/spectre.console#1408
- Direct contributors to the current CONTRIBUTING.md by
[@&#8203;tonycknight](https://togithub.com/tonycknight) in
[spectreconsole/spectre.console#1435
- Fix deadlock when cancelling prompts by
[@&#8203;caesay](https://togithub.com/caesay) in
[spectreconsole/spectre.console#1439
- Add progress bar value formatter by
[@&#8203;jsheely](https://togithub.com/jsheely) in
[spectreconsole/spectre.console#1414
- Update dependencies and do some clean-up by
[@&#8203;patriksvensson](https://togithub.com/patriksvensson) in
[spectreconsole/spectre.console#1440
- Delete \[UsesVerify], which has become obsolete through the latest
update. by [@&#8203;danielcweber](https://togithub.com/danielcweber) in
[spectreconsole/spectre.console#1456
- Don't erase secret prompt text upon backspace when mask is null by
[@&#8203;danielcweber](https://togithub.com/danielcweber) in
[spectreconsole/spectre.console#1458
- Update dependencies to the latest version by
[@&#8203;patriksvensson](https://togithub.com/patriksvensson) in
[spectreconsole/spectre.console#1459
- Automatically register command settings by
[@&#8203;patriksvensson](https://togithub.com/patriksvensson) in
[spectreconsole/spectre.console#1463
- chore: Update dependency dotnet-example to v3.1.0 by
[@&#8203;renovate](https://togithub.com/renovate) in
[spectreconsole/spectre.console#1470
- chore: Update dependency Roslynator.Analyzers to v4.11.0 by
[@&#8203;renovate](https://togithub.com/renovate) in
[spectreconsole/spectre.console#1473
- Remove \[DebuggerDisplay] from Paragraph by
[@&#8203;martincostello](https://togithub.com/martincostello) in
[spectreconsole/spectre.console#1477
- Selection Prompt Search by
[@&#8203;slang25](https://togithub.com/slang25) in
[spectreconsole/spectre.console#1289
- Update dependency SixLabors.ImageSharp to v3.1.3 by
[@&#8203;renovate](https://togithub.com/renovate) in
[spectreconsole/spectre.console#1486
- Positioned Progress Tasks - Before or After Other Tasks by
[@&#8203;thomhurst](https://togithub.com/thomhurst) in
[spectreconsole/spectre.console#1250
- Added NoStackTrace to ExceptionFormats by
[@&#8203;gerardog](https://togithub.com/gerardog) in
[spectreconsole/spectre.console#1489
- Pipe character for listing options (issue 1434) by
[@&#8203;FrankRay78](https://togithub.com/FrankRay78) in
[spectreconsole/spectre.console#1498
- Improve XmlDoc output by
[@&#8203;yenneferofvengerberg](https://togithub.com/yenneferofvengerberg)
in
[spectreconsole/spectre.console#1503
- Revert
[`71a5d83`](https://togithub.com/spectreconsole/spectre.console/commit/71a5d830)
to undo flickering regression by
[@&#8203;phil-scott-78](https://togithub.com/phil-scott-78) in
[spectreconsole/spectre.console#1504
- AddDelegate uses an abstract type when used in a branch by
[@&#8203;BlazeFace](https://togithub.com/BlazeFace) in
[spectreconsole/spectre.console#1509
- Missing Separator When Headers are Hidden by
[@&#8203;BlazeFace](https://togithub.com/BlazeFace) in
[spectreconsole/spectre.console#1513
- Expose raw arguments on the command context by
[@&#8203;patriksvensson](https://togithub.com/patriksvensson) in
[spectreconsole/spectre.console#1523
- Add token representation to remaining arguments by
[@&#8203;patriksvensson](https://togithub.com/patriksvensson) in
[spectreconsole/spectre.console#1525

##### New Contributors

- [@&#8203;baronfel](https://togithub.com/baronfel) made their first
contribution in
[spectreconsole/spectre.console#1425
- [@&#8203;DarqueWarrior](https://togithub.com/DarqueWarrior) made their
first contribution in
[spectreconsole/spectre.console#1431
- [@&#8203;tonycknight](https://togithub.com/tonycknight) made their
first contribution in
[spectreconsole/spectre.console#1435
- [@&#8203;caesay](https://togithub.com/caesay) made their first
contribution in
[spectreconsole/spectre.console#1439
- [@&#8203;jsheely](https://togithub.com/jsheely) made their first
contribution in
[spectreconsole/spectre.console#1414
- [@&#8203;danielcweber](https://togithub.com/danielcweber) made their
first contribution in
[spectreconsole/spectre.console#1456
- [@&#8203;martincostello](https://togithub.com/martincostello) made
their first contribution in
[spectreconsole/spectre.console#1477
- [@&#8203;slang25](https://togithub.com/slang25) made their first
contribution in
[spectreconsole/spectre.console#1289
- [@&#8203;thomhurst](https://togithub.com/thomhurst) made their first
contribution in
[spectreconsole/spectre.console#1250
- [@&#8203;gerardog](https://togithub.com/gerardog) made their first
contribution in
[spectreconsole/spectre.console#1489
-
[@&#8203;yenneferofvengerberg](https://togithub.com/yenneferofvengerberg)
made their first contribution in
[spectreconsole/spectre.console#1503
- [@&#8203;BlazeFace](https://togithub.com/BlazeFace) made their first
contribution in
[spectreconsole/spectre.console#1509

**Full Changelog**:
spectreconsole/spectre.console@0.48.0...0.49.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "after 9pm,before 6am" in timezone
Europe/Zurich, Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

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

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- 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://developer.mend.io/github/buehler/dotnet-operator-sdk).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zMTMuMSIsInVwZGF0ZWRJblZlciI6IjM3LjMxMy4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-CLI Command-Line Interface
Projects
Status: PR 📬
Development

Successfully merging this pull request may close these issues.

Pipe character for listing options e.g. --option [RED|GREEN|BLUE]
2 participants