v0.13.0

charmbracelet/gumv0.13.0Dec 12, 2023by github-actions[bot]

AI Summary

Adds a new `--select-if-one` flag to the choose and filter commands to automatically select the single option if only one is available.

Key Highlights

  • Adds `--select-if-one` flag to `gum choose` and `gum filter`

New Features

  • --select-if-one flag

Full Release Notes

## Changelog

### New Features

Add `--select-if-one` flag to `gum choose` and `gum filter`.

```bash
> gum choose --select-if-one "option"
> option
```

* fb6849ca163779e5fa33786568b78592f433470a: `--select-if-one` flag to `choose`/`filter`. (#398) (@kennyp)

### Bug fixes
* 5c65944c66156df9eeba7fe742d6837e7869292d: (fix): ShowOutput flag displays in realtime (#405) (@hopefulTex)

---

<details>
<summary>Verifying the artifacts</summary>

First, download the [`checksums.txt` file](https://github.com/charmbracelet/gum/releases/download/0.13.0/checksums.txt), for example, with `wget`:

```bash
wget 'https://github.com/charmbracelet/gum/releases/download/v0.13.0/checksums.txt'
```

Then, verify it using [`cosign`](https://github.com/sigstore/cosign):

```bash
cosign verify-blob \
  --certificate-identity 'https://github.com/charmbracelet/meta/.github/workflows/goreleaser.yml@refs/heads/main' \
  --certificate-oidc-issuer 'https://token.actions.githubusercontent.com' \
  --cert 'https://github.com/charmbracelet/gum/releases/download/v0.13.0/checksums.txt.pem' \
  --signature 'https://github.com/charmbracelet/gum/releases/download/v0.13.0/checksums.txt.sig' \
  ./checksums.txt
```

If the output is `Verified OK`, you can safely use it to verify the checksums of other artifacts you downloaded from the release using `sha256sum`:

```bash
sha256sum --ignore-missing -c checksums.txt
```

Done! You artifacts are now verified!

</details>

<a href="https://charm.sh/"><img alt="The Charm logo" src="https://stuff.charm.sh/charm-badge.jpg" width="400"></a>

Thoughts? Questions? We love hearing from you. Feel free to reach out on [Twitter](https://twitter.com/charmcli), [The Fediverse](https://mastodon.technology/@charm), or on [Discord](https://charm.sh/chat).