Skip to content

Commit

Permalink
fix 🐛: simplified manpage for smaller binary size
Browse files Browse the repository at this point in the history
Signed-off-by: moualhi zine el abidine <zmoualhi@outlook.com>
  • Loading branch information
muandane committed Aug 27, 2024
1 parent 5e689b0 commit 040b444
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 157 deletions.
172 changes: 68 additions & 104 deletions cmd/man.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,135 +2,99 @@ package cmd

import (
"fmt"
"os"
"strings"

"github.com/charmbracelet/glamour"
"github.com/mattn/go-isatty"
mcobra "github.com/muesli/mango-cobra"
"github.com/muesli/roff"
"github.com/spf13/cobra"
)

const specialChar = "%"
func init() {
rootCmd.AddCommand(manCmd)
}

var manDescription = `
Goji CLI Documentation
var manCmd = &cobra.Command{
Use: "man",
Short: "Display manual for Goji CLI",
Run: func(cmd *cobra.Command, args []string) {
manPage := `
GOJI(1) General Commands Manual GOJI(1)

Check warning on line 18 in cmd/man.go

View check run for this annotation

Codecov / codecov/patch

cmd/man.go#L16-L18

Added lines #L16 - L18 were not covered by tests
# NAME
goji - A CLI tool for generating conventional commits with emojis.
NAME
goji - A CLI tool for generating conventional commits with emojis.

Check warning on line 21 in cmd/man.go

View check run for this annotation

Codecov / codecov/patch

cmd/man.go#L20-L21

Added lines #L20 - L21 were not covered by tests
# SYNOPSIS
**goji** [**--help**|**-h**]
SYNOPSIS
goji [--help|-h]

Check warning on line 24 in cmd/man.go

View check run for this annotation

Codecov / codecov/patch

cmd/man.go#L23-L24

Added lines #L23 - L24 were not covered by tests
**goji init** [**--global**|**--repo**]
goji init [--global|--repo]

Check warning on line 26 in cmd/man.go

View check run for this annotation

Codecov / codecov/patch

cmd/man.go#L26

Added line #L26 was not covered by tests
**goji** [**--type** <type>] [**--message** <message>] [**--scope** <scope>]
goji [--type <type>] [--message <message>] [--scope <scope>]
[--no-verify|-n] [--amend] [--add|-a] [--git-flag <flag>]

Check warning on line 29 in cmd/man.go

View check run for this annotation

Codecov / codecov/patch

cmd/man.go#L28-L29

Added lines #L28 - L29 were not covered by tests
# DESCRIPTION
Goji is a command-line interface designed to facilitate conventional commit messages with the addition of emojis. It can be used in interactive mode or with flags to quickly generate commit messages.
DESCRIPTION
Goji is a command-line interface designed to facilitate conventional commit messages with the addition of emojis.
It can be used in interactive mode or with flags to quickly generate commit messages.

Check warning on line 33 in cmd/man.go

View check run for this annotation

Codecov / codecov/patch

cmd/man.go#L31-L33

Added lines #L31 - L33 were not covered by tests
# OPTIONS
**--help**, **-h**
* Display the help message and exit.
OPTIONS
--help, -h
Display the help message and exit.

Check warning on line 37 in cmd/man.go

View check run for this annotation

Codecov / codecov/patch

cmd/man.go#L35-L37

Added lines #L35 - L37 were not covered by tests
**init**
* Initialize a Goji configuration file. Use **--global** to apply settings globally or **--repo** to apply to the current repository.
init
Initialize a Goji configuration file. Use --global to apply settings globally or --repo to apply to the current repository.

Check warning on line 40 in cmd/man.go

View check run for this annotation

Codecov / codecov/patch

cmd/man.go#L39-L40

Added lines #L39 - L40 were not covered by tests
**--type** <type>
* Specify the type of commit (e.g., feat, fix, docs).
--type <type>, -t <type>
Specify the type of commit (e.g., feat, fix, docs).

