mirror of
https://github.com/charmbracelet/gum
synced 2024-06-04 14:52:18 +02:00
docs(examples): Move to PR example to README instead of script
This commit is contained in:
parent
01c7d96945
commit
03e0c80b0c
|
@ -369,6 +369,14 @@ List all branches and choose which branches to delete.
|
||||||
git branch | cut -c 3- | gum choose --no-limit | xargs git branch -D
|
git branch | cut -c 3- | gum choose --no-limit | xargs git branch -D
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### Choose pull request to checkout
|
||||||
|
|
||||||
|
List all PRs for the current GitHub repository and checkout the chosen PR (using [`gh`](https://cli.github.com/)).
|
||||||
|
|
||||||
|
```bash
|
||||||
|
gh pr list | gum choose | cut -f1 | xargs gh pr checkout
|
||||||
|
```
|
||||||
|
|
||||||
## Feedback
|
## Feedback
|
||||||
|
|
||||||
We’d love to hear your thoughts on this project. Feel free to drop us a note!
|
We’d love to hear your thoughts on this project. Feel free to drop us a note!
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
# List all pull requests and checkout the branch
|
|
||||||
|
|
||||||
gh pr list | gum choose | cut -f1 | xargs gh pr checkout
|
|
Loading…
Reference in a new issue