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
This commit is contained in:
VERSE
2026-07-04 22:08:36 +07:00
committed by GitHub
parent ffa336196a
commit 2ef3c90819
482 changed files with 22971 additions and 5 deletions
+39
View File
@@ -0,0 +1,39 @@
package ops
import (
"github.com/versenilvis/iris/commands/core"
)
func init() {
core.Register(&core.Spec{
Name: "terraform",
Description: "Workspace",
Subcommands: []core.Subcommand{
{Name: "show", Description: "Display the current workspace"},
{Name: "list", Description: "List the workspace"},
{Name: "delete", Description: "Delete the specified workspace"},
{Name: "select", Description: "Change the current working workspace"},
},
Options: []core.Option{
{Name: "-lock", Description: "Lock the state file when locking is supported. Defaults to true"},
{Name: "-force", Description: "Delete the workspace even if its state is not empty. Defaults to false"},
{Name: "-lock-timeout", Description: "Duration to retry a state lock. Default 0s"},
{Name: "-input", Description: "Ask for input for variables if not directly set"},
{Name: "-no-color", Description: "Disables output with coloring"},
{Name: "-help", Description: "Show this help output, or the help for a specified subcommand"},
{Name: "-chdir", Description: "Switch to a different working directory before executing the given subcommand"},
{Name: "-version", Description: "Show the current Terraform version"},
{Name: "-upgrade", Description: "Check whether the configuration is valid"},
{Name: "-compact-warnings", Description: "If set, generates a plan to destroy all the known resources"},
{Name: "-detailed-exitcode", Description: "Return a detailed exit code when the command exits"},
{Name: "-out", Description: "The path to save the generated execution plan"},
{Name: "-parallelism", Description: "Update the state prior to checking for differences"},
{Name: "-state", Description: "A Resource Address to target. This flag can be used multiple times"},
{Name: "-var", Description: "Set variables in the Terraform configuration from a variable file"},
{Name: "-update", Description: "Generate a Graphviz graph of the steps in an operation"},
{Name: "-allow-missing", Description: "Remove the 'tainted' state from a resource instance"},
{Name: "-install-autocomplete", Description: "Install bash/zsh tab completion"},
{Name: "-uninstall-autocomplete", Description: "Uninstall bash/zsh tab completion"},
},
})
}