Files
iris-context/commands/sys/oh_my_posh.go
T
VERSE 2ef3c90819 feat(commands): more commands (#30)
- I wrote a scripts to copy and generate all commands missing in iris
from fig repo: https://github.com/withfig/autocomplete
- Add a new script to generate commands docs about which commands
currently are inside commands folder
377d4aac663590e504fe39a92eb4dac4cbd333b2
- Add more icons e64d4e70a1db61e62053460a882e093bd6373ab1
2026-07-04 22:08:36 +07:00

48 lines
2.5 KiB
Go

package sys
import (
"github.com/versenilvis/iris/commands/core"
)
func init() {
core.Register(&core.Spec{
Name: "oh-my-posh",
Description: "The config file to use",
Subcommands: []core.Subcommand{
{Name: "init", Description: "Initialize oh-my-posh for your shell"},
{Name: "get", Description: "Get oh-my-posh values"},
{Name: "shell", Description: "Get the current shell, example usage: 'oh-my-posh get shell'"},
{Name: "debug", Description: "Debug oh-my-posh, example usage: 'oh-my-posh debug'"},
{Name: "config", Description: "Interact with the oh-my-posh configuration"},
{Name: "edit", Description: "Edit the config file, example usage: 'oh-my-posh config edit'"},
{Name: "OUTPUT", Description: "The file to write to"},
{Name: "print", Description: "Print a prompt"},
{Name: "WIDTH", Description: "The terminal width"},
{Name: "COMMAND", Description: "The tooltip command"},
{Name: "ERROR CODE", Description: "The last error code"},
{Name: "EXECUTION TIME", Description: "The last command's execution time"},
{Name: "POWERSHELL WORKING DIRECTORY", Description: "The working directory according to PowerShell"},
{Name: "WORKING DIRECTORY", Description: "The working directory"},
{Name: "SHELL", Description: "The shell used"},
{Name: "NUM", Description: "The number of stacks"},
{Name: "version", Description: "Display the oh-my-posh version, example usage: 'oh-my-posh version'"},
},
Options: []core.Option{
{Name: "--config", Description: "The config file to use"},
{Name: "--format", Description: "The file format to use"},
{Name: "--print", Description: "Print the init script"},
{Name: "--write", Description: "The file to write to"},
{Name: "--terminal-width", Description: "The terminal width"},
{Name: "--command", Description: "The tooltip command"},
{Name: "--error", Description: "The last exit code, example usage: 'oh-my-posh print primary --error 127'"},
{Name: "--eval", Description: "Use eval to render the prompt, example usage: 'oh-my-posh print primary --eval'"},
{Name: "--execution-time", Description: "The last command's execution time"},
{Name: "--plain", Description: "The working directory according to PowerShell"},
{Name: "--pwd", Description: "The working directory"},
{Name: "--shell", Description: "The current shell, example usage: 'oh-my-posh print primary --shell fish'"},
{Name: "--stack-count", Description: "The number of stacks"},
{Name: "--help", Description: "Show help for oh-my-posh"},
},
})
}