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
+43
View File
@@ -0,0 +1,43 @@
package ops
import (
"github.com/versenilvis/iris/commands/core"
)
func init() {
core.Register(&core.Spec{
Name: "k9s",
Description: "Kubernetes namespace",
Subcommands: []core.Subcommand{
{Name: "help", Description: "Help about any command"},
{Name: "info", Description: "Print configuration info"},
{Name: "version", Description: "Print version/build info"},
},
Options: []core.Option{
{Name: "-h", Description: "Help for info"},
{Name: "-s", Description: "Prints K9s version info in short format"},
{Name: "-A", Description: "Launch K9s in all namespaces"},
{Name: "--as", Description: "Username to impersonate for the operation"},
{Name: "--as-group", Description: "Group to impersonate for the operation"},
{Name: "--certificate-authority", Description: "Path to a cert file for the certificate authority"},
{Name: "--client-key", Description: "Path to a client key file for TLS"},
{Name: "-c", Description: "Overrides the default resource to load when the application launches"},
{Name: "--context", Description: "The name of the kubeconfig context to use"},
{Name: "--crumbsless", Description: "Turn K9s crumbs off"},
{Name: "--headless", Description: "Turn K9s header off"},
{Name: "--insecure-skip-tls-verify", Description: "If true, the server's caCertFile will not be checked for validity"},
{Name: "--kubeconfig", Description: "Path to the kubeconfig file to use for CLI requests"},
{Name: "--logFile", Description: "Specify the log file"},
{Name: "-l", Description: "Specify a log level (info, warn, debug, trace, error) (default 'info')"},
{Name: "--logoless", Description: "Turn K9s logo off"},
{Name: "-n", Description: "If present, the namespace scope for this CLI request"},
{Name: "--readonly", Description: "Sets readOnly mode by overriding readOnly configuration setting"},
{Name: "-r", Description: "Specify the default refresh rate as an integer (sec) (default 2)"},
{Name: "--request-timeout", Description: "The length of time to wait before giving up on a single server request"},
{Name: "--screen-dump-dir", Description: "Sets a path to a dir for a screen dumps"},
{Name: "--token", Description: "Bearer token for authentication to the API server"},
{Name: "--user", Description: "The name of the kubeconfig user to use"},
{Name: "--write", Description: "Sets write mode by overriding the readOnly configuration setting"},
},
})
}