Files
iris-context/commands/ops/volta.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

43 lines
2.1 KiB
Go

package ops
import (
"github.com/versenilvis/iris/commands/core"
)
func init() {
core.Register(&core.Spec{
Name: "volta",
Description: "Enables verbose diagnostics",
Subcommands: []core.Subcommand{
{Name: "fetch", Description: "Fetches a tool to the local machine"},
{Name: "install", Description: "Installs a tool in your toolchain"},
{Name: "uninstall", Description: "Uninstalls a tool from your toolchain"},
{Name: "pin", Description: "Pins your project's runtime or package manager"},
{Name: "list", Description: "Displays the current toolchain"},
{Name: "completions", Description: "Generates Volta completions"},
{Name: "shell", Description: "Shell to generate completions for"},
{Name: "which", Description: "Locates the actual binary that will be called by Volta"},
{Name: "setup", Description: "Enables Volta for the current user"},
{Name: "run", Description: "Run a command with custom Node, npm, and/or Yarn versions"},
{Name: "help", Description: "Prints this message or the help of the given subcommand(s)"},
},
Options: []core.Option{
{Name: "--verbose", Description: "Enables verbose diagnostics"},
{Name: "--quiet", Description: "Prevents unnecessary output"},
{Name: "-h", Description: "Prints help information"},
{Name: "-c", Description: "Show the currently-active tool(s)"},
{Name: "-d", Description: "Show your default tool(s)"},
{Name: "--format", Description: "Specify output format"},
{Name: "-f", Description: "Write over an existing file, if any"},
{Name: "-o", Description: "File to write generated completions to"},
{Name: "--bundle", Description: "Forces npm to be the version bundled with Node"},
{Name: "--no-yarn", Description: "Disables Yarn"},
{Name: "--node", Description: "Set the custom Node version"},
{Name: "--npm", Description: "Set the custom npm version"},
{Name: "--yarn", Description: "Set the custom Yarn version"},
{Name: "--env", Description: "Set an environment variable (can be used multiple times)"},
{Name: "-v", Description: "Prints the current version of Volta"},
},
})
}