Check warning on line 43 in cmd/man.go

View check run for this annotation

Codecov / codecov/patch

cmd/man.go#L42-L43

Added lines #L42 - L43 were not covered by tests
**--message** <message>
* The commit message to be used.
--message <message>, -m <message>
The commit message to be used.

Check warning on line 46 in cmd/man.go

View check run for this annotation

Codecov / codecov/patch

cmd/man.go#L45-L46

Added lines #L45 - L46 were not covered by tests
**--scope** <scope>
* Optional scope for the commit message.
--scope <scope>, -s <scope>
Optional scope for the commit message.

Check warning on line 49 in cmd/man.go

View check run for this annotation

Codecov / codecov/patch

cmd/man.go#L48-L49

Added lines #L48 - L49 were not covered by tests
# EXAMPLES
**goji init --global**
* Initialize a global Goji configuration file in the user's home path.
--no-verify, -n
Bypass pre-commit and commit-msg hooks.

Check warning on line 52 in cmd/man.go

View check run for this annotation

Codecov / codecov/patch

cmd/man.go#L51-L52

Added lines #L51 - L52 were not covered by tests
**goji init --repo**
* Add a Goji configuration file to the current repository.
--version, -v
Display version information.

Check warning on line 55 in cmd/man.go

View check run for this annotation

Codecov / codecov/patch

cmd/man.go#L54-L55

Added lines #L54 - L55 were not covered by tests
**goji**
* Enter interactive mode to generate a commit message.
--amend
Amend the last commit.

Check warning on line 58 in cmd/man.go

View check run for this annotation

Codecov / codecov/patch

cmd/man.go#L57-L58

Added lines #L57 - L58 were not covered by tests
**goji --type feat --message "Add login feature" --scope auth**
* Generate a commit message for adding a feature without entering interactive mode.
--add, -a
Automatically stage files that have been modified and deleted.

Check warning on line 61 in cmd/man.go

View check run for this annotation

Codecov / codecov/patch

cmd/man.go#L60-L61

Added lines #L60 - L61 were not covered by tests
# ENVIRONMENT
**GOJI_CONFIG**
* The path to the Goji configuration file. If not set, defaults to the home directory or the current repository's root.
--git-flag <flag>
Additional Git flags (can be used multiple times).

Check warning on line 64 in cmd/man.go

View check run for this annotation

Codecov / codecov/patch

cmd/man.go#L63-L64

