Skip to content
This repository was archived by the owner on Jun 18, 2026. It is now read-only.

Support short subcommand aliases as positional tokens#78

Merged
fasterthanlime merged 2 commits into
mainfrom
codex/subcommand-short-alias-d-token
Apr 1, 2026
Merged

Support short subcommand aliases as positional tokens#78
fasterthanlime merged 2 commits into
mainfrom
codex/subcommand-short-alias-d-token

Conversation

@fasterthanlime

@fasterthanlime fasterthanlime commented Apr 1, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add subcommand variant short aliases to schema via #[facet(args::short = 'x')]
  • parse short aliases as positional subcommand tokens (d), not flag tokens (-d)
  • allow subcommand alias d to coexist with flag short -d
  • detect duplicate subcommand short aliases
  • add regression tests for schema + integration coverage

Testing

  • cargo nextest run -p figue integration::subcommand::
  • cargo nextest run -p figue schema::tests::

@fasterthanlime fasterthanlime merged commit cd1ac16 into main Apr 1, 2026
4 checks passed
@github-actions github-actions Bot mentioned this pull request Apr 1, 2026
fasterthanlime pushed a commit that referenced this pull request Apr 1, 2026
## 🤖 New release

* `figue-attrs`: 2.0.0 -> 2.0.1
* `figue`: 2.0.0 -> 2.0.1 (✓ API compatible changes)

<details><summary><i><b>Changelog</b></i></summary><p>


## `figue`

<blockquote>

##
[2.0.1](figue-v2.0.0...figue-v2.0.1)
- 2026-04-01

### Other

- Use kebab-case for flag names in help text
([#76](#76))
- Support short subcommand aliases as positional tokens
([#78](#78))
</blockquote>


</p></details>

---
This PR was generated with
[release-plz](https://github.com/release-plz/release-plz/).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@github-actions github-actions Bot mentioned this pull request Apr 1, 2026
fasterthanlime pushed a commit to facet-rs/facet that referenced this pull request Jun 18, 2026
## 🤖 New release

* `figue-attrs`: 2.0.0 -> 2.0.1
* `figue`: 2.0.0 -> 2.0.1 (✓ API compatible changes)

<details><summary><i><b>Changelog</b></i></summary><p>


## `figue`

<blockquote>

##
[2.0.1](bearcove/figue@figue-v2.0.0...figue-v2.0.1)
- 2026-04-01

### Other

- Use kebab-case for flag names in help text
([#76](bearcove/figue#76))
- Support short subcommand aliases as positional tokens
([#78](bearcove/figue#78))
</blockquote>


</p></details>

---
This PR was generated with
[release-plz](https://github.com/release-plz/release-plz/).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
fasterthanlime pushed a commit to facet-rs/facet that referenced this pull request Jun 18, 2026
## 🤖 New release

* `figue-attrs`: 2.0.0 -> 2.0.1
* `figue`: 2.0.0 -> 2.0.1 (✓ API compatible changes)

<details><summary><i><b>Changelog</b></i></summary><p>


## `figue`

<blockquote>

##
[2.0.1](bearcove/figue@figue-v2.0.0...figue-v2.0.1)
- 2026-04-01

### Other

- Use kebab-case for flag names in help text
([#76](bearcove/figue#76))
- Support short subcommand aliases as positional tokens
([#78](bearcove/figue#78))
</blockquote>


</p></details>

---
This PR was generated with
[release-plz](https://github.com/release-plz/release-plz/).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant