Skip to content

Commit

Permalink
chore(readme): add repo installation instructions for DEBs and RPMs (#…
Browse files Browse the repository at this point in the history
…600)

* chore(readme): add repo installation instructions for DEBs and RPMs

* chore(lint): explicitly ignore Fprint return values
  • Loading branch information
meowgorithm committed Jun 5, 2024
1 parent fa2f67d commit b1b02e4
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,31 @@ winget install charmbracelet.gum
scoop install charm-gum
```

<details>
<summary>Debian/Ubuntu</summary>

```bash
sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://repo.charm.sh/apt/gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/charm.gpg
echo "deb [signed-by=/etc/apt/keyrings/charm.gpg] https://repo.charm.sh/apt/ * *" | sudo tee /etc/apt/sources.list.d/charm.list
sudo apt update && sudo apt install gum
```
</details>

<details>
<summary>Fedora/RHEL</summary>

```bash
echo '[charm]
name=Charm
baseurl=https://repo.charm.sh/yum/
enabled=1
gpgcheck=1
gpgkey=https://repo.charm.sh/yum/gpg.key' | sudo tee /etc/yum.repos.d/charm.repo
sudo yum install gum
```
</details>

Or download it:

* [Packages][releases] are available in Debian, RPM, and Alpine formats
Expand Down
2 changes: 1 addition & 1 deletion man/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func (m Man) BeforeApply(ctx *kong.Context) error {
man := mangokong.NewManPage(1, ctx.Model)
man = man.WithSection("Copyright", "(C) 2022-2023 Charmbracelet, Inc.\n"+
"Released under MIT license.")
fmt.Fprint(ctx.Stdout, man.Build(roff.NewDocument()))
_, _ = fmt.Fprint(ctx.Stdout, man.Build(roff.NewDocument()))
ctx.Exit(0)
return nil
}

0 comments on commit b1b02e4

Please sign in to comment.