Added lines #L63 - L64 were not covered by tests
`
EXAMPLES
goji init --global
Initialize a global Goji configuration file in the user's home path.

Check warning on line 68 in cmd/man.go

View check run for this annotation

Codecov / codecov/patch

cmd/man.go#L66-L68

Added lines #L66 - L68 were not covered by tests
var manBugs = "See GitHub Issues: <https://github.com/muandane/goji/issues>"
var manAuthor = "Zine el abidine Moualhi <zineelabidinemoualhi@gmail.com>"
goji init --repo
Add a Goji configuration file to the current repository.

Check warning on line 71 in cmd/man.go

View check run for this annotation

Codecov / codecov/patch

cmd/man.go#L70-L71

Added lines #L70 - L71 were not covered by tests
// manCmd generates the man pages.
var manCmd = &cobra.Command{
Use: "manual",
Aliases: []string{"man"},
Short: "Generate man pages",
Args: cobra.NoArgs,
Hidden: true,
RunE: func(cmd *cobra.Command, args []string) error {
if isatty.IsTerminal(os.Stdout.Fd()) {
renderer, err := glamour.NewTermRenderer(
glamour.WithStandardStyle("dark"),
)
if err != nil {
return err
}
// Render the manual in the terminal using glamour.
out, err := renderer.Render(markdownManual())
if err != nil {
return err
}
fmt.Print(out)
} else {
// Generate the man page using mango-cobra.
manPage, err := mcobra.NewManPage(1, rootCmd)
if err != nil {
return err
}

manPage = manPage.
WithLongDescription(sanitizeSpecial(manDescription)).
WithSection("Bugs", sanitizeSpecial(manBugs)).
WithSection("Author", sanitizeSpecial(manAuthor)).
WithSection("Copyright", "Copyright (C) 2024 Moualhi Zine El Abidine")

fmt.Println(manPage.Build(roff.NewDocument()))
return nil
}
return nil
},
}
goji
Enter interactive mode to generate a commit message.

Check warning on line 74 in cmd/man.go

View check run for this annotation

Codecov / codecov/patch

cmd/man.go#L73-L74

Added lines #L73 - L74 were not covered by tests
// Generate markdown for the manual.
func markdownManual() string {
return fmt.Sprint(
"# MANUAL\n", sanitizeMarkdown(manDescription),
"# BUGS\n", manBugs,
"\n# AUTHOR\n", manAuthor,
)
}
goji --type feat --message "Add login feature" --scope auth
Generate a commit message for adding a feature without entering interactive mode.

Check warning on line 77 in cmd/man.go

View check run for this annotation

Codecov / codecov/patch

cmd/man.go#L76-L77

Added lines #L76 - L77 were not covered by tests
func sanitizeMarkdown(input string) string {
escaped := strings.NewReplacer(
"<", "&lt;",
">", "&gt;",
"`", "&#96;", // backtick
).Replace(input)
return strings.ReplaceAll(escaped, specialChar, "`")
}
goji --type fix --message "Fix bug" --no-verify
Create a commit with the "fix" type and bypass pre-commit hooks.

Check warning on line 80 in cmd/man.go

View check run for this annotation

Codecov / codecov/patch

cmd/man.go#L79-L80

Added lines #L79 - L80 were not covered by tests
func sanitizeSpecial(s string) string {
return strings.ReplaceAll(s, specialChar, "")
}
goji --type docs --message "Update README" --amend
Amend the last commit with a new message.

Check warning on line 83 in cmd/man.go

View check run for this annotation

Codecov / codecov/patch

cmd/man.go#L82-L83

