refactor(commands): separate commands and its core into two folders (#32)
- I think it would be better if one for commands only, one for the spec handling core logic so people won't be confused by the core logic inside the commands folder (cleaner I guess) - Regen docs
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "amplify",
|
||||
Description: "Environment",
|
||||
Subcommands: []core.Subcommand{
|
||||
Subcommands: []spec.Subcommand{
|
||||
{Name: "push", Description: "Provisions cloud resources with the latest local developments"},
|
||||
{Name: "delete", Description: "Deletes all of the resources tied to the project from the cloud"},
|
||||
{Name: "add", Description: "Adds a resource for an Amplify category in your local backend"},
|
||||
@@ -28,7 +28,7 @@ func init() {
|
||||
{Name: "get", Description: "Displays the environment details"},
|
||||
{Name: "import", Description: "Imports an environment"},
|
||||
},
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "-y", Description: "Answer all question as 'Yes'"},
|
||||
{Name: "-v", Description: "Deletes all of the resources tied to the project from the cloud"},
|
||||
{Name: "--restore", Description: "Overwrite your local changes"},
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "ampx",
|
||||
Description: "CLI for Amplify Gen 2",
|
||||
Subcommands: []core.Subcommand{
|
||||
Subcommands: []spec.Subcommand{
|
||||
{Name: "sandbox", Description: "Deploy to your personal cloud sandbox"},
|
||||
{Name: "delete", Description: "Delete your personal cloud sandbox"},
|
||||
{Name: "secret", Description: "Manage backend secrets for your personal cloud sandbox"},
|
||||
@@ -23,7 +23,7 @@ func init() {
|
||||
{Name: "info", Description: "Generate system information for troubleshooting"},
|
||||
{Name: "pipeline-deploy", Description: "Deploy Amplify project in a CI/CD pipeline"},
|
||||
},
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "--dir-to-watch", Description: "Directory to watch for file changes"},
|
||||
{Name: "--exclude", Description: "Paths or glob patterns to ignore"},
|
||||
{Name: "--identifier", Description: "Name to distinguish between sandbox environments"},
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "ansible",
|
||||
Description: "Define and run a single Ansible task",
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "--ask-vault-pass", Description: "Ask for vault password"},
|
||||
{Name: "--list-hosts", Description: "Outputs a list of matching hosts; does not execute"},
|
||||
{Name: "--playbook-dir", Description: "Perform a syntax check on the playbook, but do not execute it"},
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "ansible-config",
|
||||
Description: "View ansible configuration",
|
||||
Subcommands: []core.Subcommand{
|
||||
Subcommands: []spec.Subcommand{
|
||||
{Name: "list", Description: "List and output available configs"},
|
||||
{Name: "CONFIG_FILE", Description: "Path to configuration file"},
|
||||
{Name: "TYPE", Description: "Plugin type"},
|
||||
@@ -18,7 +18,7 @@ func init() {
|
||||
{Name: "init", Description: "Initializes a new config file (to stdout)"},
|
||||
{Name: "FORMAT", Description: "Output format"},
|
||||
},
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "--help", Description: "Show help and exit"},
|
||||
{Name: "--verbose", Description: "Verbose mode (-vvv for more, -vvvv to enable connection debugging)"},
|
||||
{Name: "-v", Description: "Verbose mode (-vvv for more, -vvvv to enable connection debugging)"},
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "ansible-doc",
|
||||
Description: "Displays information on modules installed in Ansible libraries",
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "--metadata-dump", Description: "For internal testing only Dump json metadata for all plugins"},
|
||||
{Name: "--playbook-dir", Description: "Sets the relative path for many features including roles/ group_vars/ etc"},
|
||||
{Name: "--version", Description: "Show plugin names and their source files without summaries (implies --list)"},
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "ansible-galaxy",
|
||||
Description: "The Galaxy API server URL",
|
||||
Subcommands: []core.Subcommand{
|
||||
Subcommands: []spec.Subcommand{
|
||||
{Name: "collection", Description: "Operate on collections"},
|
||||
{Name: "download", Description: "Download collections"},
|
||||
{Name: "init", Description: "Initialize collections"},
|
||||
@@ -30,7 +30,7 @@ func init() {
|
||||
{Name: "info", Description: "Role information"},
|
||||
{Name: "install", Description: "Install roles"},
|
||||
},
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "--server", Description: "The Galaxy API server URL"},
|
||||
{Name: "--token", Description: "Ignore SSL certificate validation errors"},
|
||||
{Name: "--clear-response-cache", Description: "Clear the existing server response cache"},
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "ansible-lint",
|
||||
Description: "Ansible static code analysis",
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "-f", Description: "Ansible static code analysis"},
|
||||
{Name: "--help", Description: "Show help for ansible-lint"},
|
||||
{Name: "--list-rules", Description: "List all the rules"},
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "ansible-playbook",
|
||||
Description: "Runs Ansible playbooks, executing the defined tasks on the targeted hosts",
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "--ask-vault-pass", Description: "Ask for vault password"},
|
||||
{Name: "--flush-cache", Description: "Clears the fact cache for every host in inventory"},
|
||||
{Name: "--force-handlers", Description: "Run handlers even if a task fails"},
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "appwrite",
|
||||
Description: "Appwrite - Open-Source End-to-End Backend Server",
|
||||
Subcommands: []core.Subcommand{
|
||||
Subcommands: []spec.Subcommand{
|
||||
{Name: "login", Description: "The login command allows you to authenticate and manage a user account"},
|
||||
{Name: "project", Description: "Initialise your Appwrite project"},
|
||||
{Name: "function", Description: "Initialise your Appwrite cloud function"},
|
||||
@@ -48,7 +48,7 @@ func init() {
|
||||
{Name: "updatePhoneVerification", Description: "Update the user phone verification status by its unique ID"},
|
||||
{Name: "client", Description: "The client command allows you to configure your CLI"},
|
||||
},
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "--databaseId", Description: "Database ID"},
|
||||
{Name: "--all", Description: "Flag to initialize all databases"},
|
||||
{Name: "--functionId", Description: "Function ID"},
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "arch",
|
||||
Description: "32-bit intel",
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "-arch", Description: "Print architecture type or run select architecture"},
|
||||
{Name: "-32", Description: "Add the native 32-bit architecture to the list of architectures"},
|
||||
{Name: "-64", Description: "Add the native 64-bit architecture to the list of architectures"},
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "arduino-cli",
|
||||
Description: "Arduino CLI - build, compile, and upload Arduino sketches",
|
||||
Subcommands: []core.Subcommand{
|
||||
Subcommands: []spec.Subcommand{
|
||||
{Name: "board", Description: "Arduino board commands"},
|
||||
{Name: "FQBN", Description: "Fully qualified board name"},
|
||||
{Name: "port", Description: "Arduino board port connection"},
|
||||
@@ -53,7 +53,7 @@ func init() {
|
||||
{Name: "upload", Description: "Upload Arduino sketches. This does NOT compile the sketch prior to upload"},
|
||||
{Name: "version", Description: "Shows the version number of Arduino CLI which is installed on your system"},
|
||||
},
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "--board-options", Description: "Max time to wait for port discovery, example: '30s, 1m (default 1s)'"},
|
||||
{Name: "-b", Description: "Fully Qualified Board Name, example: 'arduino:avr:uno'"},
|
||||
{Name: "-h", Description: "Help for attach"},
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "argo",
|
||||
Description: "If True, Use the HTTP client. Defaults to the ARGO_HTTP1 environment variable",
|
||||
Subcommands: []core.Subcommand{
|
||||
Subcommands: []spec.Subcommand{
|
||||
{Name: "archive", Description: "Manage the workflow archive"},
|
||||
{Name: "delete", Description: "Delete a workflow in the archive"},
|
||||
{Name: "get", Description: "Get a workflow in the archive"},
|
||||
@@ -41,7 +41,7 @@ func init() {
|
||||
{Name: "wait", Description: "Waits for workflows to complete"},
|
||||
{Name: "watch", Description: "Watch a workflow until it completes"},
|
||||
},
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "--argo-base-href", Description: "If True, Use the HTTP client. Defaults to the ARGO_HTTP1 environment variable"},
|
||||
{Name: "--argo-server", Description: "Username to impersonate for the operation"},
|
||||
{Name: "--as-group", Description: "UID to impersonate for the operation"},
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "asdf",
|
||||
Description: "Plugin name",
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "--urls", Description: "Show git urls"},
|
||||
{Name: "--refs", Description: "Show git refs"},
|
||||
{Name: "--all", Description: "Update all plugins to latest commit on default branch"},
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "atlas",
|
||||
Description: "CLI tool to manage MongoDB Atlas",
|
||||
Subcommands: []core.Subcommand{
|
||||
Subcommands: []spec.Subcommand{
|
||||
{Name: "config", Description: "Manage your profile to store access settings for your MongoDB deployment"},
|
||||
{Name: "init", Description: "Configure a profile to store access settings for your MongoDB deployment"},
|
||||
{Name: "set", Description: "Configure specific properties of a profile"},
|
||||
@@ -60,7 +60,7 @@ func init() {
|
||||
{Name: "backup", Description: "Manage cloud backups for your project"},
|
||||
{Name: "snapshot", Description: "Manage cloud backup snapshots for your project"},
|
||||
},
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "--gov", Description: "Create a default profile for atlas for gov"},
|
||||
{Name: "--output", Description: "Return a specific profile"},
|
||||
{Name: "--force", Description: "Manage the CLI's authentication state"},
|
||||
|
||||
+4
-4
@@ -1,14 +1,14 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "aws",
|
||||
Description: "Use a specific profile from your credential file",
|
||||
Subcommands: []core.Subcommand{
|
||||
Subcommands: []spec.Subcommand{
|
||||
{Name: "account", Description: "Operations for Amazon Web Services Account Management"},
|
||||
{Name: "amplifybackend", Description: "AWS Amplify Admin API"},
|
||||
{Name: "apigatewayv2", Description: "Amazon API Gateway V2"},
|
||||
@@ -60,7 +60,7 @@ func init() {
|
||||
{Name: "trustedadvisor", Description: "TrustedAdvisor Public API"},
|
||||
{Name: "runtime.sagemaker", Description: "The Amazon SageMaker runtime API"},
|
||||
},
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "--profile", Description: "Use a specific profile from your credential file"},
|
||||
},
|
||||
})
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "aws-vault",
|
||||
Description: "Add credentials to the secure keystore",
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "-f", Description: "Force-remove the profile without a prompt"},
|
||||
{Name: "--profiles", Description: "Show only the profile names"},
|
||||
{Name: "--sessions", Description: "Show only the session names"},
|
||||
|
||||
+4
-4
@@ -1,14 +1,14 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "bit",
|
||||
Description: "Bit documentation: https://bit.dev/docs",
|
||||
Subcommands: []core.Subcommand{
|
||||
Subcommands: []spec.Subcommand{
|
||||
{Name: "init", Description: "Create or reinitialize an empty workspace"},
|
||||
{Name: "new", Description: "Create a new workspace from a template"},
|
||||
{Name: "config", Description: "Global config management"},
|
||||
@@ -60,7 +60,7 @@ func init() {
|
||||
{Name: "component-names", Description: "Names or IDs of the components to link"},
|
||||
{Name: "component-issues", Description: "List available component-issues"},
|
||||
},
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "--bare", Description: "Initialize an empty bit bare scope"},
|
||||
{Name: "--shared", Description: "Add group write permissions to a scope"},
|
||||
{Name: "--standalone", Description: "Do not nest component store within .git"},
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "bosh",
|
||||
Description: "Deployment",
|
||||
Subcommands: []core.Subcommand{
|
||||
Subcommands: []spec.Subcommand{
|
||||
{Name: "add-blob", Description: "Add blob"},
|
||||
{Name: "unignore", Description: "Unignore an instance"},
|
||||
{Name: "update-cloud-config", Description: "Update current cloud config"},
|
||||
@@ -60,7 +60,7 @@ func init() {
|
||||
{Name: "log-in", Description: "Login"},
|
||||
{Name: "log-out", Description: "Log out"},
|
||||
},
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "--version", Description: "Show CLI version"},
|
||||
{Name: "--config", Description: "Config file path (default: ~/.bosh/config)"},
|
||||
{Name: "-e", Description: "Director environment name or URL"},
|
||||
|
||||
@@ -1,20 +1,20 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "capacitor",
|
||||
Description: "Add a native platform project to your app",
|
||||
Subcommands: []core.Subcommand{
|
||||
Subcommands: []spec.Subcommand{
|
||||
{Name: "add", Description: "Add a native platform project to your app"},
|
||||
{Name: "ls", Description: "List all installed Cordova and Capacitor plugins"},
|
||||
{Name: "sync", Description: "This command runs copy and then update"},
|
||||
{Name: "update", Description: "Updates the native plugins and dependencies referenced in package.json"},
|
||||
},
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "--list", Description: "Print a list of target devices available to the given platform"},
|
||||
{Name: "--target", Description: "Run on a specific target device"},
|
||||
{Name: "--deployment", Description: "Podfile.lock won't be deleted and pod install will use --deployment option"},
|
||||
|
||||
+4
-4
@@ -1,14 +1,14 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "cdk",
|
||||
Description: "AWS CDK CLI",
|
||||
Subcommands: []core.Subcommand{
|
||||
Subcommands: []spec.Subcommand{
|
||||
{Name: "init", Description: "Create a new, empty CDK project from a template"},
|
||||
{Name: "metadata", Description: "Returns all metadata associated with this stack"},
|
||||
{Name: "doctor", Description: "Check your set-up for potential problems"},
|
||||
@@ -25,7 +25,7 @@ func init() {
|
||||
{Name: "context", Description: "Manage cached context values"},
|
||||
{Name: "doc", Description: "Opens the reference documentation in a browser"},
|
||||
},
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "--version", Description: "The current version"},
|
||||
{Name: "-h", Description: "Show help"},
|
||||
},
|
||||
|
||||
+4
-4
@@ -1,14 +1,14 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "cf",
|
||||
Description: "Cloudfoundry cli",
|
||||
Subcommands: []core.Subcommand{
|
||||
Subcommands: []spec.Subcommand{
|
||||
{Name: "app", Description: "Display health and status for app"},
|
||||
{Name: "APP_NAME", Description: "The app you want to get health and status for"},
|
||||
{Name: "ssh", Description: "Display health and status for app"},
|
||||
@@ -60,7 +60,7 @@ func init() {
|
||||
{Name: "unbind-route-service", Description: "Unbind a service instance from an HTTP route"},
|
||||
{Name: "create-user-provided-service", Description: "Make a user-provided service instance available to CF apps"},
|
||||
},
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "--guid", Description: "Display health and status for app"},
|
||||
{Name: "-v", Description: "Verbose output"},
|
||||
{Name: "-a", Description: "API endpoint (e.g. https://api.example.com)"},
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "checkov",
|
||||
Description: "Branch",
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "--help", Description: "Show help for checkov"},
|
||||
{Name: "--version", Description: "Show the version of checkov"},
|
||||
{Name: "--quiet", Description: "CLI output, display only failed checks"},
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "circleci",
|
||||
Description: "CircleCI CLI",
|
||||
Subcommands: []core.Subcommand{
|
||||
Subcommands: []spec.Subcommand{
|
||||
{Name: "completion", Description: "Generate shell completion scripts"},
|
||||
{Name: "bash", Description: "Generate bash completion scripts"},
|
||||
{Name: "zsh", Description: "Generate zsh completion scripts"},
|
||||
@@ -60,7 +60,7 @@ func init() {
|
||||
{Name: "runner", Description: "Operate on runners"},
|
||||
{Name: "instance", Description: "Operate on runner instances"},
|
||||
},
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "--private", Description: "Show metadata of an orb"},
|
||||
{Name: "-u", Description: "Include uncertified orbs"},
|
||||
{Name: "--input", Description: "Path to input file, i.e. ./.circleci/config.yml"},
|
||||
|
||||
@@ -1,19 +1,19 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "cloudflared",
|
||||
Description: "Specify the hostname of your application",
|
||||
Subcommands: []core.Subcommand{
|
||||
Subcommands: []spec.Subcommand{
|
||||
{Name: "install", Description: "Install cloudflared as an user launch agent"},
|
||||
{Name: "uninstall", Description: "Uninstall the cloudflared launch agent"},
|
||||
{Name: "help", Description: "Shows a list of commands or help for one command"},
|
||||
},
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "--hostname", Description: "Specify the hostname of your application"},
|
||||
{Name: "--destination", Description: "Specify the destination address of your SSH server"},
|
||||
{Name: "--url", Description: "Specify the host:port to forward data to Cloudflare edge"},
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "coda",
|
||||
Description: "Coda CLI - interact with Coda docs and tables",
|
||||
Subcommands: []core.Subcommand{
|
||||
Subcommands: []spec.Subcommand{
|
||||
{Name: "init", Description: "Initialize an empty project with the recommended settings and dependencies"},
|
||||
{Name: "execute", Description: "Execute the formula and print the output to the terminal"},
|
||||
{Name: "formula", Description: "Formula name to execute"},
|
||||
@@ -25,7 +25,7 @@ func init() {
|
||||
{Name: "option", Description: "Currently the only supported option is 'timerStrategy'"},
|
||||
{Name: "value", Description: "Value to set for the option"},
|
||||
},
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "--dynamicUrl", Description: "The URL to sync from"},
|
||||
{Name: "--name", Description: "The desired Pack name"},
|
||||
{Name: "--description", Description: "The Pack description"},
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "command",
|
||||
Description: "Run an external command",
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "-v", Description: "Print the location of the command"},
|
||||
},
|
||||
})
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "copilot",
|
||||
Description: "Name of the application",
|
||||
Subcommands: []core.Subcommand{
|
||||
Subcommands: []spec.Subcommand{
|
||||
{Name: "init", Description: "Create a new ECS or App Runner application"},
|
||||
{Name: "docs", Description: "Open the copilot docs"},
|
||||
{Name: "ls", Description: "Lists all the applications in your account"},
|
||||
@@ -32,7 +32,7 @@ func init() {
|
||||
{Name: "update", Description: "Deploys a pipeline for the services in your workspace"},
|
||||
{Name: "help", Description: "Help about any command"},
|
||||
},
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "--app", Description: "Name of the application"},
|
||||
{Name: "--name", Description: "Name of the environment"},
|
||||
{Name: "--help", Description: "Help for command"},
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "cosign",
|
||||
Description: "Provides utilities for attaching artifacts to other artifacts in a registry",
|
||||
Subcommands: []core.Subcommand{
|
||||
Subcommands: []spec.Subcommand{
|
||||
{Name: "attach", Description: "Provides utilities for attaching artifacts to other artifacts in a registry"},
|
||||
{Name: "attestation", Description: "Attach attestation to the supplied container image"},
|
||||
{Name: "sbom", Description: "Attach sbom to the supplied container image"},
|
||||
@@ -38,7 +38,7 @@ func init() {
|
||||
{Name: "version", Description: "Prints the version"},
|
||||
{Name: "help", Description: "Help about any command"},
|
||||
},
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "--output-file", Description: "Log output to a file"},
|
||||
{Name: "--timeout", Description: "Timeout for commands"},
|
||||
{Name: "--verbose", Description: "Log debug output"},
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "dapr",
|
||||
Description: "Distributed Application Runtime CLI",
|
||||
Subcommands: []core.Subcommand{
|
||||
Subcommands: []spec.Subcommand{
|
||||
{Name: "build-info", Description: "Print build info of Dapr CLI and runtime"},
|
||||
{Name: "completion", Description: "Generates shell completion scripts"},
|
||||
{Name: "bash", Description: "Generates bash completion scripts"},
|
||||
@@ -32,7 +32,7 @@ func init() {
|
||||
{Name: "version", Description: "Print the Dapr runtime and CLI version"},
|
||||
{Name: "help", Description: "Help about any command"},
|
||||
},
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "--api-token-secret", Description: "The secret to use for the API token"},
|
||||
{Name: "--app-id", Description: "The app id to annotate"},
|
||||
{Name: "--app-max-concurrency", Description: "The maximum number of concurrent requests to allow"},
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "datree",
|
||||
Description: "Help for",
|
||||
Subcommands: []core.Subcommand{
|
||||
Subcommands: []spec.Subcommand{
|
||||
{Name: "completion", Description: "Generate completion script for bash,zsh,fish,powershell"},
|
||||
{Name: "config", Description: "Internal configuration management for datree config file"},
|
||||
{Name: "get", Description: "Get configuration value"},
|
||||
@@ -18,7 +18,7 @@ func init() {
|
||||
{Name: "test", Description: "Test kustomization files"},
|
||||
{Name: "version", Description: "Print the version number"},
|
||||
},
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "--help", Description: "Help for 'test'"},
|
||||
{Name: "--ignore-missing-schemas", Description: "Ignore missing schemas when executing schema validation step"},
|
||||
{Name: "--no-record", Description: "Do not send policy checks metadata to the backend"},
|
||||
|
||||
@@ -1,18 +1,18 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "deployctl",
|
||||
Description: "Command line tool for Deno Deploy",
|
||||
Subcommands: []core.Subcommand{
|
||||
Subcommands: []spec.Subcommand{
|
||||
{Name: "deploy", Description: "Deploy a script with static files to Deno Deploy"},
|
||||
{Name: "upgrade", Description: "Upgrade deployctl"},
|
||||
},
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "--exclude", Description: "Exclude files that match this pattern"},
|
||||
{Name: "--include", Description: "Only upload files that match this pattern"},
|
||||
{Name: "--no-static", Description: "Don't include the files in the CWD as static files"},
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "direnv",
|
||||
Description: "Help for direnv",
|
||||
Subcommands: []core.Subcommand{
|
||||
Subcommands: []spec.Subcommand{
|
||||
{Name: "allow", Description: "Grants direnv to load the given .envrc"},
|
||||
{Name: "deny", Description: "Revokes the authorization of a given .envrc"},
|
||||
{Name: "exec", Description: "Executes a command after loading the first .envrc found in DIR"},
|
||||
|
||||
+41
-41
@@ -6,11 +6,11 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func dockerContainerGenerator(tokens []string, _ string, _ string) []core.Suggestion {
|
||||
cwd := core.GetCWD()
|
||||
func dockerContainerGenerator(tokens []string, _ string, _ string) []spec.Suggestion {
|
||||
cwd := spec.GetCWD()
|
||||
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
|
||||
defer cancel()
|
||||
|
||||
@@ -21,19 +21,19 @@ func dockerContainerGenerator(tokens []string, _ string, _ string) []core.Sugges
|
||||
return nil
|
||||
}
|
||||
|
||||
var results []core.Suggestion
|
||||
var results []spec.Suggestion
|
||||
for line := range strings.SplitSeq(string(out), "\n") {
|
||||
line = strings.TrimSpace(line)
|
||||
if line == "" {
|
||||
continue
|
||||
}
|
||||
results = append(results, core.Suggestion{Cmd: line, Desc: "container"})
|
||||
results = append(results, spec.Suggestion{Cmd: line, Desc: "container"})
|
||||
}
|
||||
return results
|
||||
}
|
||||
|
||||
func dockerRunningContainerGenerator(tokens []string, _ string, _ string) []core.Suggestion {
|
||||
cwd := core.GetCWD()
|
||||
func dockerRunningContainerGenerator(tokens []string, _ string, _ string) []spec.Suggestion {
|
||||
cwd := spec.GetCWD()
|
||||
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
|
||||
defer cancel()
|
||||
|
||||
@@ -44,19 +44,19 @@ func dockerRunningContainerGenerator(tokens []string, _ string, _ string) []core
|
||||
return nil
|
||||
}
|
||||
|
||||
var results []core.Suggestion
|
||||
var results []spec.Suggestion
|
||||
for line := range strings.SplitSeq(string(out), "\n") {
|
||||
line = strings.TrimSpace(line)
|
||||
if line == "" {
|
||||
continue
|
||||
}
|
||||
results = append(results, core.Suggestion{Cmd: line, Desc: "running"})
|
||||
results = append(results, spec.Suggestion{Cmd: line, Desc: "running"})
|
||||
}
|
||||
return results
|
||||
}
|
||||
|
||||
func dockerImageGenerator(tokens []string, _ string, _ string) []core.Suggestion {
|
||||
cwd := core.GetCWD()
|
||||
func dockerImageGenerator(tokens []string, _ string, _ string) []spec.Suggestion {
|
||||
cwd := spec.GetCWD()
|
||||
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
|
||||
defer cancel()
|
||||
|
||||
@@ -68,27 +68,27 @@ func dockerImageGenerator(tokens []string, _ string, _ string) []core.Suggestion
|
||||
}
|
||||
|
||||
seen := make(map[string]bool)
|
||||
var results []core.Suggestion
|
||||
var results []spec.Suggestion
|
||||
for line := range strings.SplitSeq(string(out), "\n") {
|
||||
line = strings.TrimSpace(line)
|
||||
if line == "" || line == "<none>:<none>" || seen[line] {
|
||||
continue
|
||||
}
|
||||
seen[line] = true
|
||||
results = append(results, core.Suggestion{Cmd: line, Desc: "image"})
|
||||
results = append(results, spec.Suggestion{Cmd: line, Desc: "image"})
|
||||
}
|
||||
return results
|
||||
}
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "docker",
|
||||
Description: "container engine",
|
||||
Subcommands: []core.Subcommand{
|
||||
Subcommands: []spec.Subcommand{
|
||||
{
|
||||
Name: "ps",
|
||||
Description: "list containers",
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "-a", Description: "show all"},
|
||||
{Name: "-q", Description: "only show IDs"},
|
||||
{Name: "--format", Description: "format output"},
|
||||
@@ -98,8 +98,8 @@ func init() {
|
||||
{
|
||||
Name: "build",
|
||||
Description: "build image",
|
||||
Generator: core.FileGenerator(".dockerfile", ".Dockerfile"),
|
||||
Options: []core.Option{
|
||||
Generator: spec.FileGenerator(".dockerfile", ".Dockerfile"),
|
||||
Options: []spec.Option{
|
||||
{Name: "-t", Description: "tag name"},
|
||||
{Name: "-f", Description: "dockerfile path"},
|
||||
{Name: "--no-cache", Description: "no build cache"},
|
||||
@@ -111,7 +111,7 @@ func init() {
|
||||
Name: "run",
|
||||
Description: "run container",
|
||||
Generator: dockerImageGenerator,
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "-d", Description: "detached mode"},
|
||||
{Name: "-p", Description: "port mapping"},
|
||||
{Name: "-v", Description: "volume mount"},
|
||||
@@ -136,7 +136,7 @@ func init() {
|
||||
Name: "exec",
|
||||
Description: "exec in container",
|
||||
Generator: dockerRunningContainerGenerator,
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "-it", Description: "interactive tty"},
|
||||
{Name: "-e", Description: "set env variable"},
|
||||
{Name: "-u", Description: "run as user"},
|
||||
@@ -161,7 +161,7 @@ func init() {
|
||||
Name: "rm",
|
||||
Description: "remove container",
|
||||
Generator: dockerContainerGenerator,
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "-f", Description: "force remove"},
|
||||
{Name: "-v", Description: "remove volumes"},
|
||||
},
|
||||
@@ -170,14 +170,14 @@ func init() {
|
||||
Name: "rmi",
|
||||
Description: "remove image",
|
||||
Generator: dockerImageGenerator,
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "-f", Description: "force remove"},
|
||||
},
|
||||
},
|
||||
{
|
||||
Name: "images",
|
||||
Description: "list images",
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "-a", Description: "show all"},
|
||||
{Name: "-q", Description: "only IDs"},
|
||||
{Name: "--format", Description: "format output"},
|
||||
@@ -187,7 +187,7 @@ func init() {
|
||||
Name: "logs",
|
||||
Description: "view logs",
|
||||
Generator: dockerContainerGenerator,
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "-f", Description: "follow output"},
|
||||
{Name: "--tail", Description: "last n lines"},
|
||||
{Name: "--since", Description: "since timestamp"},
|
||||
@@ -197,7 +197,7 @@ func init() {
|
||||
{
|
||||
Name: "inspect",
|
||||
Description: "show low-level info",
|
||||
Generator: func(tokens []string, prefix string, partial string) []core.Suggestion {
|
||||
Generator: func(tokens []string, prefix string, partial string) []spec.Suggestion {
|
||||
containers := dockerContainerGenerator(tokens, prefix, partial)
|
||||
images := dockerImageGenerator(tokens, prefix, partial)
|
||||
return append(containers, images...)
|
||||
@@ -206,20 +206,20 @@ func init() {
|
||||
{
|
||||
Name: "compose",
|
||||
Description: "multi-container",
|
||||
Subcommands: []core.Subcommand{
|
||||
{Name: "up", Description: "start services", Options: []core.Option{{Name: "-d", Description: "detached"}, {Name: "--build", Description: "rebuild images"}}},
|
||||
{Name: "down", Description: "stop services", Options: []core.Option{{Name: "-v", Description: "remove volumes"}}},
|
||||
Subcommands: []spec.Subcommand{
|
||||
{Name: "up", Description: "start services", Options: []spec.Option{{Name: "-d", Description: "detached"}, {Name: "--build", Description: "rebuild images"}}},
|
||||
{Name: "down", Description: "stop services", Options: []spec.Option{{Name: "-v", Description: "remove volumes"}}},
|
||||
{Name: "build", Description: "build services"},
|
||||
{Name: "logs", Description: "view logs", Options: []core.Option{{Name: "-f", Description: "follow"}}},
|
||||
{Name: "logs", Description: "view logs", Options: []spec.Option{{Name: "-f", Description: "follow"}}},
|
||||
{Name: "ps", Description: "list services"},
|
||||
{Name: "exec", Description: "execute command"},
|
||||
{Name: "restart", Description: "restart services"},
|
||||
{Name: "pull", Description: "pull images"},
|
||||
{Name: "stop", Description: "stop services"},
|
||||
{Name: "start", Description: "start services"},
|
||||
{Name: "config", Description: "validate config", Generator: core.FileGenerator(".yml", ".yaml")},
|
||||
{Name: "config", Description: "validate config", Generator: spec.FileGenerator(".yml", ".yaml")},
|
||||
},
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "-f", Description: "compose file"},
|
||||
{Name: "--project-name", Description: "project name"},
|
||||
},
|
||||
@@ -227,7 +227,7 @@ func init() {
|
||||
{
|
||||
Name: "network",
|
||||
Description: "manage networks",
|
||||
Subcommands: []core.Subcommand{
|
||||
Subcommands: []spec.Subcommand{
|
||||
{Name: "ls", Description: "list networks"},
|
||||
{Name: "create", Description: "create network"},
|
||||
{Name: "rm", Description: "remove network"},
|
||||
@@ -238,7 +238,7 @@ func init() {
|
||||
{
|
||||
Name: "volume",
|
||||
Description: "manage volumes",
|
||||
Subcommands: []core.Subcommand{
|
||||
Subcommands: []spec.Subcommand{
|
||||
{Name: "ls", Description: "list volumes"},
|
||||
{Name: "create", Description: "create volume"},
|
||||
{Name: "rm", Description: "remove volume"},
|
||||
@@ -249,8 +249,8 @@ func init() {
|
||||
{
|
||||
Name: "system",
|
||||
Description: "manage docker system",
|
||||
Subcommands: []core.Subcommand{
|
||||
{Name: "prune", Description: "remove unused data", Options: []core.Option{{Name: "-a", Description: "remove all unused"}, {Name: "--volumes", Description: "include volumes"}}},
|
||||
Subcommands: []spec.Subcommand{
|
||||
{Name: "prune", Description: "remove unused data", Options: []spec.Option{{Name: "-a", Description: "remove all unused"}, {Name: "--volumes", Description: "include volumes"}}},
|
||||
{Name: "df", Description: "show disk usage"},
|
||||
{Name: "info", Description: "system info"},
|
||||
},
|
||||
@@ -258,20 +258,20 @@ func init() {
|
||||
},
|
||||
})
|
||||
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "docker-compose",
|
||||
Description: "multi-container (legacy)",
|
||||
Subcommands: []core.Subcommand{
|
||||
{Name: "up", Description: "start services", Options: []core.Option{{Name: "-d", Description: "detached"}, {Name: "--build", Description: "rebuild"}}},
|
||||
{Name: "down", Description: "stop services", Options: []core.Option{{Name: "-v", Description: "remove volumes"}}},
|
||||
Subcommands: []spec.Subcommand{
|
||||
{Name: "up", Description: "start services", Options: []spec.Option{{Name: "-d", Description: "detached"}, {Name: "--build", Description: "rebuild"}}},
|
||||
{Name: "down", Description: "stop services", Options: []spec.Option{{Name: "-v", Description: "remove volumes"}}},
|
||||
{Name: "build", Description: "build services"},
|
||||
{Name: "logs", Description: "view logs", Options: []core.Option{{Name: "-f", Description: "follow"}}},
|
||||
{Name: "logs", Description: "view logs", Options: []spec.Option{{Name: "-f", Description: "follow"}}},
|
||||
{Name: "ps", Description: "list services"},
|
||||
{Name: "exec", Description: "execute command"},
|
||||
{Name: "restart", Description: "restart services"},
|
||||
{Name: "pull", Description: "pull images"},
|
||||
},
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "-f", Description: "compose file"},
|
||||
},
|
||||
})
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "doctl",
|
||||
Description: "The official DigitalOcean command line interface (CLI)",
|
||||
Subcommands: []core.Subcommand{
|
||||
Subcommands: []spec.Subcommand{
|
||||
{Name: "help", Description: "Display help about commands"},
|
||||
{Name: "get", Description: "Retrieve account profile details"},
|
||||
{Name: "ratelimit", Description: "Retrieve your API usage and the remaining quota"},
|
||||
@@ -60,7 +60,7 @@ func init() {
|
||||
{Name: "db", Description: "Display commands for managing individual databases within a cluster"},
|
||||
{Name: "maintenance-window", Description: "Display commands for scheduling automatic maintenance on your database cluster"},
|
||||
},
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "-h", Description: "Help for doctl"},
|
||||
{Name: "-v", Description: "Enable verbose output"},
|
||||
{Name: "-o", Description: "Desired output format"},
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "doppler",
|
||||
Description: "The official CLI for Doppler Secret Operations Platform",
|
||||
Subcommands: []core.Subcommand{
|
||||
Subcommands: []spec.Subcommand{
|
||||
{Name: "activity", Description: "Get workplace activity logs"},
|
||||
{Name: "get", Description: "Get workplace activity log"},
|
||||
{Name: "changelog", Description: "View the CLI's changelog"},
|
||||
@@ -53,7 +53,7 @@ func init() {
|
||||
{Name: "settings", Description: "Get workplace settings"},
|
||||
{Name: "setup", Description: "Setup the Doppler CLI for managing secrets"},
|
||||
},
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "-h", Description: "Config (e.g. dev)"},
|
||||
{Name: "--fallback-only", Description: "Disable modifying the fallback file. secrets can still be read from the file"},
|
||||
{Name: "--format", Description: "Do not exit if unable to write the fallback file"},
|
||||
|
||||
+4
-4
@@ -1,14 +1,14 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "eas",
|
||||
Description: "Log in with your Expo account",
|
||||
Subcommands: []core.Subcommand{
|
||||
Subcommands: []spec.Subcommand{
|
||||
{Name: "account:login", Description: "Log in with your Expo account"},
|
||||
{Name: "account:logout", Description: "Log out"},
|
||||
{Name: "account:view", Description: "Show the username you are logged in as"},
|
||||
@@ -60,7 +60,7 @@ func init() {
|
||||
{Name: "webhook:delete", Description: "Delete a webhook"},
|
||||
{Name: "ID", Description: "ID of the webhook to delete"},
|
||||
},
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "-r", Description: "Refresh cache (ignores displaying instructions)"},
|
||||
{Name: "--json", Description: "Enable JSON output, non-JSON messages will be printed to stderr"},
|
||||
{Name: "--non-interactive", Description: "Run the command in non-interactive mode"},
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "fastly",
|
||||
Description: "A CLI for interacting with the Fastly platform",
|
||||
Subcommands: []core.Subcommand{
|
||||
Subcommands: []spec.Subcommand{
|
||||
{Name: "acl", Description: "Manipulate Fastly ACLs (Access Control Lists)"},
|
||||
{Name: "create", Description: "Create a new ACL attached to the specified service version"},
|
||||
{Name: "delete", Description: "Delete an ACL from the specified service version"},
|
||||
@@ -60,7 +60,7 @@ func init() {
|
||||
{Name: "splunk", Description: "Manipulate Fastly service version Splunk logging endpoints"},
|
||||
{Name: "sumologic", Description: "Manipulate Fastly service version Sumologic logging endpoints"},
|
||||
},
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "--name", Description: "'latest', 'active', or the number of a specific version"},
|
||||
{Name: "--autoclone", Description: "If the selected service version is not editable, clone it and use the clone"},
|
||||
{Name: "--service-id", Description: "Service ID (falls back to FASTLY_SERVICE_ID, then fastly.toml)"},
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "firebase",
|
||||
Description: "ProjectAlias",
|
||||
Subcommands: []core.Subcommand{
|
||||
Subcommands: []spec.Subcommand{
|
||||
{Name: "appdistribution:distribute", Description: "Upload a distribution"},
|
||||
{Name: "apps:android:sha:create", Description: "Add a SHA certificate hash for a given app id"},
|
||||
{Name: "apps:android:sha:delete", Description: "Delete a SHA certificate hash for a given app id"},
|
||||
@@ -60,7 +60,7 @@ func init() {
|
||||
{Name: "login:use", Description: "Set the default account to use for this project directory"},
|
||||
{Name: "logout", Description: "Log the CLI out of Firebase"},
|
||||
},
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "--app", Description: "The app id of your Firebase app"},
|
||||
{Name: "--release-notes", Description: "Release notes to include with this distribution"},
|
||||
{Name: "--release-notes-file", Description: "Path to file with release notes to include with this distribution"},
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "flyctl",
|
||||
Description: "Command line tool for Fly.io services",
|
||||
Subcommands: []core.Subcommand{
|
||||
Subcommands: []spec.Subcommand{
|
||||
{Name: "ping", Description: "Ping the Fly agent"},
|
||||
{Name: "restart", Description: "Restart the Fly agent"},
|
||||
{Name: "daemon-start", Description: "Run the Fly agent in the foreground"},
|
||||
@@ -60,7 +60,7 @@ func init() {
|
||||
{Name: "docs", Description: "View Fly documentation"},
|
||||
{Name: "doctor", Description: "The DOCTOR command allows you to debug your Fly environment"},
|
||||
},
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "--generate-name", Description: "Generate a name for the app"},
|
||||
{Name: "--name", Description: "The app name to use"},
|
||||
{Name: "--network", Description: "Specify custom network id"},
|
||||
|
||||
+4
-4
@@ -1,14 +1,14 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "fnm",
|
||||
Description: "Fast and simple Node.js version manager",
|
||||
Subcommands: []core.Subcommand{
|
||||
Subcommands: []spec.Subcommand{
|
||||
{Name: "install", Description: "Install a new Node.js version"},
|
||||
{Name: "uninstall", Description: "Uninstall a Node.js version"},
|
||||
{Name: "use", Description: "Change Node.js version"},
|
||||
@@ -24,7 +24,7 @@ func init() {
|
||||
{Name: "env", Description: "Print and set up required environment variables for fnm"},
|
||||
{Name: "help", Description: "Prints the help page or the help of the given subcommand(s)"},
|
||||
},
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "--lts", Description: "Install latest LTS"},
|
||||
{Name: "--install-if-missing", Description: "Install the version if it isn't installed yet"},
|
||||
{Name: "--help", Description: "Prints help information"},
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "gcloud",
|
||||
Description: "Manage Google Cloud Platform resources and developer workflow",
|
||||
Subcommands: []core.Subcommand{
|
||||
Subcommands: []spec.Subcommand{
|
||||
{Name: "access-context-manager", Description: "Manage Access Context Manager resources"},
|
||||
{Name: "active-directory", Description: "Manage Managed Microsoft AD resources"},
|
||||
{Name: "ai-platform", Description: "Manage AI Platform jobs and models"},
|
||||
|
||||
+4
-4
@@ -1,14 +1,14 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "gh",
|
||||
Description: "Current branch",
|
||||
Subcommands: []core.Subcommand{
|
||||
Subcommands: []spec.Subcommand{
|
||||
{Name: "alias", Description: "Create command shortcuts"},
|
||||
{Name: "delete", Description: "Delete an alias"},
|
||||
{Name: "list", Description: "List available aliases"},
|
||||
@@ -60,7 +60,7 @@ func init() {
|
||||
{Name: "key-file", Description: "Path to the public key file"},
|
||||
{Name: "key-id", Description: "ID of the key to delete"},
|
||||
},
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "-c", Description: "Name of the codespace"},
|
||||
{Name: "--clone", Description: "Clone the fork {true|false}"},
|
||||
{Name: "-y", Description: "Skip the confirmation prompt"},
|
||||
|
||||
+3
-3
@@ -1,14 +1,14 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "gpg",
|
||||
Description: "Encryption and signing tool",
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "--homedir", Description: "Set the name of the home directory"},
|
||||
{Name: "--options", Description: "Read options from file"},
|
||||
{Name: "-a", Description: "Create ASCII armored output"},
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "hasura",
|
||||
Description: ".env filename to load ENV vars from",
|
||||
Subcommands: []core.Subcommand{
|
||||
Subcommands: []spec.Subcommand{
|
||||
{Name: "actions", Description: "Manage Hasura actions"},
|
||||
{Name: "codegen", Description: "Generate code for actions"},
|
||||
{Name: "create", Description: "Create a Hasura action"},
|
||||
@@ -41,7 +41,7 @@ func init() {
|
||||
{Name: "update-cli", Description: "Update the CLI to latest or a specific version"},
|
||||
{Name: "version", Description: "Print the CLI version"},
|
||||
},
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "--envfile", Description: ".env filename to load ENV vars from"},
|
||||
{Name: "-h", Description: "Help for hasura"},
|
||||
{Name: "--log-level", Description: "Log level"},
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "helm",
|
||||
Description: "The Helm package manager for Kubernetes",
|
||||
Subcommands: []core.Subcommand{
|
||||
Subcommands: []spec.Subcommand{
|
||||
{Name: "completion", Description: "Generate autocompletion scripts for the specified shell"},
|
||||
{Name: "bash", Description: "Generate autocompletion script for bash"},
|
||||
{Name: "fish", Description: "Generate autocompletion script for fish"},
|
||||
@@ -58,7 +58,7 @@ func init() {
|
||||
{Name: "version", Description: "Print the client version information"},
|
||||
{Name: "help", Description: "Help about any command"},
|
||||
},
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "--no-descriptions", Description: "Disable completion descriptions"},
|
||||
{Name: "--starter", Description: "The name or absolute path to Helm starter scaffold"},
|
||||
{Name: "--keyring", Description: "Keyring containing public keys"},
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "helmfile",
|
||||
Description: "Deploy helm charts",
|
||||
Subcommands: []core.Subcommand{
|
||||
Subcommands: []spec.Subcommand{
|
||||
{Name: "apply", Description: "Apply all resources from state file only when there are changes"},
|
||||
{Name: "build", Description: "Build all resources from state file"},
|
||||
{Name: "cache", Description: "Cache management"},
|
||||
@@ -25,7 +25,7 @@ func init() {
|
||||
{Name: "test", Description: "Test charts from state file (helm test)"},
|
||||
{Name: "version", Description: "Print the CLI version"},
|
||||
},
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "--help", Description: "Do not exit with an error code if the provided selector has no matching releases"},
|
||||
{Name: "--allow-no-matching-release", Description: "Show help for helmfile"},
|
||||
{Name: "--chart", Description: "Output with color"},
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "hugo",
|
||||
Description: "The world's fastest framework for building websites",
|
||||
Subcommands: []core.Subcommand{
|
||||
Subcommands: []spec.Subcommand{
|
||||
{Name: "check", Description: "Contains some verification checks"},
|
||||
{Name: "ulimit", Description: "Check system ulimit settings"},
|
||||
{Name: "config", Description: "Print the site configuration"},
|
||||
@@ -48,7 +48,7 @@ func init() {
|
||||
{Name: "server", Description: "A high performance webserver"},
|
||||
{Name: "version", Description: "Print the version number of Hugo"},
|
||||
},
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "-h", Description: "Config file (default is path/config.yaml|json|toml)"},
|
||||
{Name: "--configDir", Description: "Config dir (default 'config')"},
|
||||
{Name: "--debug", Description: "Debug output (default false)"},
|
||||
|
||||
+4
-4
@@ -1,14 +1,14 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "k3d",
|
||||
Description: "Little helper to run k3s in Docker",
|
||||
Subcommands: []core.Subcommand{
|
||||
Subcommands: []spec.Subcommand{
|
||||
{Name: "cluster", Description: "Manage k3s clusters"},
|
||||
{Name: "create", Description: "Create a new k3s cluster"},
|
||||
{Name: "cluster name", Description: "Name of the cluster to create"},
|
||||
@@ -53,7 +53,7 @@ func init() {
|
||||
{Name: "Registry Name", Description: "Name of the registry"},
|
||||
{Name: "version", Description: "Show k3d and default k3s version"},
|
||||
},
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "-a", Description: "Number of agents to create"},
|
||||
{Name: "--agents-memory", Description: "Memory limit imposed on the agents nodes"},
|
||||
{Name: "--api-port", Description: "Specify the Kubernetes API server port exposed on the LoadBalancer"},
|
||||
|
||||
+4
-4
@@ -1,14 +1,14 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "k6",
|
||||
Description: "Create an archive",
|
||||
Subcommands: []core.Subcommand{
|
||||
Subcommands: []spec.Subcommand{
|
||||
{Name: "archive", Description: "Create an archive"},
|
||||
{Name: "cloud", Description: "Run a test on the cloud"},
|
||||
{Name: "completion", Description: "Generate the autocompletion script for the specified shell"},
|
||||
@@ -60,7 +60,7 @@ func init() {
|
||||
{Name: "max", Description: "Max available virtual users"},
|
||||
{Name: "stats", Description: "Show test metrics"},
|
||||
},
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "--address", Description: "Address of the API server"},
|
||||
{Name: "--batch", Description: "Max parallel batch reqs (default 20)"},
|
||||
{Name: "--batch-per-host", Description: "Max parallel batch reqs per host (default 6)"},
|
||||
|
||||
+4
-4
@@ -1,19 +1,19 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "k9s",
|
||||
Description: "Kubernetes namespace",
|
||||
Subcommands: []core.Subcommand{
|
||||
Subcommands: []spec.Subcommand{
|
||||
{Name: "help", Description: "Help about any command"},
|
||||
{Name: "info", Description: "Print configuration info"},
|
||||
{Name: "version", Description: "Print version/build info"},
|
||||
},
|
||||
Options: []core.Option{
|
||||
Options: []spec.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"},
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "kind",
|
||||
Description: "Cluster",
|
||||
Subcommands: []core.Subcommand{
|
||||
Subcommands: []spec.Subcommand{
|
||||
{Name: "Build", Description: "Build one of [node-image]"},
|
||||
{Name: "node-image", Description: "Builds a node image"},
|
||||
{Name: "architecture", Description: "Architecture to build for, defaults to the host architecture"},
|
||||
@@ -34,7 +34,7 @@ func init() {
|
||||
{Name: "image-archive", Description: "Loads docker images from archive into all or specified nodes by name"},
|
||||
{Name: "version", Description: "Prints the kind CLI version"},
|
||||
},
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "--arch", Description: "Architecture to build for, defaults to the host architecture"},
|
||||
{Name: "--base-image", Description: "Base image to use for the node image"},
|
||||
{Name: "--image", Description: "Name:tag of the resulting image to be built"},
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "knex",
|
||||
Description: "SQL query builder for JavaScript",
|
||||
Subcommands: []core.Subcommand{
|
||||
Subcommands: []spec.Subcommand{
|
||||
{Name: "init", Description: "Create a fresh knexfile"},
|
||||
{Name: "migrate:make", Description: "Create a named migration file"},
|
||||
{Name: "migrate:latest", Description: "Run all migrations that have not yet been run"},
|
||||
@@ -22,7 +22,7 @@ func init() {
|
||||
{Name: "seed:run", Description: "Run seed files"},
|
||||
{Name: "help", Description: "Display help for command"},
|
||||
},
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "--version", Description: "Output the version number"},
|
||||
{Name: "--debug", Description: "Run with debugging"},
|
||||
{Name: "--knexfile", Description: "Specify the knexfile path"},
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "kubectl",
|
||||
Description: "kubernetes cli",
|
||||
Subcommands: []core.Subcommand{
|
||||
Subcommands: []spec.Subcommand{
|
||||
{Name: "get", Description: "display resources",
|
||||
Subcommands: []core.Subcommand{
|
||||
Subcommands: []spec.Subcommand{
|
||||
{Name: "pods", Description: "list pods"},
|
||||
{Name: "services", Description: "list services"},
|
||||
{Name: "deployments", Description: "list deployments"},
|
||||
@@ -19,13 +19,13 @@ func init() {
|
||||
},
|
||||
},
|
||||
{Name: "apply", Description: "apply config",
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "-f", Description: "filename"},
|
||||
},
|
||||
},
|
||||
{Name: "describe", Description: "show details"},
|
||||
{Name: "logs", Description: "view pod logs",
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "-f", Description: "follow logs"},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "kubectx",
|
||||
Description: "Switch between Kubernetes-contexts",
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "--help", Description: "Show help for kubectx"},
|
||||
{Name: "--current", Description: "Show current context"},
|
||||
{Name: "--unset", Description: "Unset the current context"},
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "kubens",
|
||||
Description: "Switch between Kubernetes-namespaces",
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "--help", Description: "Show help for kubens"},
|
||||
{Name: "--current", Description: "Show current namespace"},
|
||||
},
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "limactl",
|
||||
Description: "Lima: Linux virtual machines, with a focus on running containers",
|
||||
Subcommands: []core.Subcommand{
|
||||
Subcommands: []spec.Subcommand{
|
||||
{Name: "completion", Description: "Generate the autocompletion script for the specified shell"},
|
||||
{Name: "copy", Description: "Copy files between host and guest"},
|
||||
{Name: "delete", Description: "Delete an instance of Lima"},
|
||||
@@ -22,7 +22,7 @@ func init() {
|
||||
{Name: "stop", Description: "Stop an instance"},
|
||||
{Name: "validate", Description: "Validate YAML files"},
|
||||
},
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "-h", Description: "Debug mode"},
|
||||
{Name: "--no-descriptions", Description: "Disable completion descriptions"},
|
||||
{Name: "-r", Description: "Copy directories recursively"},
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "locust",
|
||||
Description: "Show program",
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "-v", Description: "Show program's version number and exit"},
|
||||
{Name: "-h", Description: "Show this help message and exit"},
|
||||
{Name: "-f", Description: "Show program's version number and exit"},
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "lpass",
|
||||
Description: "Command line interface for LastPass",
|
||||
Subcommands: []core.Subcommand{
|
||||
Subcommands: []spec.Subcommand{
|
||||
{Name: "login", Description: "Log in to LastPass"},
|
||||
{Name: "USERNAME", Description: "LastPass account username (email address)"},
|
||||
{Name: "logout", Description: "Log out of LastPass"},
|
||||
@@ -47,7 +47,7 @@ func init() {
|
||||
{Name: "limit", Description: "Manipulate LastPass Shared Folder access"},
|
||||
{Name: "sites", Description: "LastPass sites to manipulate"},
|
||||
},
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "--trust", Description: "Subsequent logins will not require multifactor authentication"},
|
||||
{Name: "--plaintext-key", Description: "Save decryption key to the hard disk in plaintext"},
|
||||
{Name: "--force", Description: "Skip user confirmation"},
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "minikube",
|
||||
Description: "Format to print stdout in",
|
||||
Subcommands: []core.Subcommand{
|
||||
Subcommands: []spec.Subcommand{
|
||||
{Name: "start", Description: "Starts a local Kubernetes cluster"},
|
||||
{Name: "status", Description: "Gets the status of a local Kubernetes cluster"},
|
||||
{Name: "stop", Description: "Stops a running local Kubernetes cluster"},
|
||||
@@ -60,7 +60,7 @@ func init() {
|
||||
{Name: "completion", Description: "Generate command completion for a shell"},
|
||||
{Name: "bash", Description: "Bash completion"},
|
||||
},
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "--output", Description: "Format to print stdout in"},
|
||||
{Name: "--shell", Description: "Force environment to be configured for a specified shell"},
|
||||
{Name: "--unset", Description: "Unset variables instead of setting them"},
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "mongocli",
|
||||
Description: "CLI tool to manage your MongoDB Cloud",
|
||||
Subcommands: []core.Subcommand{
|
||||
Subcommands: []spec.Subcommand{
|
||||
{Name: "config", Description: "Configure a profile to store access settings for your MongoDB deployment"},
|
||||
{Name: "set", Description: "Configure specific properties of a profile"},
|
||||
{Name: "ls", Description: "List available profiles"},
|
||||
@@ -60,7 +60,7 @@ func init() {
|
||||
{Name: "disable", Description: "Disable the application-managed slow operation threshold for your project"},
|
||||
{Name: "log", Description: "Download host logs for your project"},
|
||||
},
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "--output", Description: "Return a specific profile"},
|
||||
{Name: "--force", Description: "MongoDB Atlas operations"},
|
||||
{Name: "--accessListIp", Description: "IP address to be allowed to access the deployment"},
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "mongoimport",
|
||||
Description: "Import data from a JSON, CSV, or TSV file into a MongoDB instance",
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "--help", Description: "Returns information on the options and use of mongoimport"},
|
||||
{Name: "--verbose", Description: "Runs mongoimport in a quiet mode that attempts to limit the amount of output"},
|
||||
{Name: "--version", Description: "Returns the mongoimport release number"},
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "mongosh",
|
||||
Description: "Default Connection String; Equivalent to running mongosh without any commands",
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "-v", Description: "View your current mongosh version"},
|
||||
{Name: "--shell", Description: "Returns information on the options and use of the MongoDB Shell"},
|
||||
{Name: "--authenticationDatabase", Description: "This option is available only in MongoDB Enterprise"},
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "multipass",
|
||||
Description: "Displays help on commandline options",
|
||||
Subcommands: []core.Subcommand{
|
||||
Subcommands: []spec.Subcommand{
|
||||
{Name: "alias", Description: "Create an alias"},
|
||||
{Name: "definition", Description: "Alias definition in the form <instance>:<command>"},
|
||||
{Name: "aliases", Description: "List available aliases"},
|
||||
@@ -41,7 +41,7 @@ func init() {
|
||||
{Name: "unalias", Description: "Remove an alias"},
|
||||
{Name: "version", Description: "Show version details"},
|
||||
},
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "-h", Description: "Displays help on commandline options"},
|
||||
{Name: "--help-all", Description: "Displays help including Qt specific options"},
|
||||
{Name: "-v", Description: "Increase logging verbosity. Repeat the 'v' in the short"},
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "mysql",
|
||||
Description: "Mysql is a terminal-based front-end to MySQL",
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "--auto-rehash", Description: "Enable automatic rehashing"},
|
||||
{Name: "--auto-vertical-output", Description: "Enable automatic vertical result set display"},
|
||||
{Name: "--batch", Description: "Do not use history file"},
|
||||
|
||||
@@ -1,18 +1,18 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "netlify",
|
||||
Description: "Print debugging information",
|
||||
Subcommands: []core.Subcommand{
|
||||
Subcommands: []spec.Subcommand{
|
||||
{Name: "help", Description: "List available sub-commands"},
|
||||
{Name: "subcommand", Description: "The command to display help for"},
|
||||
},
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "--debug", Description: "Print debugging information"},
|
||||
{Name: "--httpProxy", Description: "Proxy server address to route requests through"},
|
||||
{Name: "-f", Description: "Delete without prompting (useful for CI)"},
|
||||
|
||||
@@ -1,18 +1,18 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "newman",
|
||||
Description: "Newman is a command-line collection runner for Postman",
|
||||
Subcommands: []core.Subcommand{
|
||||
Subcommands: []spec.Subcommand{
|
||||
{Name: "run", Description: "Initiate a Postman Collection run from a given URL or path"},
|
||||
{Name: "help", Description: "Display help for command"},
|
||||
},
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "-e", Description: "Specify a URL or path to a Postman Environment"},
|
||||
{Name: "-g", Description: "Specify a URL or path to a file containing Postman Globals"},
|
||||
{Name: "-r", Description: "Specify the reporters to use for this run"},
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "nginx",
|
||||
Description: "Nginx (pronounced",
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "-c", Description: "Use an alternative configuration file"},
|
||||
{Name: "-e", Description: "Set global configuration directives"},
|
||||
{Name: "-p", Description: "Set the prefix path. The default value is %%PREFIX%%"},
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "ngrok",
|
||||
Description: "Path to log file,",
|
||||
Subcommands: []core.Subcommand{
|
||||
Subcommands: []spec.Subcommand{
|
||||
{Name: "help", Description: "Shows a list of commands or help for one command"},
|
||||
{Name: "authtoken", Description: "Save authtoken to configuration file"},
|
||||
{Name: "credits", Description: "Prints author and licensing information"},
|
||||
@@ -20,7 +20,7 @@ func init() {
|
||||
{Name: "version", Description: "Print the version string"},
|
||||
{Name: "8080", Description: "Port"},
|
||||
},
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "--all", Description: "Start all tunnels in the configuration file"},
|
||||
{Name: "--none", Description: "Start running no tunnels"},
|
||||
{Name: "--remote-addr", Description: "Bind remote address (requires you reserve an address)"},
|
||||
|
||||
+4
-4
@@ -1,14 +1,14 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "nvm",
|
||||
Description: "Node version",
|
||||
Subcommands: []core.Subcommand{
|
||||
Subcommands: []spec.Subcommand{
|
||||
{Name: "uninstall", Description: "Uninstall a version"},
|
||||
{Name: "use", Description: "Modify PATH to use <version>. Uses .nvmrc if available and version is omitted"},
|
||||
{Name: "exec", Description: "Run <command> on <version>. Uses .nvmrc if available and version is omitted"},
|
||||
@@ -25,7 +25,7 @@ func init() {
|
||||
{Name: "dir", Description: "Display path to the cache directory for nvm"},
|
||||
{Name: "clear", Description: "Empty cache directory for nvm"},
|
||||
},
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "--no-colors", Description: "Suppress colored output"},
|
||||
{Name: "--no-alias", Description: "Suppress `nvm alias` output"},
|
||||
{Name: "--silent", Description: "Silences stdout/stderr output"},
|
||||
|
||||
+4
-4
@@ -1,14 +1,14 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "oci",
|
||||
Description: "Oracle Cloud Infrastructure CLI",
|
||||
Subcommands: []core.Subcommand{
|
||||
Subcommands: []spec.Subcommand{
|
||||
{Name: "compute", Description: "Manage Compute resources like instances and images"},
|
||||
{Name: "instance", Description: "Manage Compute instances"},
|
||||
{Name: "launch", Description: "Launch a new compute instance"},
|
||||
@@ -35,7 +35,7 @@ func init() {
|
||||
{Name: "alarm", Description: "Manage monitoring alarms"},
|
||||
{Name: "budget", Description: "Manage Budgets and Cost Controls"},
|
||||
},
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "--availability-domain", Description: "The availability domain of the instance"},
|
||||
{Name: "--compartment-id", Description: "The OCID of the compartment"},
|
||||
{Name: "--shape", Description: "The shape of the instance"},
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "okteto",
|
||||
Description: "Context",
|
||||
Subcommands: []core.Subcommand{
|
||||
Subcommands: []spec.Subcommand{
|
||||
{Name: "analytics", Description: "Enable / Disable analytics"},
|
||||
{Name: "build", Description: "Build (and optionally push) a Docker image"},
|
||||
{Name: "completion", Description: "Generate the autocompletion script for the specified shell"},
|
||||
@@ -43,7 +43,7 @@ func init() {
|
||||
{Name: "version", Description: "View the version of the okteto binary"},
|
||||
{Name: "help", Description: "Help about any command"},
|
||||
},
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "--loglevel", Description: "Amount of information outputted (debug, info, warn, error)"},
|
||||
{Name: "--output", Description: "Output format (tty, plain, json)"},
|
||||
{Name: "--disable", Description: "Disable analytics"},
|
||||
|
||||
+4
-4
@@ -1,14 +1,14 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "op",
|
||||
Description: "Official 1Password CLI",
|
||||
Subcommands: []core.Subcommand{
|
||||
Subcommands: []spec.Subcommand{
|
||||
{Name: "account", Description: "Manage your locally configured 1Password accounts"},
|
||||
{Name: "add", Description: "Add an account to sign in to for the first time"},
|
||||
{Name: "get", Description: "Get details about your account"},
|
||||
@@ -42,7 +42,7 @@ func init() {
|
||||
{Name: "update", Description: "Check for and download updates"},
|
||||
{Name: "whoami", Description: "Get information about a signed-in account"},
|
||||
},
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "--address", Description: "The sign-in address for your account"},
|
||||
{Name: "--email", Description: "The email address associated with your account"},
|
||||
{Name: "--raw", Description: "Only return the session token"},
|
||||
|
||||
+4
-4
@@ -1,14 +1,14 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "opa",
|
||||
Description: "Open Policy Agent (OPA)",
|
||||
Subcommands: []core.Subcommand{
|
||||
Subcommands: []spec.Subcommand{
|
||||
{Name: "bench", Description: "Benchmark a Rego query"},
|
||||
{Name: "build", Description: "Build an OPA bundle"},
|
||||
{Name: "check", Description: "Check Rego source files"},
|
||||
@@ -29,7 +29,7 @@ func init() {
|
||||
{Name: "version", Description: "Print the version of OPA"},
|
||||
{Name: "help", Description: "Help about any command"},
|
||||
},
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "--benchmem", Description: "Report memory allocations with benchmark results"},
|
||||
{Name: "--bundle", Description: "Set bundle file(s) or directory path(s). This flag can be repeated"},
|
||||
{Name: "--count", Description: "Number of times to repeat each benchmark"},
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "osqueryi",
|
||||
Description: "Your OS as a high-performance relational database",
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "--flagfile", Description: "Line-delimited file of additional flags"},
|
||||
{Name: "--D", Description: "Run as a daemon process"},
|
||||
{Name: "--S", Description: "Run as a shell process"},
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "pass",
|
||||
Description: "Pass - stores, retrieves, generates, and synchronizes passwords securely",
|
||||
Subcommands: []core.Subcommand{
|
||||
Subcommands: []spec.Subcommand{
|
||||
{Name: "init", Description: "Initialize new password storage and use gpg-id for encryption"},
|
||||
{Name: "gpg-id", Description: "The gpg-id you want to use to encrypt your password store"},
|
||||
{Name: "insert", Description: "Insert a new password into the password store called pass-name"},
|
||||
@@ -28,7 +28,7 @@ func init() {
|
||||
{Name: "find", Description: "List names of passwords inside the tree that match pass-names"},
|
||||
{Name: "show", Description: "Decrypt and print a password"},
|
||||
},
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "--clip", Description: "Copy the password to the clipboard"},
|
||||
{Name: "--qrcode", Description: "Display a QRcode of the password"},
|
||||
{Name: "--help", Description: "Show help for pass"},
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "pg_dump",
|
||||
Description: "Dumps a database as a text file or to other formats",
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "--help", Description: "Show help for pg_dump"},
|
||||
{Name: "--file", Description: "Output file or directory name"},
|
||||
{Name: "--format", Description: "Output file format"},
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "pgcli",
|
||||
Description: "Host address of the postgres database",
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "-h", Description: "Host address of the postgres database"},
|
||||
{Name: "-p", Description: "Port number at which the postgres instance is listening"},
|
||||
{Name: "-U", Description: "Username to connect to the postgres database"},
|
||||
|
||||
+4
-4
@@ -1,14 +1,14 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "pm2",
|
||||
Description: "Outputs the version number",
|
||||
Subcommands: []core.Subcommand{
|
||||
Subcommands: []spec.Subcommand{
|
||||
{Name: "start", Description: "Starts and daemonizes an app"},
|
||||
{Name: "trigger", Description: "Deploy your json"},
|
||||
{Name: "deploy", Description: "Deploy your json"},
|
||||
@@ -60,7 +60,7 @@ func init() {
|
||||
{Name: "describe", Description: "Describe all parameters of a process id"},
|
||||
{Name: "desc", Description: "(alias) Describe all parameters of a process id"},
|
||||
},
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "-V", Description: "Outputs the version number"},
|
||||
{Name: "-v", Description: "Gets version"},
|
||||
{Name: "-s", Description: "Hides all messages"},
|
||||
|
||||
+4
-4
@@ -1,17 +1,17 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "pod",
|
||||
Description: "CocoaPods, the Cocoa library package manager",
|
||||
Subcommands: []core.Subcommand{
|
||||
Subcommands: []spec.Subcommand{
|
||||
{Name: "name", Description: "The name of the podspec file within the Git Repository"},
|
||||
},
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "--project-directory", Description: "The path to the root of the project directory"},
|
||||
{Name: "--allow-root", Description: "Allows CocoaPods to run as root"},
|
||||
{Name: "--all", Description: "Remove all the cached pods without asking"},
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "podman",
|
||||
Description: "Build an image using instructions from Containerfiles",
|
||||
Subcommands: []core.Subcommand{
|
||||
Subcommands: []spec.Subcommand{
|
||||
{Name: "events", Description: "Show podman system events"},
|
||||
{Name: "info", Description: "Display podman system information"},
|
||||
{Name: "inspect", Description: "Display the configuration of object denoted by ID"},
|
||||
@@ -46,7 +46,7 @@ func init() {
|
||||
{Name: "pod", Description: "Manage pods"},
|
||||
{Name: "untag", Description: "Remove a name from a local image"},
|
||||
},
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "--add-host", Description: "Add a custom host-to-IP mapping (host:ip)"},
|
||||
{Name: "--build-arg", Description: "Set build-time variables"},
|
||||
{Name: "--cache-from", Description: "Images to consider as cache sources"},
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "pscale",
|
||||
Description: "The client ID for the PlanetScale CLI application",
|
||||
Subcommands: []core.Subcommand{
|
||||
Subcommands: []spec.Subcommand{
|
||||
{Name: "audit-log", Description: "List audit logs"},
|
||||
{Name: "list", Description: "List all audit logs of an organization"},
|
||||
{Name: "auth", Description: "Login and logout via the PlanetScale API"},
|
||||
@@ -45,7 +45,7 @@ func init() {
|
||||
{Name: "shell", Description: "Open a MySQL shell instance to a database and branch"},
|
||||
{Name: "signup", Description: "Signup for a new PlanetScale account"},
|
||||
},
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "--client-id", Description: "The client ID for the PlanetScale CLI application"},
|
||||
{Name: "--client-secret", Description: "The client ID for the PlanetScale CLI application"},
|
||||
{Name: "--database", Description: "The database this project is using"},
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "psql",
|
||||
Description: "Psql is a terminal-based front-end to PostgreSQL",
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "-a", Description: "Put all query output into file filename. This is equivalent to the command \\\\o"},
|
||||
{Name: "-p", Description: "Print the psql version and exit"},
|
||||
{Name: "-w", Description: "Show help about psql and exit"},
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "pulumi",
|
||||
Description: "The name of the stack to operate on. Defaults to the current stack",
|
||||
Subcommands: []core.Subcommand{
|
||||
Subcommands: []spec.Subcommand{
|
||||
{Name: "about", Description: "Print information about the Pulumi environment"},
|
||||
{Name: "cancel", Description: "Cancel a stack’s currently running update, if any"},
|
||||
{Name: "config", Description: "Manage configuration"},
|
||||
@@ -59,7 +59,7 @@ func init() {
|
||||
{Name: "watch", Description: "[PREVIEW] Continuously update the resources in a stack"},
|
||||
{Name: "whoami", Description: "Displays the username of the currently logged in user"},
|
||||
},
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "-s", Description: "The name of the stack to operate on. Defaults to the current stack"},
|
||||
{Name: "-y", Description: "Skip confirmation prompts, and proceed with cancellation anyway"},
|
||||
{Name: "-j", Description: "Emit output as JSON"},
|
||||
|
||||
@@ -1,20 +1,20 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "qodana",
|
||||
Description: "Run Qodana as fast as possible, with minimum effort required",
|
||||
Subcommands: []core.Subcommand{
|
||||
Subcommands: []spec.Subcommand{
|
||||
{Name: "init", Description: "Configure project for Qodana"},
|
||||
{Name: "scan", Description: "Scan a project with Qodana"},
|
||||
{Name: "show", Description: "Show Qodana report"},
|
||||
{Name: "view", Description: "View SARIF files in CLI"},
|
||||
},
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "-h", Description: "Show help page for command"},
|
||||
{Name: "-v", Description: "Version for Qodana"},
|
||||
{Name: "-i", Description: "Scan a project with Qodana"},
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "railway",
|
||||
Description: "CLI for managing Railway Apps",
|
||||
Subcommands: []core.Subcommand{
|
||||
Subcommands: []spec.Subcommand{
|
||||
{Name: "add", Description: "Add a plugin to your project"},
|
||||
{Name: "completion", Description: "Generate shell-completions"},
|
||||
{Name: "shell", Description: "The shell to generate completions for"},
|
||||
@@ -45,7 +45,7 @@ func init() {
|
||||
{Name: "version", Description: "Get the version of railway's CLI"},
|
||||
{Name: "whoami", Description: "Get the logged in user"},
|
||||
},
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "-e", Description: "Environment to delete from"},
|
||||
{Name: "--browserless", Description: "Login without opening a browser"},
|
||||
{Name: "-n", Description: "Output a specific number of lines"},
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "rbenv",
|
||||
Description: "List all available rbenv commands",
|
||||
Subcommands: []core.Subcommand{
|
||||
Subcommands: []spec.Subcommand{
|
||||
{Name: "commands", Description: "List all available rbenv commands"},
|
||||
{Name: "global", Description: "Set or show the global Ruby version"},
|
||||
{Name: "install", Description: "Install a Ruby version using ruby-build"},
|
||||
@@ -20,7 +20,7 @@ func init() {
|
||||
{Name: "whence", Description: "List all Ruby versions that contain the given executable"},
|
||||
{Name: "which", Description: "Display the full path to an executable"},
|
||||
},
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "--unset", Description: "List all available rbenv commands"},
|
||||
{Name: "--sh", Description: "Set or show the global Ruby version"},
|
||||
{Name: "--version", Description: "Show version of ruby-build"},
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "robot",
|
||||
Description: "Tag",
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "-h", Description: "Print usage instructions"},
|
||||
{Name: "--rpa", Description: "Parse only files with this extension when executing a directory"},
|
||||
{Name: "-N", Description: "Set a name of the top level suite"},
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "serverless",
|
||||
Description: "AWS profile to use with the command",
|
||||
Subcommands: []core.Subcommand{
|
||||
Subcommands: []spec.Subcommand{
|
||||
{Name: "deploy", Description: "Deploy a Serverless service"},
|
||||
{Name: "info", Description: "Display information about the service"},
|
||||
{Name: "invoke", Description: "Invoke a deployed function"},
|
||||
@@ -30,7 +30,7 @@ func init() {
|
||||
{Name: "param", Description: "Get/list value of dashboard service output"},
|
||||
{Name: "slstats", Description: "Enable or disable stats"},
|
||||
},
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "--aws-profile", Description: "AWS profile to use with the command"},
|
||||
{Name: "--function", Description: "Name of the function"},
|
||||
{Name: "--region", Description: "Region of the service"},
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "sfdx",
|
||||
Description: "Analyze (lint) Aura component code",
|
||||
Subcommands: []core.Subcommand{
|
||||
Subcommands: []spec.Subcommand{
|
||||
{Name: "force:lightning:lint", Description: "Analyze (lint) Aura component code"},
|
||||
{Name: "fig-completion", Description: "Generate a Fig completion spec"},
|
||||
{Name: "commands", Description: "List all the commands"},
|
||||
@@ -60,7 +60,7 @@ func init() {
|
||||
{Name: "force:limits:recordcounts:display", Description: "Display record counts for the specified standard and custom objects"},
|
||||
{Name: "force:org:display", Description: "Get the description for the current or target org"},
|
||||
},
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "--json", Description: "Format output as json"},
|
||||
{Name: "--loglevel", Description: "Logging level for this command invocation"},
|
||||
{Name: "-i", Description: "Pattern used to ignore some folders"},
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "sftp",
|
||||
Description: "OpenSSH secure file transfer",
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "--help", Description: "Show help for sftp"},
|
||||
{Name: "-4", Description: "Forces scp to use IPv4 addresses only"},
|
||||
{Name: "-6", Description: "Forces scp to use IPv6 addresses only"},
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "space",
|
||||
Description: "Deta Space CLI for mananging Deta Space projects",
|
||||
Subcommands: []core.Subcommand{
|
||||
Subcommands: []spec.Subcommand{
|
||||
{Name: "completion", Description: "Generate the autocompletion script for the specified shell"},
|
||||
{Name: "bash", Description: "Generate the autocompletion script for bash"},
|
||||
{Name: "fish", Description: "Generate the autocompletion script for fish"},
|
||||
@@ -25,7 +25,7 @@ func init() {
|
||||
{Name: "upgrade", Description: "Upgrade Space CLI version"},
|
||||
{Name: "help", Description: "Help about any command"},
|
||||
},
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "--no-descriptions", Description: "Disable completion descriptions"},
|
||||
{Name: "--dir", Description: "Src of project to link"},
|
||||
{Name: "--id", Description: "Project id of project to link"},
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "sqlite3",
|
||||
Description: "A command line interface for SQLite version 3",
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "-append", Description: "Append the database to the end of the file"},
|
||||
{Name: "-ascii", Description: "Set output mode to 'ascii'"},
|
||||
{Name: "-bail", Description: "Stop after hitting an error"},
|
||||
|
||||
+4
-4
@@ -1,14 +1,14 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "src",
|
||||
Description: "Interact with Sourcegraph from the command line",
|
||||
Subcommands: []core.Subcommand{
|
||||
Subcommands: []spec.Subcommand{
|
||||
{Name: "apply", Description: "Apply batch"},
|
||||
{Name: "exec", Description: "Execute batch"},
|
||||
{Name: "new", Description: "New batch"},
|
||||
@@ -24,7 +24,7 @@ func init() {
|
||||
{Name: "members", Description: "List organization members"},
|
||||
{Name: "tag", Description: "Tag user"},
|
||||
},
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "-display", Description: "Log GraphQL requests and responses to stdout"},
|
||||
{Name: "-explain-json", Description: "Explain the JSON output schema and exit"},
|
||||
{Name: "-get-curl", Description: "Skip validation of TLD certificates against trusted chains"},
|
||||
|
||||
+10
-10
@@ -6,10 +6,10 @@ import (
|
||||
"path/filepath"
|
||||
"strings"
|
||||
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func sshHostGenerator(tokens []string, _ string, _ string) []core.Suggestion {
|
||||
func sshHostGenerator(tokens []string, _ string, _ string) []spec.Suggestion {
|
||||
home, err := os.UserHomeDir()
|
||||
if err != nil {
|
||||
return nil
|
||||
@@ -21,7 +21,7 @@ func sshHostGenerator(tokens []string, _ string, _ string) []core.Suggestion {
|
||||
}
|
||||
|
||||
seen := make(map[string]bool)
|
||||
var results []core.Suggestion
|
||||
var results []spec.Suggestion
|
||||
|
||||
for _, path := range paths {
|
||||
f, err := os.Open(path)
|
||||
@@ -45,7 +45,7 @@ func sshHostGenerator(tokens []string, _ string, _ string) []core.Suggestion {
|
||||
continue
|
||||
}
|
||||
seen[host] = true
|
||||
results = append(results, core.Suggestion{Cmd: host, Desc: "ssh host"})
|
||||
results = append(results, spec.Suggestion{Cmd: host, Desc: "ssh host"})
|
||||
}
|
||||
}
|
||||
_ = scanner.Err()
|
||||
@@ -56,7 +56,7 @@ func sshHostGenerator(tokens []string, _ string, _ string) []core.Suggestion {
|
||||
}
|
||||
|
||||
func init() {
|
||||
sshOptions := []core.Option{
|
||||
sshOptions := []spec.Option{
|
||||
{Name: "-p", Description: "port"},
|
||||
{Name: "-i", Description: "identity file"},
|
||||
{Name: "-L", Description: "local port forward"},
|
||||
@@ -69,18 +69,18 @@ func init() {
|
||||
{Name: "-X", Description: "x11 forwarding"},
|
||||
}
|
||||
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "ssh",
|
||||
Description: "secure shell",
|
||||
Generator: sshHostGenerator,
|
||||
Options: sshOptions,
|
||||
})
|
||||
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "scp",
|
||||
Description: "secure copy",
|
||||
Generator: sshHostGenerator,
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "-r", Description: "recursive"},
|
||||
{Name: "-p", Description: "port"},
|
||||
{Name: "-i", Description: "identity file"},
|
||||
@@ -88,11 +88,11 @@ func init() {
|
||||
},
|
||||
})
|
||||
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "rsync",
|
||||
Description: "remote sync",
|
||||
Generator: sshHostGenerator,
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "-av", Description: "archive + verbose"},
|
||||
{Name: "-z", Description: "compress"},
|
||||
{Name: "--delete", Description: "delete extraneous"},
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "ssh-keygen",
|
||||
Description: "Generates, manages and converts authentication keys for ssh",
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "-A", Description: "When saving a private key, this option specifies the number of KDF"},
|
||||
{Name: "-B", Description: "Show the bubblebabble digest of specified private or public key file"},
|
||||
{Name: "-b", Description: "Specifies the number of bits in the key to create"},
|
||||
|
||||
@@ -1,24 +1,24 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "stripe",
|
||||
Description: "Stripe CLI - build, test, and manage your Stripe integrations right from your terminal",
|
||||
Subcommands: []core.Subcommand{
|
||||
Subcommands: []spec.Subcommand{
|
||||
{Name: "login", Description: "Connects to your Stripe account"},
|
||||
{Name: "logout", Description: "Disconnects your Stripe account"},
|
||||
{Name: "config", Description: "Manage Stripe CLI configuration", Subcommands: []core.Subcommand{
|
||||
{Name: "config", Description: "Manage Stripe CLI configuration", Subcommands: []spec.Subcommand{
|
||||
{Name: "list", Description: "List all configured options"},
|
||||
{Name: "set", Description: "Set a value for the specified configuration option"},
|
||||
{Name: "unset", Description: "Remove a key-value pair from the config file"},
|
||||
}},
|
||||
{Name: "completion", Description: "Generates shell autocompletions"},
|
||||
{Name: "status", Description: "Displays Stripe's system status and service availability"},
|
||||
{Name: "open", Description: "Opens Stripe dashboard pages in your web browser", Subcommands: []core.Subcommand{
|
||||
{Name: "open", Description: "Opens Stripe dashboard pages in your web browser", Subcommands: []spec.Subcommand{
|
||||
{Name: "login", Description: "Open the login page"},
|
||||
{Name: "dashboard", Description: "Open the dashboard"},
|
||||
{Name: "api", Description: "Open API reference docs"},
|
||||
@@ -27,7 +27,7 @@ func init() {
|
||||
{Name: "settings", Description: "Open account settings"},
|
||||
}},
|
||||
{Name: "listen", Description: "Receives webhook events from Stripe locally"},
|
||||
{Name: "trigger", Description: "Trigger webhook events", Subcommands: []core.Subcommand{
|
||||
{Name: "trigger", Description: "Trigger webhook events", Subcommands: []spec.Subcommand{
|
||||
{Name: "account.updated", Description: "Occurs whenever an account status or property has changed"},
|
||||
{Name: "account.external_account.created", Description: "Occurs whenever an external account is created"},
|
||||
{Name: "account.external_account.deleted", Description: "Occurs whenever an external account is deleted"},
|
||||
@@ -53,14 +53,14 @@ func init() {
|
||||
{Name: "customer.discount.created", Description: "Occurs whenever a coupon is attached to a customer"},
|
||||
{Name: "customer.discount.deleted", Description: "Occurs whenever a coupon is removed from a customer"},
|
||||
}},
|
||||
{Name: "logs", Description: "Interact with Stripe request logs", Subcommands: []core.Subcommand{
|
||||
{Name: "logs", Description: "Interact with Stripe request logs", Subcommands: []spec.Subcommand{
|
||||
{Name: "tail", Description: "Stream request logs from Stripe"},
|
||||
}},
|
||||
{Name: "get", Description: "Make a GET request to the Stripe API"},
|
||||
{Name: "post", Description: "Make a POST request to the Stripe API"},
|
||||
{Name: "delete", Description: "Make a DELETE request to the Stripe API"},
|
||||
},
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "--api-key", Description: "Sets your API key to use for the command"},
|
||||
{Name: "--color", Description: "Enables or disables color output"},
|
||||
{Name: "--config", Description: "Sets your config file"},
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "supabase",
|
||||
Description: "Supabase CLI",
|
||||
Subcommands: []core.Subcommand{
|
||||
Subcommands: []spec.Subcommand{
|
||||
{Name: "completion", Description: "Generate the autocompletion script for the specified shell"},
|
||||
{Name: "bash", Description: "Generate the autocompletion script for bash"},
|
||||
{Name: "fish", Description: "Generate the autocompletion script for fish"},
|
||||
@@ -53,7 +53,7 @@ func init() {
|
||||
{Name: "stop", Description: "Stop all local Supabase containers"},
|
||||
{Name: "help", Description: "Help about any command"},
|
||||
},
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "--no-descriptions", Description: "Disable completion descriptions"},
|
||||
{Name: "--file", Description: "Saves schema diff to a file"},
|
||||
{Name: "--schema", Description: "List of schema to include"},
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "surreal",
|
||||
Description: "Database authentication password to use when connecting [default: root]",
|
||||
Subcommands: []core.Subcommand{
|
||||
Subcommands: []spec.Subcommand{
|
||||
{Name: "help", Description: "Print this message or the help of the given subcommand(s)"},
|
||||
{Name: "start", Description: "Start the database server"},
|
||||
{Name: "path", Description: "Database path used for storing data [env: DB_PATH=] [default: memory]"},
|
||||
@@ -27,7 +27,7 @@ func init() {
|
||||
{Name: "version", Description: "Output the command-line tool version information"},
|
||||
{Name: "sql", Description: "Start an SQL REPL in your terminal with pipe support"},
|
||||
},
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "--pass", Description: "Database authentication password to use when connecting [default: root]"},
|
||||
{Name: "--user", Description: "Database authentication username to use when connecting [default: root]"},
|
||||
{Name: "--conn", Description: "Remote database server url to connect to [default: https://cloud.surrealdb.com]"},
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "tailscale",
|
||||
Description: "Connect to Tailscale, logging in if needed",
|
||||
Subcommands: []core.Subcommand{
|
||||
Subcommands: []spec.Subcommand{
|
||||
{Name: "up", Description: "Connect to Tailscale, logging in if needed"},
|
||||
{Name: "down", Description: "Disconnect from Tailscale"},
|
||||
{Name: "logout", Description: "Disconnect from Tailscale and expire current node key"},
|
||||
@@ -27,7 +27,7 @@ func init() {
|
||||
{Name: "cert", Description: "Get TLS certs"},
|
||||
{Name: "help", Description: "Print help message"},
|
||||
},
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "--accept-dns", Description: "Accept DNS configuration from the admin panel"},
|
||||
{Name: "--accept-routes", Description: "Accept routes advertised by other Tailscale nodes"},
|
||||
{Name: "--advertise-exit-node", Description: "Offer to be an exit node for internet traffic for the tailnet"},
|
||||
|
||||
@@ -1,20 +1,20 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "terraform",
|
||||
Description: "Workspace",
|
||||
Subcommands: []core.Subcommand{
|
||||
Subcommands: []spec.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{
|
||||
Options: []spec.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"},
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user