mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-01-30 04:21:19 -08:00
fix(cli): correct help text for font
subcommand
This commit is contained in:
parent
0a46189556
commit
eb91390a46
|
@ -15,7 +15,7 @@ var fontCmd = &cobra.Command{
|
||||||
|
|
||||||
This command is used to install fonts and configure the font in your terminal.
|
This command is used to install fonts and configure the font in your terminal.
|
||||||
|
|
||||||
- install: oh-my-posh install font https://github.com/ryanoasis/nerd-fonts/releases/download/v2.1.0/3270.zip`,
|
- install: oh-my-posh font install https://github.com/ryanoasis/nerd-fonts/releases/download/v2.1.0/3270.zip`,
|
||||||
ValidArgs: []string{
|
ValidArgs: []string{
|
||||||
"install",
|
"install",
|
||||||
"configure",
|
"configure",
|
||||||
|
|
|
@ -212,7 +212,7 @@ func (m *main) View() string {
|
||||||
case installFont:
|
case installFont:
|
||||||
return textStyle.Render(fmt.Sprintf("%s Installing %s", m.spinner.View(), m.fontname))
|
return textStyle.Render(fmt.Sprintf("%s Installing %s", m.spinner.View(), m.fontname))
|
||||||
case quit:
|
case quit:
|
||||||
return textStyle.Render("No need to install a new font? That’s cool.")
|
return textStyle.Render("No need to install a new font? That's cool.")
|
||||||
case done:
|
case done:
|
||||||
return textStyle.Render(fmt.Sprintf("Successfully installed %s 🚀", m.fontname))
|
return textStyle.Render(fmt.Sprintf("Successfully installed %s 🚀", m.fontname))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue