Commit Graph

429 Commits

Author SHA1 Message Date
bashbunni a4f52465e7
fix(docs): include winget install 2024-04-22 12:44:33 -07:00
Code_Zealot 4bdcb2bc0c
Update example in comment to latest pager syntax (#542) 2024-04-18 07:23:40 -04:00
Maas Lalani 1a0111eaff
docs: update readme 2024-04-05 04:20:49 -04:00
Maas Lalani f75dfa668f
docs: add new gifs (#533)
* docs: add new gifs

* Update README.md

* docs: spin.gif

* docs: add spin.gif to readme

* fix: lint

* don't commit filter.tape
2024-04-05 04:16:25 -04:00
Maas Lalani 2a35019323
docs: rework examples section 2024-04-05 02:38:26 -04:00
Maas Lalani 9ab722ca4f
chore: new gifs (JetBrains Mono) 2024-04-05 02:32:16 -04:00
Maas Lalani 42f59ed330
Update README.md (#531) 2024-04-04 02:26:40 -04:00
Maas Lalani 1705593eb9
Clean up README.md 2024-04-04 02:17:07 -04:00
Maas Lalani 4d5d53169e
feat: huh gum write (#525) 2024-03-29 07:19:03 -04:00
Maas Lalani 2f0ea96504
fix(input): width 2024-03-28 16:38:24 -04:00
Maas Lalani 589be38936
fix: textinput stdin read 2024-03-28 16:36:14 -04:00
Maas Lalani 4a560b1953
feat: huh for gum input (#524) 2024-03-28 16:29:08 -04:00
Maas Lalani 3a717104a9
feat: huh file picker (#523)
Use `huh` for `gum file`.
2024-03-28 16:19:06 -04:00
Maas Lalani f7572e387e
Use Huh for Gum Confirm (#522)
* feat: gum confirm with huh

Use `huh` for `gum confirm`.

* fix: lint
2024-03-28 14:41:06 -04:00
Maas Lalani 44906e23b9
Use Huh for Gum Choose (#521)
* feat: use huh for gum choose (select + multiselect)

Uses Select for gum choose and MultiSelect for gum choose --no-limit.

* chore: bump to 1.21
2024-03-28 14:22:03 -04:00
Maas Lalani 598ee57330
fix: lint 2024-03-28 13:21:51 -04:00
dependabot[bot] 4cc4611a34
feat(deps): bump github.com/charmbracelet/glamour (#517)
Bumps [github.com/charmbracelet/glamour](https://github.com/charmbracelet/glamour) from 0.6.1-0.20230531150759-6d5b52861a9d to 0.7.0.
- [Release notes](https://github.com/charmbracelet/glamour/releases)
- [Commits](https://github.com/charmbracelet/glamour/commits/v0.7.0)

---
updated-dependencies:
- dependency-name: github.com/charmbracelet/glamour
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-28 13:12:31 -04:00
Kevin de9f6b0397
docs(readme): add missing documentation (#513)
add documentation surrounding how to select multiple items in a list and returning them
2024-03-28 13:12:19 -04:00
Jelle Besseling f4d198396f
feat(spin): Add support for --show-error for the spinner. (rebase #440) (#518)
* feat(spin): Add support for `--show-error` for the spinner.

This makes it so that if the `--show-error` flag is provided then the
full output of the command will be printed if the command fails. This
kind of works in conjuncture with `--show-output` in that if the command
succeeds only STDOUT is pushed. If the command fails both `STDOUT` and
`STDERR` are pushed.

This builds off of https://github.com/charmbracelet/gum/pull/371

Resolves #55

* chore: Fix formatting

---------

Co-authored-by: Elliot Courant <me@elliotcourant.dev>
2024-03-28 13:11:07 -04:00
dependabot[bot] 2f2fa3bf00
feat(deps): bump github.com/charmbracelet/lipgloss from 0.9.1 to 0.10.0 (#508)
Bumps [github.com/charmbracelet/lipgloss](https://github.com/charmbracelet/lipgloss) from 0.9.1 to 0.10.0.
- [Release notes](https://github.com/charmbracelet/lipgloss/releases)
- [Commits](https://github.com/charmbracelet/lipgloss/compare/v0.9.1...v0.10.0)

---
updated-dependencies:
- dependency-name: github.com/charmbracelet/lipgloss
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-06 11:19:47 -05:00
Carlos Alexandro Becker 396ddf86df
build: rename scoop to charm-gum (#504)
gum conflicts with another tool, even if it is in our own bucket, this
still makes it difficult to install.

the official scoop for gum is also called charm-gum, so I think this
should work better.

refs https://github.com/charmbracelet/scoop-bucket/pull/7
2024-03-01 17:36:15 -03:00
Carlos Alexandro Becker 5951e0612f
fix: lint issues, linter config (#505) 2024-03-01 08:32:02 -05:00
dependabot[bot] 491042b25f
feat(deps): bump github.com/sahilm/fuzzy (#503)
Bumps [github.com/sahilm/fuzzy](https://github.com/sahilm/fuzzy) from 0.1.1-0.20230530133925-c48e322e2a8f to 0.1.1.
- [Release notes](https://github.com/sahilm/fuzzy/releases)
- [Commits](https://github.com/sahilm/fuzzy/commits/v0.1.1)

---
updated-dependencies:
- dependency-name: github.com/sahilm/fuzzy
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-01 10:12:13 -03:00
dependabot[bot] 7ccd488d42
feat(deps): bump github.com/charmbracelet/bubbles from 0.17.1 to 0.18.0 (#489)
Bumps [github.com/charmbracelet/bubbles](https://github.com/charmbracelet/bubbles) from 0.17.1 to 0.18.0.
- [Release notes](https://github.com/charmbracelet/bubbles/releases)
- [Commits](https://github.com/charmbracelet/bubbles/compare/v0.17.1...v0.18.0)

---
updated-dependencies:
- dependency-name: github.com/charmbracelet/bubbles
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-28 21:28:38 -05:00
dependabot[bot] 6255eaeb02
chore(deps): bump golangci/golangci-lint-action from 3 to 4 (#496)
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 3 to 4.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](https://github.com/golangci/golangci-lint-action/compare/v3...v4)

---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-28 21:28:17 -05:00
Maas Lalani e4c4002496
Create CODEOWNERS 2024-02-28 20:58:01 -05:00
Maas Lalani 7caf7d44ff fix(format): force ansi256 for template formatting 2024-01-13 23:12:03 -05:00
Maas Lalani 2d896f777e feat(filter): allow customizing placeholder 2024-01-13 15:33:58 -05:00
Maas Lalani 7e5b494ae4 feat(input): allow placeholder style customization 2024-01-13 15:33:58 -05:00
Kevin Ernst cd115c44e9
Add example and help for gum log --time option to README (#472)
* docs(log): add help for `--time` option

The `gum log --help` output for `--time` option says

```
-t, --time=""             The time format to use (kitchen, layout, ansic, rfc822, etc...)
```

with no indication of what `etc...` means. This is probably inferred for proficient Go programmers, but not for everyone else.

This commit makes it clearer which options are supported by `--time` by linking to the docs for the `time` library,

* Update README.md

* Update README.md

---------

Co-authored-by: Maas Lalani <maas@lalani.dev>
2024-01-12 14:31:18 -05:00
dependabot[bot] 3a37defc82 feat(deps): bump github.com/charmbracelet/bubbles from 0.16.1 to 0.17.1
Bumps [github.com/charmbracelet/bubbles](https://github.com/charmbracelet/bubbles) from 0.16.1 to 0.17.1.
- [Release notes](https://github.com/charmbracelet/bubbles/releases)
- [Commits](https://github.com/charmbracelet/bubbles/compare/v0.16.1...v0.17.1)

---
updated-dependencies:
- dependency-name: github.com/charmbracelet/bubbles
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-12 14:08:46 -05:00
Maas Lalani 6a275b423f
feat(spin): stdout streaming (#467) 2023-12-21 15:09:00 -05:00
Rose Thatcher 4a00db207a
Spin output can still be piped if timeout occurs (#461) 2023-12-13 13:54:14 -05:00
dependabot[bot] 7b16e873c7
feat(deps): bump github.com/charmbracelet/bubbletea (#465)
Bumps [github.com/charmbracelet/bubbletea](https://github.com/charmbracelet/bubbletea) from 0.24.2 to 0.25.0.
- [Release notes](https://github.com/charmbracelet/bubbletea/releases)
- [Commits](https://github.com/charmbracelet/bubbletea/compare/v0.24.2...v0.25.0)

---
updated-dependencies:
- dependency-name: github.com/charmbracelet/bubbletea
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-13 13:53:14 -05:00
Maas Lalani 4d75f110a7
fix(spinner): hide spinner when done 2023-12-13 12:26:10 -05:00
snan a11d1ff648
fix: Make --select-if-one print to stdout (#463)
For some reason it wasn't printing to stdout (and I could repro that
bug even on versions before I added the newline). It was only showing
up on other streams in the shell (error stream probably), not getting
sent into pipes.

I changed it to fmt.Println.

As for the ansi-stripping that was in `filter`, LMK if that's what you
prefer and I'll add it to `choose` too. I just wanted them to match.
2023-12-10 13:52:11 -05:00
snan d1145b4163
Add newline printing to --select-if-one (#459)
* Add newline printing to --select-if-one

This matches how choose works normally when there are more than
one option.

* Add newline printing to filter --select-if-one

To match how it works without --select-if-one.
2023-12-07 10:29:40 -05:00
dependabot[bot] c9afacc74b
chore(deps): bump actions/setup-go from 4 to 5 (#460)
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 4 to 5.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](https://github.com/actions/setup-go/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-07 08:54:33 -03:00
Rose Thatcher 5c65944c66
(fix): ShowOutput flag displays in realtime (#405) 2023-11-29 16:54:57 -05:00
Maas Lalani 32c9d20692
fix(lint): groupName is unused 2023-11-29 11:38:27 -05:00
Maas Lalani 76582446ec
fix: add error printing back 2023-11-29 11:00:43 -05:00
Maas Lalani 01a66511a1
Hide Style Flags consistently (#457)
* refactor: hide style flags on error to not clutter usage

* docs(style): add comment regarding dynamically hiding flags
2023-11-28 14:17:57 -05:00
Kenny Parnell fb6849ca16
Add `--select-if-one` flag to `choose`/`filter`. (#398)
* Add `--select-if-one` flag to `choose`/`filter`.

* Remove accidental commit of other changes.

* fix: use o.Options

---------

Co-authored-by: Maas Lalani <maas@lalani.dev>
2023-11-28 12:34:50 -05:00
dependabot[bot] c5aa973625
feat(deps): bump github.com/charmbracelet/log from 0.3.0 to 0.3.1 (#456)
Bumps [github.com/charmbracelet/log](https://github.com/charmbracelet/log) from 0.3.0 to 0.3.1.
- [Release notes](https://github.com/charmbracelet/log/releases)
- [Commits](https://github.com/charmbracelet/log/compare/v0.3.0...v0.3.1)

---
updated-dependencies:
- dependency-name: github.com/charmbracelet/log
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-28 09:28:30 -03:00
Piero Lescano dd557baf6a
fix(input): Avoid reading from stdin if `--value` is being used (#448) 2023-11-14 16:54:45 -05:00
dependabot[bot] eb0e8afeba
feat(deps): bump golang.org/x/net from 0.8.0 to 0.17.0 (#451)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.8.0 to 0.17.0.
- [Commits](https://github.com/golang/net/compare/v0.8.0...v0.17.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-14 16:44:23 -05:00
Ayman Bagabas 504a2060b2
fix(log): use log default colors 2023-11-08 12:12:06 -05:00
Ayman Bagabas 7bae4c8fcb
fix(log): default info level color
https://github.com/charmbracelet/log/blob/main/styles.go#L67
2023-11-08 12:09:50 -05:00
Maas Lalani bf3864e231
Log predefined time formats (#452)
* feat: allow predefined time formats

* refactor(log): use time format constants

* feat(log): time format flag -> time flag

* docs: add formats to help
2023-11-08 12:03:49 -05:00
Maas Lalani 3839b8d6e1
docs(log): add gif 2023-11-08 11:11:50 -05:00