Added lines #L82 - L83 were not covered by tests
func init() {
rootCmd.AddCommand(manCmd)
goji --type feat --message "Add feature" --add
Stage changes and create a commit.

Check warning on line 86 in cmd/man.go

View check run for this annotation

Codecov / codecov/patch

cmd/man.go#L85-L86

Added lines #L85 - L86 were not covered by tests
goji --type chore --message "Update dependencies" --git-flag "--signoff"
Add a sign-off trailer to the commit.

Check warning on line 89 in cmd/man.go

View check run for this annotation

Codecov / codecov/patch

cmd/man.go#L88-L89

Added lines #L88 - L89 were not covered by tests
AUTHOR
Written by Zine el abidine Moualhi.

Check warning on line 92 in cmd/man.go

View check run for this annotation

Codecov / codecov/patch

cmd/man.go#L91-L92

Added lines #L91 - L92 were not covered by tests
COPYRIGHT
Copyright (C) 2024 Moualhi Zine El Abidine. This is free software; see the source for copying conditions.
`

Check warning on line 96 in cmd/man.go

View check run for this annotation

Codecov / codecov/patch

cmd/man.go#L94-L96

Added lines #L94 - L96 were not covered by tests

fmt.Println(manPage)
},

Check warning on line 99 in cmd/man.go

View check run for this annotation

Codecov / codecov/patch

cmd/man.go#L98-L99

Added lines #L98 - L99 were not covered by tests
}
17 changes: 1 addition & 16 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,51 +4,40 @@ go 1.22.0

require (
github.com/alecthomas/assert/v2 v2.10.0
github.com/charmbracelet/glamour v0.8.0
github.com/charmbracelet/huh v0.5.3
github.com/charmbracelet/lipgloss v0.13.0
github.com/fatih/color v1.17.0
github.com/mattn/go-isatty v0.0.20
github.com/muesli/mango-cobra v1.2.0
github.com/muesli/roff v0.1.0
github.com/rs/zerolog v1.33.0
github.com/spf13/cobra v1.8.1
github.com/spf13/viper v1.19.0
)

require (
github.com/alecthomas/chroma/v2 v2.14.0 // indirect
github.com/alecthomas/repr v0.4.0 // indirect
github.com/atotto/clipboard v0.1.4 // indirect
github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect
github.com/aymerick/douceur v0.2.0 // indirect
github.com/catppuccin/go v0.2.0 // indirect
github.com/charmbracelet/bubbles v0.19.0 // indirect
github.com/charmbracelet/bubbletea v0.27.0 // indirect
github.com/charmbracelet/x/ansi v0.2.2 // indirect
github.com/charmbracelet/x/exp/strings v0.0.0-20240722160745-212f7b056ed0 // indirect
github.com/charmbracelet/x/term v0.2.0 // indirect
github.com/dlclark/regexp2 v1.11.0 // indirect
github.com/dustin/go-humanize v1.0.1 // indirect
github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f // indirect
github.com/fsnotify/fsnotify v1.7.0 // indirect
github.com/gorilla/css v1.0.1 // indirect
github.com/hashicorp/hcl v1.0.0 // indirect
github.com/hexops/gotextdiff v1.0.3 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/lucasb-eyer/go-colorful v1.2.0 // indirect
github.com/magiconair/properties v1.8.7 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/mattn/go-localereader v0.0.1 // indirect
github.com/mattn/go-runewidth v0.0.16 // indirect
github.com/microcosm-cc/bluemonday v1.0.27 // indirect
github.com/mitchellh/hashstructure/v2 v2.0.2 // indirect
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/muesli/ansi v0.0.0-20230316100256-276c6243b2f6 // indirect
github.com/muesli/cancelreader v0.2.2 // indirect
github.com/muesli/mango v0.2.0 // indirect
github.com/muesli/mango-pflag v0.1.0 // indirect
github.com/muesli/reflow v0.3.0 // indirect
github.com/muesli/termenv v0.15.3-0.20240618155329-98d742f6907a // indirect
github.com/pelletier/go-toml/v2 v2.2.2 // indirect
github.com/rivo/uniseg v0.4.7 // indirect
Expand All @@ -60,14 +49,10 @@ require (
github.com/spf13/cast v1.6.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/subosito/gotenv v1.6.0 // indirect
github.com/yuin/goldmark v1.7.4 // indirect
github.com/yuin/goldmark-emoji v1.0.3 // indirect
go.uber.org/multierr v1.11.0 // indirect
golang.org/x/exp v0.0.0-20240613232115-7f521ea00fb8 // indirect
golang.org/x/net v0.27.0 // indirect
golang.org/x/sync v0.8.0 // indirect
golang.org/x/sys v0.24.0 // indirect
golang.org/x/term v0.22.0 // indirect
golang.org/x/text v0.16.0 // indirect
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
gopkg.in/ini.v1 v1.67.0 // indirect
Expand Down
37 changes: 0 additions & 37 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -2,34 +2,24 @@ github.com/MakeNowJust/heredoc v1.0.0 h1:cXCdzVdstXyiTqTvfqk9SDHpKNjxuom+DOlyEeQ
github.com/MakeNowJust/heredoc v1.0.0/go.mod h1:mG5amYoWBHf8vpLOuehzbGGw0EHxpZZ6lCpQ4fNJ8LE=
github.com/alecthomas/assert/v2 v2.10.0 h1:jjRCHsj6hBJhkmhznrCzoNpbA3zqy0fYiUcYZP/GkPY=
github.com/alecthomas/assert/v2 v2.10.0/go.mod h1:Bze95FyfUr7x34QZrjL+XP+0qgp/zg8yS+TtBj1WA3k=
github.com/alecthomas/chroma/v2 v2.14.0 h1:R3+wzpnUArGcQz7fCETQBzO5n9IMNi13iIs46aU4V9E=
github.com/alecthomas/chroma/v2 v2.14.0/go.mod h1:QolEbTfmUHIMVpBqxeDnNBj2uoeI4EbYP4i6n68SG4I=
github.com/alecthomas/repr v0.4.0 h1:GhI2A8MACjfegCPVq9f1FLvIBS+DrQ2KQBFZP1iFzXc=
github.com/alecthomas/repr v0.4.0/go.mod h1:Fr0507jx4eOXV7AlPV6AVZLYrLIuIeSOWtW57eE/O/4=
github.com/atotto/clipboard v0.1.4 h1:EH0zSVneZPSuFR11BlR9YppQTVDbh5+16AmcJi4g1z4=
github.com/atotto/clipboard v0.1.4/go.mod h1:ZY9tmq7sm5xIbd9bOK4onWV4S6X0u6GY7Vn0Yu86PYI=
github.com/aymanbagabas/go-osc52/v2 v2.0.1 h1:HwpRHbFMcZLEVr42D4p7XBqjyuxQH5SMiErDT4WkJ2k=
github.com/aymanbagabas/go-osc52/v2 v2.0.1/go.mod h1:uYgXzlJ7ZpABp8OJ+exZzJJhRNQ2ASbcXHWsFqH8hp8=
github.com/aymanbagabas/go-udiff v0.2.0 h1:TK0fH4MteXUDspT88n8CKzvK0X9O2xu9yQjWpi6yML8=
github.com/aymanbagabas/go-udiff v0.2.0/go.mod h1:RE4Ex0qsGkTAJoQdQQCA0uG+nAzJO/pI/QwceO5fgrA=
github.com/aymerick/douceur v0.2.0 h1:Mv+mAeH1Q+n9Fr+oyamOlAkUNPWPlA8PPGR0QAaYuPk=
github.com/aymerick/douceur v0.2.0/go.mod h1:wlT5vV2O3h55X9m7iVYN0TBM0NH/MmbLnd30/FjWUq4=
github.com/catppuccin/go v0.2.0 h1:ktBeIrIP42b/8FGiScP9sgrWOss3lw0Z5SktRoithGA=
github.com/catppuccin/go v0.2.0/go.mod h1:8IHJuMGaUUjQM82qBrGNBv7LFq6JI3NnQCF6MOlZjpc=
github.com/charmbracelet/bubbles v0.19.0 h1:gKZkKXPP6GlDk6EcfujDK19PCQqRjaJZQ7QRERx1UF0=
github.com/charmbracelet/bubbles v0.19.0/go.mod h1:WILteEqZ+krG5c3ntGEMeG99nCupcuIk7V0/zOP0tOA=
github.com/charmbracelet/bubbletea v0.27.0 h1:Mznj+vvYuYagD9Pn2mY7fuelGvP0HAXtZYGgRBCbHvU=
github.com/charmbracelet/bubbletea v0.27.0/go.mod h1:5MdP9XH6MbQkgGhnlxUqCNmBXf9I74KRQ8HIidRxV1Y=
github.com/charmbracelet/glamour v0.8.0 h1:tPrjL3aRcQbn++7t18wOpgLyl8wrOHUEDS7IZ68QtZs=
github.com/charmbracelet/glamour v0.8.0/go.mod h1:ViRgmKkf3u5S7uakt2czJ272WSg2ZenlYEZXT2x7Bjw=
github.com/charmbracelet/huh v0.5.3 h1:3KLP4a/K1/S4dq4xFMTNMt3XWhgMl/yx8NYtygQ0bmg=
github.com/charmbracelet/huh v0.5.3/go.mod h1:OZC3lshuF+/y8laj//DoZdFSHxC51OrtXLJI8xWVouQ=
github.com/charmbracelet/lipgloss v0.13.0 h1:4X3PPeoWEDCMvzDvGmTajSyYPcZM4+y8sCA/SsA3cjw=
github.com/charmbracelet/lipgloss v0.13.0/go.mod h1:nw4zy0SBX/F/eAO1cWdcvy6qnkDUxr8Lw7dvFrAIbbY=
github.com/charmbracelet/x/ansi v0.2.2 h1:BC7xzaVpfWIYZRNE8NhO9zo8KA4eGUL6L/JWXDh3GF0=
github.com/charmbracelet/x/ansi v0.2.2/go.mod h1:dk73KoMTT5AX5BsX0KrqhsTqAnhZZoCBjs7dGWp4Ktw=
github.com/charmbracelet/x/exp/golden v0.0.0-20240815200342-61de596daa2b h1:MnAMdlwSltxJyULnrYbkZpp4k58Co7Tah3ciKhSNo0Q=
github.com/charmbracelet/x/exp/golden v0.0.0-20240815200342-61de596daa2b/go.mod h1:wDlXFlCrmJ8J+swcL/MnGUuYnqgQdW9rhSD61oNMb6U=
github.com/charmbracelet/x/exp/strings v0.0.0-20240722160745-212f7b056ed0 h1:qko3AQ4gK1MTS/de7F5hPGx6/k1u0w4TeYmBFwzYVP4=
github.com/charmbracelet/x/exp/strings v0.0.0-20240722160745-212f7b056ed0/go.mod h1:pBhA0ybfXv6hDjQUZ7hk1lVxBiUbupdw5R31yPUViVQ=
github.com/charmbracelet/x/term v0.2.0 h1:cNB9Ot9q8I711MyZ7myUR5HFWL/lc3OpU8jZ4hwm0x0=
Expand All @@ -40,8 +30,6 @@ github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSs
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM=
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/dlclark/regexp2 v1.11.0 h1:G/nrcoOa7ZXlpoa/91N3X7mM3r8eIlMBBJZvsz/mxKI=
github.com/dlclark/regexp2 v1.11.0/go.mod h1:DHkYz0B9wPfa6wondMfaivmHpzrQ3v9q8cnmRbL6yW8=
github.com/dustin/go-humanize v1.0.1 h1:GzkhY7T5VNhEkwH0PVJgjz+fX1rhBrR7pRT3mDkpeCY=
github.com/dustin/go-humanize v1.0.1/go.mod h1:Mu1zIs6XwVuF/gI1OepvI0qD18qycQx+mFykh5fBlto=
github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f h1:Y/CXytFA4m6baUTXGLOoWe4PQhGxaX0KpnayAqC48p4=
Expand All @@ -55,8 +43,6 @@ github.com/fsnotify/fsnotify v1.7.0/go.mod h1:40Bi/Hjc2AVfZrqy+aj+yEI+/bRxZnMJyT
github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA=
github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=
github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
github.com/gorilla/css v1.0.1 h1:ntNaBIghp6JmvWnxbZKANoLyuXTPZ4cAMlo6RyhlbO8=
github.com/gorilla/css v1.0.1/go.mod h1:BvnYkspnSzMmwRK+b8/xgNPLiIuNZr6vbZBTPQ2A3b0=
github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4=
github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ=
github.com/hexops/gotextdiff v1.0.3 h1:gitA9+qJrrTCsiCl7+kh75nPqQt1cx4ZkudSTLoUqJM=
Expand All @@ -82,11 +68,8 @@ github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWE
github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y=
github.com/mattn/go-localereader v0.0.1 h1:ygSAOl7ZXTx4RdPYinUpg6W99U8jWvWi9Ye2JC/oIi4=
github.com/mattn/go-localereader v0.0.1/go.mod h1:8fBrzywKY7BI3czFoHkuzRoWE9C+EiG4R1k4Cjx5p88=
github.com/mattn/go-runewidth v0.0.12/go.mod h1:RAqKPSqVFrSLVXbA8x7dzmKdmGzieGRCM46jaSJTDAk=
github.com/mattn/go-runewidth v0.0.16 h1:E5ScNMtiwvlvB5paMFdw9p4kSQzbXFikJ5SQO6TULQc=
github.com/mattn/go-runewidth v0.0.16/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w=
github.com/microcosm-cc/bluemonday v1.0.27 h1:MpEUotklkwCSLeH+Qdx1VJgNqLlpY2KXwXFM08ygZfk=
github.com/microcosm-cc/bluemonday v1.0.27/go.mod h1:jFi9vgW+H7c3V0lb6nR74Ib/DIB5OBs92Dimizgw2cA=
github.com/mitchellh/hashstructure/v2 v2.0.2 h1:vGKWl0YJqUNxE8d+h8f6NJLcCJrgbhC4NcD46KavDd4=
github.com/mitchellh/hashstructure/v2 v2.0.2/go.mod h1:MG3aRVU/N29oo/V/IhBX8GR/zz4kQkprJgF2EVszyDE=
github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY=
Expand All @@ -95,16 +78,6 @@ github.com/muesli/ansi v0.0.0-20230316100256-276c6243b2f6 h1:ZK8zHtRHOkbHy6Mmr5D
github.com/muesli/ansi v0.0.0-20230316100256-276c6243b2f6/go.mod h1:CJlz5H+gyd6CUWT45Oy4q24RdLyn7Md9Vj2/ldJBSIo=
github.com/muesli/cancelreader v0.2.2 h1:3I4Kt4BQjOR54NavqnDogx/MIoWBFa0StPA8ELUXHmA=
github.com/muesli/cancelreader v0.2.2/go.mod h1:3XuTXfFS2VjM+HTLZY9Ak0l6eUKfijIfMUZ4EgX0QYo=
github.com/muesli/mango v0.2.0 h1:iNNc0c5VLQ6fsMgAqGQofByNUBH2Q2nEbD6TaI+5yyQ=
github.com/muesli/mango v0.2.0/go.mod h1:5XFpbC8jY5UUv89YQciiXNlbi+iJgt29VDC5xbzrLL4=
github.com/muesli/mango-cobra v1.2.0 h1:DQvjzAM0PMZr85Iv9LIMaYISpTOliMEg+uMFtNbYvWg=
github.com/muesli/mango-cobra v1.2.0/go.mod h1:vMJL54QytZAJhCT13LPVDfkvCUJ5/4jNUKF/8NC2UjA=
github.com/muesli/mango-pflag v0.1.0 h1:UADqbYgpUyRoBja3g6LUL+3LErjpsOwaC9ywvBWe7Sg=
github.com/muesli/mango-pflag v0.1.0/go.mod h1:YEQomTxaCUp8PrbhFh10UfbhbQrM/xJ4i2PB8VTLLW0=
github.com/muesli/reflow v0.3.0 h1:IFsN6K9NfGtjeggFP+68I4chLZV2yIKsXJFNZ+eWh6s=
github.com/muesli/reflow v0.3.0/go.mod h1:pbwTDkVPibjO2kyvBQRBxTWEEGDGq0FlB1BIKtnHY/8=
github.com/muesli/roff v0.1.0 h1:YD0lalCotmYuF5HhZliKWlIx7IEhiXeSfq7hNjFqGF8=
github.com/muesli/roff v0.1.0/go.mod h1:pjAHQM9hdUUwm/krAfrLGgJkXJ+YuhtsfZ42kieB2Ig=
github.com/muesli/termenv v0.15.3-0.20240618155329-98d742f6907a h1:2MaM6YC3mGu54x+RKAA6JiFFHlHDY1UbkxqppT7wYOg=
github.com/muesli/termenv v0.15.3-0.20240618155329-98d742f6907a/go.mod h1:hxSnBBYLK21Vtq/PHd0S2FYCxBXzBua8ov5s1RobyRQ=
github.com/pelletier/go-toml/v2 v2.2.2 h1:aYUidT7k73Pcl9nb2gScu7NSrKCSHIDE89b3+6Wq+LM=
Expand All @@ -113,7 +86,6 @@ github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINE
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRIccs7FGNTlIRMkT8wgtp5eCXdBlqhYGL6U=
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/rivo/uniseg v0.1.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
github.com/rivo/uniseg v0.4.7 h1:WUdvkW8uEhrYfLC4ZzdpI2ztxP1I582+49Oc5Mq64VQ=
github.com/rivo/uniseg v0.4.7/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88=
Expand Down Expand Up @@ -150,17 +122,10 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT
github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
github.com/subosito/gotenv v1.6.0 h1:9NlTDc1FTs4qu0DDq7AEtTPNw6SVm7uBMsUCUjABIf8=
github.com/subosito/gotenv v1.6.0/go.mod h1:Dk4QP5c2W3ibzajGcXpNraDfq2IrhjMIvMSWPKKo0FU=
github.com/yuin/goldmark v1.7.1/go.mod h1:uzxRWxtg69N339t3louHJ7+O03ezfj6PlliRlaOzY1E=
github.com/yuin/goldmark v1.7.4 h1:BDXOHExt+A7gwPCJgPIIq7ENvceR7we7rOS9TNoLZeg=
github.com/yuin/goldmark v1.7.4/go.mod h1:uzxRWxtg69N339t3louHJ7+O03ezfj6PlliRlaOzY1E=
github.com/yuin/goldmark-emoji v1.0.3 h1:aLRkLHOuBR2czCY4R8olwMjID+tENfhyFDMCRhbIQY4=
github.com/yuin/goldmark-emoji v1.0.3/go.mod h1:tTkZEbwu5wkPmgTcitqddVxY9osFZiavD+r4AzQrh1U=
go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0=
go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y=
golang.org/x/exp v0.0.0-20240613232115-7f521ea00fb8 h1:yixxcjnhBmY0nkL253HFVIm0JsFHwrHdT3Yh6szTnfY=
golang.org/x/exp v0.0.0-20240613232115-7f521ea00fb8/go.mod h1:jj3sYF3dwk5D+ghuXyeI3r5MFf+NT2An6/9dOA95KSI=
golang.org/x/net v0.27.0 h1:5K3Njcw06/l2y9vpGCSdcxWOYHOUk3dVNGDXN+FvAys=
golang.org/x/net v0.27.0/go.mod h1:dDi0PyhWNoiUOrAS8uXv/vnScO4wnHQO4mj9fn/RytE=
golang.org/x/sync v0.8.0 h1:3NFvSEYkUoMifnESzZl15y791HH1qU2xm6eCJU5ZPXQ=
golang.org/x/sync v0.8.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
golang.org/x/sys v0.0.0-20210809222454-d867a43fc93e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
Expand All @@ -169,8 +134,6 @@ golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.24.0 h1:Twjiwq9dn6R1fQcyiK+wQyHWfaz/BJB+YIpzU/Cv3Xg=
golang.org/x/sys v0.24.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/term v0.22.0 h1:BbsgPEJULsl2fV/AT3v15Mjva5yXKQDyKf+TbDz7QJk=
golang.org/x/term v0.22.0/go.mod h1:F3qCibpT5AMpCRfhfT53vVJwhLtIVHhB9XDjfFvnMI4=
golang.org/x/text v0.16.0 h1:a94ExnEXNtEwYLGJSIUxnWoxoRz/ZcCsV63ROupILh4=
golang.org/x/text v0.16.0/go.mod h1:GhwF1Be+LQoKShO3cGOHzqOgRrGaYc9AvblQOmPVHnI=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
Expand Down

0 comments on commit 040b444

Please sign in to comment.