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:
VERSE
2026-07-05 11:27:30 +07:00
committed by GitHub
parent 6b98455957
commit ebde9ba68f
536 changed files with 2241 additions and 2241 deletions
+4 -4
View File
@@ -1,14 +1,14 @@
package js
import (
"github.com/versenilvis/iris/commands/core"
"github.com/versenilvis/iris/spec"
)
func init() {
core.Register(&core.Spec{
spec.Register(&spec.Spec{
Name: "asar",
Description: "A simple extensive tar-like archive format with indexing",
Subcommands: []core.Subcommand{
Subcommands: []spec.Subcommand{
{Name: "pack", Description: "Create asar archive"},
{Name: "directory", Description: "The directory you want to archive"},
{Name: "output", Description: "The name of the output file"},
@@ -18,7 +18,7 @@ func init() {
{Name: "filename", Description: "The name of the file you want to extract"},
{Name: "extract", Description: "Extract archive"},
},
Options: []core.Option{
Options: []spec.Option{
{Name: "--help", Description: "Show help for asar"},
{Name: "--V", Description: "Output the version number"},
},
+4 -4
View File
@@ -1,14 +1,14 @@
package js
import (
"github.com/versenilvis/iris/commands/core"
"github.com/versenilvis/iris/spec"
)
func init() {
core.Register(&core.Spec{
spec.Register(&spec.Spec{
Name: "astro",
Description: "Add an integration",
Subcommands: []core.Subcommand{
Subcommands: []spec.Subcommand{
{Name: "add", Description: "Add an integration"},
{Name: "build", Description: "Build your project and write it to disk"},
{Name: "check", Description: "Check your project for errors"},
@@ -21,7 +21,7 @@ func init() {
{Name: "disable", Description: "Disable anonymous data collection"},
{Name: "reset", Description: "Reset anonymous data collection settings"},
},
Options: []core.Option{
Options: []spec.Option{
{Name: "--yes", Description: "Accept all prompts"},
{Name: "--drafts", Description: "Include Markdown draft pages in the build"},
{Name: "--watch", Description: "Watch Astro files for changes and re-run checks"},
+3 -3
View File
@@ -1,14 +1,14 @@
package js
import (
"github.com/versenilvis/iris/commands/core"
"github.com/versenilvis/iris/spec"
)
func init() {
core.Register(&core.Spec{
spec.Register(&spec.Spec{
Name: "babel",
Description: "A comma-separated list of preset names",
Options: []core.Option{
Options: []spec.Option{
{Name: "-f", Description: "A comma-separated list of preset names"},
{Name: "--plugins", Description: "A comma-separated list of plugin names"},
{Name: "--config-file", Description: "Path to a .babelrc file to use"},
+4 -4
View File
@@ -1,14 +1,14 @@
package js
import (
"github.com/versenilvis/iris/commands/core"
"github.com/versenilvis/iris/spec"
)
func init() {
core.Register(&core.Spec{
spec.Register(&spec.Spec{
Name: "blitz",
Description: "Show help for command",
Subcommands: []core.Subcommand{
Subcommands: []spec.Subcommand{
{Name: "build", Description: "Creates a production build"},
{Name: "codegen", Description: "Generates Routes Manifest"},
{Name: "console", Description: "Run the Blitz console REPL"},
@@ -28,7 +28,7 @@ func init() {
{Name: "autocomplete", Description: "Display autocomplete installation instructions"},
{Name: "shell", Description: "Shell type"},
},
Options: []core.Option{
Options: []spec.Option{
{Name: "--help", Description: "Show help for command"},
{Name: "-p", Description: "Set port number"},
{Name: "-H", Description: "Set server hostname"},
+4 -4
View File
@@ -1,21 +1,21 @@
package js
import (
"github.com/versenilvis/iris/commands/core"
"github.com/versenilvis/iris/spec"
)
func init() {
core.Register(&core.Spec{
spec.Register(&spec.Spec{
Name: "browser-sync",
Description: "Keep multiple browsers & devices in sync when building websites",
Subcommands: []core.Subcommand{
Subcommands: []spec.Subcommand{
{Name: "start", Description: "Start Browsersync"},
{Name: "init", Description: "Create a configuration file"},
{Name: "reload", Description: "Send a reload event over HTTP protocol"},
{Name: "recipe", Description: "Generate the files for a recipe"},
{Name: "ls", Description: "List recipes"},
},
Options: []core.Option{
Options: []spec.Option{
{Name: "--version", Description: "Show version number"},
{Name: "--help", Description: "Show help"},
{Name: "-s", Description: "Run a Local server (uses your cwd as the web root)"},
+3 -3
View File
@@ -1,14 +1,14 @@
package js
import (
"github.com/versenilvis/iris/commands/core"
"github.com/versenilvis/iris/spec"
)
func init() {
core.Register(&core.Spec{
spec.Register(&spec.Spec{
Name: "build-storybook",
Description: "Storybook build CLI tools",
Options: []core.Option{
Options: []spec.Option{
{Name: "-o", Description: "Directory where to store built files"},
{Name: "-w", Description: "Enables watch mode"},
{Name: "--loglevel", Description: "Controls level of logging during build"},
+17 -17
View File
@@ -1,21 +1,21 @@
package js
import (
"github.com/versenilvis/iris/commands/core"
"github.com/versenilvis/iris/spec"
)
func init() {
core.Register(&core.Spec{
spec.Register(&spec.Spec{
Name: "bun",
Description: "bun js runtime",
Subcommands: []core.Subcommand{
{Name: "install", Description: "install packages", Options: []core.Option{
Subcommands: []spec.Subcommand{
{Name: "install", Description: "install packages", Options: []spec.Option{
{Name: "--frozen-lockfile", Description: "no lockfile update"},
{Name: "--production", Description: "production only"},
{Name: "--no-save", Description: "don't update package.json"},
{Name: "--dry-run", Description: "print what would be installed"},
}},
{Name: "add", Description: "add package", Options: []core.Option{
{Name: "add", Description: "add package", Options: []spec.Option{
{Name: "-d", Description: "dev dependency"},
{Name: "--dev", Description: "dev dependency (long form)"},
{Name: "--optional", Description: "optional dependency"},
@@ -24,17 +24,17 @@ func init() {
{Name: "--exact", Description: "exact version"},
{Name: "--no-save", Description: "don't update package.json"},
}},
{Name: "remove", Description: "remove package", Options: []core.Option{
{Name: "remove", Description: "remove package", Options: []spec.Option{
{Name: "-g", Description: "remove global package"},
}},
{Name: "run", Description: "run script", Generator: NpmScriptGenerator, Options: []core.Option{
{Name: "run", Description: "run script", Generator: NpmScriptGenerator, Options: []spec.Option{
{Name: "--silent", Description: "suppress output"},
{Name: "--bun", Description: "force bun runtime"},
{Name: "--watch", Description: "watch mode"},
{Name: "--hot", Description: "hot reload"},
{Name: "--smol", Description: "reduce memory usage"},
}},
{Name: "build", Description: "bundle files", Generator: core.FileGenerator(".ts", ".tsx", ".js", ".jsx"), Options: []core.Option{
{Name: "build", Description: "bundle files", Generator: spec.FileGenerator(".ts", ".tsx", ".js", ".jsx"), Options: []spec.Option{
{Name: "--outdir", Description: "output directory"},
{Name: "--outfile", Description: "output file"},
{Name: "--minify", Description: "enable all minification"},
@@ -54,7 +54,7 @@ func init() {
{Name: "--loader", Description: "set file loader"},
{Name: "--public-path", Description: "prefix for public assets"},
}},
{Name: "test", Description: "run tests", Options: []core.Option{
{Name: "test", Description: "run tests", Options: []spec.Option{
{Name: "--watch", Description: "watch mode"},
{Name: "-t", Description: "filter by test name"},
{Name: "--coverage", Description: "collect coverage"},
@@ -65,20 +65,20 @@ func init() {
{Name: "--todo", Description: "show todo tests"},
{Name: "--reporter", Description: "test reporter (default/junit/tap)"},
}},
{Name: "x", Description: "execute package (bunx)", Options: []core.Option{
{Name: "x", Description: "execute package (bunx)", Options: []spec.Option{
{Name: "--bun", Description: "force bun runtime"},
{Name: "--silent", Description: "suppress output"},
}},
{Name: "outdated", Description: "check outdated packages"},
{Name: "patch", Description: "patch a package", Options: []core.Option{
{Name: "patch", Description: "patch a package", Options: []spec.Option{
{Name: "--commit", Description: "commit the patch"},
}},
{Name: "publish", Description: "publish package to npm", Options: []core.Option{
{Name: "publish", Description: "publish package to npm", Options: []spec.Option{
{Name: "--dry-run", Description: "simulate publish"},
{Name: "--tag", Description: "dist-tag"},
{Name: "--access", Description: "public or restricted"},
}},
{Name: "init", Description: "create new project", Options: []core.Option{
{Name: "init", Description: "create new project", Options: []spec.Option{
{Name: "-y", Description: "skip prompts"},
}},
{Name: "create", Description: "create from template"},
@@ -86,7 +86,7 @@ func init() {
{Name: "upgrade", Description: "upgrade bun"},
{Name: "link", Description: "link package"},
{Name: "unlink", Description: "unlink package"},
{Name: "pm", Description: "package manager helpers", Subcommands: []core.Subcommand{
{Name: "pm", Description: "package manager helpers", Subcommands: []spec.Subcommand{
{Name: "cache", Description: "show cache path"},
{Name: "ls", Description: "list packages"},
{Name: "hash", Description: "print lockfile hash"},
@@ -95,7 +95,7 @@ func init() {
{Name: "untrusted", Description: "show untrusted packages"},
}},
},
Options: []core.Option{
Options: []spec.Option{
{Name: "--watch", Description: "watch for changes"},
{Name: "--hot", Description: "hot module reload"},
{Name: "--smol", Description: "reduce memory usage"},
@@ -105,10 +105,10 @@ func init() {
},
})
core.Register(&core.Spec{
spec.Register(&spec.Spec{
Name: "bunx",
Description: "execute package (bun x)",
Options: []core.Option{
Options: []spec.Option{
{Name: "--bun", Description: "force bun runtime"},
{Name: "--silent", Description: "suppress output"},
},
+4 -4
View File
@@ -1,14 +1,14 @@
package js
import (
"github.com/versenilvis/iris/commands/core"
"github.com/versenilvis/iris/spec"
)
func init() {
core.Register(&core.Spec{
spec.Register(&spec.Spec{
Name: "cordova",
Description: "Print out the version of your cordova-cli install",
Subcommands: []core.Subcommand{
Subcommands: []spec.Subcommand{
{Name: "create", Description: "Create a project"},
{Name: "help", Description: "Get help for a command"},
{Name: "telemetry", Description: "Turn telemetry collection on or off"},
@@ -35,7 +35,7 @@ func init() {
{Name: "serve", Description: "Run project with a local webserver (including prepare)"},
{Name: "port", Description: "Port to use for local web server"},
},
Options: []core.Option{
Options: []spec.Option{
{Name: "-d", Description: "Print out the version of your cordova-cli install"},
{Name: "--no-update-notifier", Description: "Will disable updates check"},
{Name: "--nohooks", Description: "Suppress executing hooks (taking RegExp hook patterns as parameters)"},
+4 -4
View File
@@ -1,17 +1,17 @@
package js
import (
"github.com/versenilvis/iris/commands/core"
"github.com/versenilvis/iris/spec"
)
func init() {
core.Register(&core.Spec{
spec.Register(&spec.Spec{
Name: "create-completion-spec",
Description: "Setup fig folder and create spec with the given name",
Subcommands: []core.Subcommand{
Subcommands: []spec.Subcommand{
{Name: "help", Description: "Display help for command"},
},
Options: []core.Option{
Options: []spec.Option{
{Name: "--here", Description: "Set if the spec should be created in the current folder"},
{Name: "-h", Description: "Display help for command"},
},
+3 -3
View File
@@ -1,14 +1,14 @@
package js
import (
"github.com/versenilvis/iris/commands/core"
"github.com/versenilvis/iris/spec"
)
func init() {
core.Register(&core.Spec{
spec.Register(&spec.Spec{
Name: "create-next-app",
Description: "Output the version number",
Options: []core.Option{
Options: []spec.Option{
{Name: "-V", Description: "Output the version number"},
{Name: "--ts", Description: "Initialize as a TypeScript project"},
{Name: "--use-npm", Description: "Explicitly tell the CLI to bootstrap the app using npm"},
+3 -3
View File
@@ -1,14 +1,14 @@
package js
import (
"github.com/versenilvis/iris/commands/core"
"github.com/versenilvis/iris/spec"
)
func init() {
core.Register(&core.Spec{
spec.Register(&spec.Spec{
Name: "create-nx-workspace",
Description: "The name of the workspace",
Options: []core.Option{
Options: []spec.Option{
{Name: "--name", Description: "Workspace name (e.g., org name)"},
{Name: "--preset", Description: "Empty [an empty workspace with a layout that works best for building apps]"},
{Name: "--appName", Description: "The name of the application created by some presets"},
+3 -3
View File
@@ -1,14 +1,14 @@
package js
import (
"github.com/versenilvis/iris/commands/core"
"github.com/versenilvis/iris/spec"
)
func init() {
core.Register(&core.Spec{
spec.Register(&spec.Spec{
Name: "create-react-app",
Description: "Creates a new React project",
Options: []core.Option{
Options: []spec.Option{
{Name: "--template", Description: "Use npm to install dependencies (default when Yarn is not installed)"},
{Name: "--use-pnp", Description: "Use Yarn Plug'n'Play to create the app"},
{Name: "--scripts-version", Description: "Print additional logs"},
+3 -3
View File
@@ -1,14 +1,14 @@
package js
import (
"github.com/versenilvis/iris/commands/core"
"github.com/versenilvis/iris/spec"
)
func init() {
core.Register(&core.Spec{
spec.Register(&spec.Spec{
Name: "create-react-native-app",
Description: "Creates a new React Native project",
Options: []core.Option{
Options: []spec.Option{
{Name: "--template", Description: "The path inside of a GitHub repo where the example lives"},
{Name: "--yes", Description: "Use the default options for creating a project"},
{Name: "--no-install", Description: "Skip installing npm packages or CocoaPods"},
+3 -3
View File
@@ -1,14 +1,14 @@
package js
import (
"github.com/versenilvis/iris/commands/core"
"github.com/versenilvis/iris/spec"
)
func init() {
core.Register(&core.Spec{
spec.Register(&spec.Spec{
Name: "create-redwood-app",
Description: "Name of your Redwood project",
Options: []core.Option{
Options: []spec.Option{
{Name: "--help", Description: "Show help"},
{Name: "--typescript", Description: "Generate a TypeScript project"},
{Name: "--overwrite", Description: "Create even if target directory isn't empty"},
+3 -3
View File
@@ -1,14 +1,14 @@
package js
import (
"github.com/versenilvis/iris/commands/core"
"github.com/versenilvis/iris/spec"
)
func init() {
core.Register(&core.Spec{
spec.Register(&spec.Spec{
Name: "create-remix",
Description: "Display help for command",
Options: []core.Option{
Options: []spec.Option{
{Name: "-h", Description: "Display help for command"},
{Name: "-v", Description: "Display version for command"},
},
+3 -3
View File
@@ -1,14 +1,14 @@
package js
import (
"github.com/versenilvis/iris/commands/core"
"github.com/versenilvis/iris/spec"
)
func init() {
core.Register(&core.Spec{
spec.Register(&spec.Spec{
Name: "create-t3-app",
Description: "The name of the application, as well as the name of the directory to create",
Options: []core.Option{
Options: []spec.Option{
{Name: "--noGit", Description: "Boolean value if we're running in CI (default: false)"},
{Name: "--tailwind", Description: "Install Tailwind CSS"},
{Name: "--nextAuth", Description: "Install NextAuth.js"},
+2 -2
View File
@@ -1,11 +1,11 @@
package js
import (
"github.com/versenilvis/iris/commands/core"
"github.com/versenilvis/iris/spec"
)
func init() {
core.Register(&core.Spec{
spec.Register(&spec.Spec{
Name: "create-video",
Description: "CLI used to create remotion video project",
})
+2 -2
View File
@@ -1,11 +1,11 @@
package js
import (
"github.com/versenilvis/iris/commands/core"
"github.com/versenilvis/iris/spec"
)
func init() {
core.Register(&core.Spec{
spec.Register(&spec.Spec{
Name: "create-vite",
Description: "Create a new project powered by Vite",
})
+3 -3
View File
@@ -1,14 +1,14 @@
package js
import (
"github.com/versenilvis/iris/commands/core"
"github.com/versenilvis/iris/spec"
)
func init() {
core.Register(&core.Spec{
spec.Register(&spec.Spec{
Name: "create-web3-frontend",
Description: "Quickly create a Next.js project with wagmi and TailwindCSS ready to go",
Options: []core.Option{
Options: []spec.Option{
{Name: "--ts", Description: "Initialize as a TypeScript project"},
{Name: "--use-npm", Description: "Explicitly tell the CLI to bootstrap the app using npm"},
{Name: "--use-pnpm", Description: "Explicitly tell the CLI to bootstrap the app using pnpm"},
+4 -4
View File
@@ -1,14 +1,14 @@
package js
import (
"github.com/versenilvis/iris/commands/core"
"github.com/versenilvis/iris/spec"
)
func init() {
core.Register(&core.Spec{
spec.Register(&spec.Spec{
Name: "deno",
Description: "A modern JavaScript and TypeScript runtime",
Subcommands: []core.Subcommand{
Subcommands: []spec.Subcommand{
{Name: "bench", Description: "Run benchmarks"},
{Name: "bundle", Description: "Bundle module and dependencies into single file"},
{Name: "cache", Description: "Cache the dependencies"},
@@ -34,7 +34,7 @@ func init() {
{Name: "vendor", Description: "Vendor remote modules into a local directory"},
{Name: "help", Description: "Print this message or the help of the given subcommand(s)"},
},
Options: []core.Option{
Options: []spec.Option{
{Name: "--import-map", Description: "Load import map file"},
{Name: "-c", Description: "Specify the configuration file"},
{Name: "--no-check", Description: "Skip type-checking modules"},
+3 -3
View File
@@ -1,14 +1,14 @@
package js
import (
"github.com/versenilvis/iris/commands/core"
"github.com/versenilvis/iris/spec"
)
func init() {
core.Register(&core.Spec{
spec.Register(&spec.Spec{
Name: "dotenv",
Description: "Loads environment variables from .env",
Options: []core.Option{
Options: []spec.Option{
{Name: "-f", Description: "List of env files to parse"},
{Name: "-h", Description: "Display help"},
{Name: "-v", Description: "Show version"},
+3 -3
View File
@@ -1,14 +1,14 @@
package js
import (
"github.com/versenilvis/iris/commands/core"
"github.com/versenilvis/iris/spec"
)
func init() {
core.Register(&core.Spec{
spec.Register(&spec.Spec{
Name: "electron",
Description: "Build cross platform desktop apps with JavaScript, HTML and CSS",
Options: []core.Option{
Options: []spec.Option{
{Name: "-i", Description: "Open a REPL to the main process"},
{Name: "-r", Description: "Module to preload"},
{Name: "-v", Description: "Print the version"},
+4 -4
View File
@@ -1,14 +1,14 @@
package js
import (
"github.com/versenilvis/iris/commands/core"
"github.com/versenilvis/iris/spec"
)
func init() {
core.Register(&core.Spec{
spec.Register(&spec.Spec{
Name: "elm",
Description: "Fig spec for the Elm language cli",
Subcommands: []core.Subcommand{
Subcommands: []spec.Subcommand{
{Name: "reactor", Description: "Start an Elm development server"},
{Name: "port", Description: "The port number"},
{Name: "package", Description: "The name of the package to install"},
@@ -18,7 +18,7 @@ func init() {
{Name: "bump", Description: "Bump the version of your package"},
{Name: "diff", Description: "See what changed between versions of a package"},
},
Options: []core.Option{
Options: []spec.Option{
{Name: "--help", Description: "Show help for elm init"},
{Name: "--no-colors", Description: "Turn off colors in the repl"},
{Name: "--interpreter", Description: "Path to an alternate JS interpreter, such as Node or Deno"},
+3 -3
View File
@@ -1,14 +1,14 @@
package js
import (
"github.com/versenilvis/iris/commands/core"
"github.com/versenilvis/iris/spec"
)
func init() {
core.Register(&core.Spec{
spec.Register(&spec.Spec{
Name: "elm-format",
Description: "Format your code in the Elm idiomatic way",
Options: []core.Option{
Options: []spec.Option{
{Name: "--help", Description: "Show help for elm-format"},
{Name: "--output", Description: "Write output to FILE instead of overwriting the given source file"},
{Name: "--yes", Description: "Reply 'yes' to all automated prompts"},
+4 -4
View File
@@ -1,14 +1,14 @@
package js
import (
"github.com/versenilvis/iris/commands/core"
"github.com/versenilvis/iris/spec"
)
func init() {
core.Register(&core.Spec{
spec.Register(&spec.Spec{
Name: "elm-json",
Description: "Deal with your elm.json",
Subcommands: []core.Subcommand{
Subcommands: []spec.Subcommand{
{Name: "help", Description: "Prints help information or the help of the given subcommand(s)"},
{Name: "install", Description: "Install a package"},
{Name: "PACKAGE", Description: "Package to install, e.g. elm/core or elm/core@1.0.2 or elm/core@1"},
@@ -18,7 +18,7 @@ func init() {
{Name: "upgrade", Description: "Bring your dependencies up to date"},
{Name: "INPUT", Description: "The elm.json file to upgrade [default: elm.json]"},
},
Options: []core.Option{
Options: []spec.Option{
{Name: "--help", Description: "Prints help information"},
{Name: "--test", Description: "Install as a test-dependency"},
{Name: "--version", Description: "Prints version information"},
+4 -4
View File
@@ -1,20 +1,20 @@
package js
import (
"github.com/versenilvis/iris/commands/core"
"github.com/versenilvis/iris/spec"
)
func init() {
core.Register(&core.Spec{
spec.Register(&spec.Spec{
Name: "elm-review",
Description: "Prints a single JSON object",
Subcommands: []core.Subcommand{
Subcommands: []spec.Subcommand{
{Name: "init", Description: "Initialize Elm Review in this directory"},
{Name: "suppress", Description: "Generate suppression files for rules that report many errors"},
{Name: "new-package", Description: "Creates an new project aimed to contain rules and to be published later"},
{Name: "new-rule", Description: "Adds a new rule to your review configuration or review package"},
},
Options: []core.Option{
Options: []spec.Option{
{Name: "--help", Description: "Show help for elm-review init"},
{Name: "--config", Description: "Specify the path to the elm compiler"},
{Name: "--check-after-tests", Description: "Checks whether there are uncommitted suppression files"},
+3 -3
View File
@@ -1,14 +1,14 @@
package js
import (
"github.com/versenilvis/iris/commands/core"
"github.com/versenilvis/iris/spec"
)
func init() {
core.Register(&core.Spec{
spec.Register(&spec.Spec{
Name: "esbuild",
Description: "An extremely fast JavaScript bundler",
Options: []core.Option{
Options: []spec.Option{
{Name: "--bundle", Description: "Bundle all dependencies into the output files"},
{Name: "--define", Description: "Replace variable names with a literal value, eg. --define:DEBUG=true"},
{Name: "--external", Description: "Exclude modules from the build"},
+3 -3
View File
@@ -1,14 +1,14 @@
package js
import (
"github.com/versenilvis/iris/commands/core"
"github.com/versenilvis/iris/spec"
)
func init() {
core.Register(&core.Spec{
spec.Register(&spec.Spec{
Name: "eslint",
Description: "Pluggable JavaScript linter",
Options: []core.Option{
Options: []spec.Option{
{Name: "--no-eslintrc", Description: "Disable use of configuration from .eslintrc.*"},
{Name: "-c", Description: "Use this configuration, overriding .eslintrc.* config options if present"},
{Name: "--env", Description: "Specify environments"},
+3 -3
View File
@@ -1,14 +1,14 @@
package js
import (
"github.com/versenilvis/iris/commands/core"
"github.com/versenilvis/iris/spec"
)
func init() {
core.Register(&core.Spec{
spec.Register(&spec.Spec{
Name: "expo",
Description: "Tools for creating, running, and deploying Universal Expo and React Native apps",
Options: []core.Option{
Options: []spec.Option{
{Name: "-h", Description: "Output usage information"},
{Name: "-V", Description: "Output the version number"},
{Name: "-u", Description: "Username"},
+3 -3
View File
@@ -1,14 +1,14 @@
package js
import (
"github.com/versenilvis/iris/commands/core"
"github.com/versenilvis/iris/spec"
)
func init() {
core.Register(&core.Spec{
spec.Register(&spec.Spec{
Name: "expo-cli",
Description: "Tools for creating, running, and deploying Universal Expo and React Native apps",
Options: []core.Option{
Options: []spec.Option{
{Name: "-h", Description: "Output usage information"},
{Name: "-V", Description: "Output the version number"},
{Name: "-u", Description: "Username"},
+3 -3
View File
@@ -1,14 +1,14 @@
package js
import (
"github.com/versenilvis/iris/commands/core"
"github.com/versenilvis/iris/spec"
)
func init() {
core.Register(&core.Spec{
spec.Register(&spec.Spec{
Name: "ganache-cli",
Description: "Fast Ethereum RPC client",
Options: []core.Option{
Options: []spec.Option{
{Name: "-a", Description: "Specify the number of accounts to generate at startup"},
{Name: "-e", Description: "Amount of ether to assign each test account. Default is 100"},
{Name: "-b", Description: "Generate deterministic addresses based on a pre-defined mnemonic"},
+4 -4
View File
@@ -1,14 +1,14 @@
package js
import (
"github.com/versenilvis/iris/commands/core"
"github.com/versenilvis/iris/spec"
)
func init() {
core.Register(&core.Spec{
spec.Register(&spec.Spec{
Name: "gatsby",
Description: "Set host. Defaults to localhost",
Subcommands: []core.Subcommand{
Subcommands: []spec.Subcommand{
{Name: "develop", Description: "Start the Gatsby development server"},
{Name: "build", Description: "Compile your application and make it ready for deployment"},
{Name: "serve", Description: "Serve the production build of your site for testing"},
@@ -18,7 +18,7 @@ func init() {
{Name: "docs", Description: "Documentation about using and creating plugins"},
{Name: "repl", Description: "Gatsby will prompt you to type in commands and explore"},
},
Options: []core.Option{
Options: []spec.Option{
{Name: "-H", Description: "Set host. Defaults to localhost"},
{Name: "-p", Description: "Set port. Defaults to env.PORT or 8000"},
{Name: "-o", Description: "Open the site in your (default) browser for you"},
+4 -4
View File
@@ -1,14 +1,14 @@
package js
import (
"github.com/versenilvis/iris/commands/core"
"github.com/versenilvis/iris/spec"
)
func init() {
core.Register(&core.Spec{
spec.Register(&spec.Spec{
Name: "hardhat",
Description: "Ethereum development environment",
Subcommands: []core.Subcommand{
Subcommands: []spec.Subcommand{
{Name: "accounts", Description: "Prints the list of accounts"},
{Name: "check", Description: "Check whatever you need"},
{Name: "clean", Description: "Clears the cache and deletes all artifacts"},
@@ -20,7 +20,7 @@ func init() {
{Name: "run", Description: "Runs a user-defined script after compiling the project"},
{Name: "test", Description: "Runs mocha tests"},
},
Options: []core.Option{
Options: []spec.Option{
{Name: "--emoji", Description: "Use emoji in messages"},
{Name: "--max-memory", Description: "The maximum amount of memory that Hardhat can use"},
{Name: "--help", Description: "Shows the help text or task's help if name is provided"},
+4 -4
View File
@@ -1,14 +1,14 @@
package js
import (
"github.com/versenilvis/iris/commands/core"
"github.com/versenilvis/iris/spec"
)
func init() {
core.Register(&core.Spec{
spec.Register(&spec.Spec{
Name: "ionic",
Description: "Target engine (e.g. browser, cordova)",
Subcommands: []core.Subcommand{
Subcommands: []spec.Subcommand{
{Name: "completion", Description: "Enables tab-completion for Ionic CLI commands"},
{Name: "id", Description: "The Appflow ID of the app to link (e.g. a1b2c3d4)"},
{Name: "email", Description: "Your email address"},
@@ -45,7 +45,7 @@ func init() {
{Name: "action", Description: "Add, remove, or update a platform; ls, check, or save all project platforms"},
{Name: "plugin", Description: "The name of the plugin (corresponds to add and remove)"},
},
Options: []core.Option{
Options: []spec.Option{
{Name: "--engine", Description: "Target engine (e.g. browser, cordova)"},
{Name: "--platform", Description: "Target platform on chosen engine (e.g. ios, android)"},
{Name: "--prod", Description: "Flag to use the production configuration"},
+3 -3
View File
@@ -1,14 +1,14 @@
package js
import (
"github.com/versenilvis/iris/commands/core"
"github.com/versenilvis/iris/spec"
)
func init() {
core.Register(&core.Spec{
spec.Register(&spec.Spec{
Name: "jest",
Description: "A delightful JavaScript Testing Framework with a focus on simplicity",
Options: []core.Option{
Options: []spec.Option{
{Name: "--bail", Description: "Whether to use the cache"},
{Name: "--no-cache", Description: "Whether to use the cache"},
{Name: "--changedFilesWithAncestor", Description: "Runs tests related to the changes since the provided branch or commit hash"},
+4 -4
View File
@@ -1,14 +1,14 @@
package js
import (
"github.com/versenilvis/iris/commands/core"
"github.com/versenilvis/iris/spec"
)
func init() {
core.Register(&core.Spec{
spec.Register(&spec.Spec{
Name: "lerna",
Description: "Branch",
Subcommands: []core.Subcommand{
Subcommands: []spec.Subcommand{
{Name: "*", Description: "Select all packages"},
{Name: "changed", Description: "Check which packages have changed since the last release"},
{Name: "run", Description: "Run an npm script in each package that contains that script"},
@@ -20,7 +20,7 @@ func init() {
{Name: "clean", Description: "Remove the node_modules directory from all packages"},
{Name: "create", Description: "Create a new lerna-managed package"},
},
Options: []core.Option{
Options: []spec.Option{
{Name: "--npm-client", Description: "The executable to run the script with"},
{Name: "--concurrency", Description: "Set a max buffer length for each underlying process call"},
{Name: "--no-progress", Description: "Disable progress bars. This is always the case in a CI environment"},
+4 -4
View File
@@ -1,14 +1,14 @@
package js
import (
"github.com/versenilvis/iris/commands/core"
"github.com/versenilvis/iris/spec"
)
func init() {
core.Register(&core.Spec{
spec.Register(&spec.Spec{
Name: "meteor",
Description: "Run the meteor command-line tool",
Subcommands: []core.Subcommand{
Subcommands: []spec.Subcommand{
{Name: "help", Description: "Get help on meteor command line usage"},
{Name: "command", Description: "Built-in command"},
{Name: "list", Description: "Lists the packages that you have explicitly added to your project"},
@@ -32,7 +32,7 @@ func init() {
{Name: "members", Description: "Manage members of an organization"},
{Name: "publish-for-arch", Description: "Publish a package for the same architecture that you are currently on"},
},
Options: []core.Option{
Options: []spec.Option{
{Name: "--port", Description: "Port to listen on (instead of the default 3000)"},
{Name: "--inspect", Description: "Simulate production mode. Minify and bundle CSS and JS files"},
{Name: "--raw-logs", Description: "Run without parsing logs from stdout and stderr"},
+3 -3
View File
@@ -1,14 +1,14 @@
package js
import (
"github.com/versenilvis/iris/commands/core"
"github.com/versenilvis/iris/spec"
)
func init() {
core.Register(&core.Spec{
spec.Register(&spec.Spec{
Name: "ncu",
Description: "Clear the default cache, or the cache file specified by --cacheFile",
Options: []core.Option{
Options: []spec.Option{
{Name: "--cache", Description: "Clear the default cache, or the cache file specified by --cacheFile"},
{Name: "--cacheExpiration", Description: "Cache expiration in minutes. Only works with --cache. (default: 10)"},
{Name: "--cacheFile", Description: "Force color in terminal"},
+4 -4
View File
@@ -1,14 +1,14 @@
package js
import (
"github.com/versenilvis/iris/commands/core"
"github.com/versenilvis/iris/spec"
)
func init() {
core.Register(&core.Spec{
spec.Register(&spec.Spec{
Name: "nest",
Description: "Report actions that would be taken without writing out results",
Subcommands: []core.Subcommand{
Subcommands: []spec.Subcommand{
{Name: "new", Description: "Creates a new nest project"},
{Name: "project", Description: "The name of the project"},
{Name: "generate", Description: "Generate and/or modifies files based on a schematic"},
@@ -37,7 +37,7 @@ func init() {
{Name: "info", Description: "Display Nest project details"},
{Name: "update", Description: "Update Nest dependencies"},
},
Options: []core.Option{
Options: []spec.Option{
{Name: "-d", Description: "Report actions that would be taken without writing out results"},
{Name: "-p", Description: "Project in which to generate files"},
{Name: "--flat", Description: "Enforce flat structure of generated element"},
+4 -4
View File
@@ -1,14 +1,14 @@
package js
import (
"github.com/versenilvis/iris/commands/core"
"github.com/versenilvis/iris/spec"
)
func init() {
core.Register(&core.Spec{
spec.Register(&spec.Spec{
Name: "next",
Description: "A port number on which to start the application",
Subcommands: []core.Subcommand{
Subcommands: []spec.Subcommand{
{Name: "build", Description: "Create an optimized production build of your application"},
{Name: "dev", Description: "Start the application in development mode"},
{Name: "start", Description: "Start the application in production mode"},
@@ -18,7 +18,7 @@ func init() {
{Name: "enable", Description: "Enable Next.js' telemetry collection"},
{Name: "disable", Description: "Disable Next.js' telemetry collection"},
},
Options: []core.Option{
Options: []spec.Option{
{Name: "-p", Description: "A port number on which to start the application"},
{Name: "-H", Description: "Hostname on which to start the application"},
{Name: "-h", Description: "Output usage information"},
+4 -4
View File
@@ -1,14 +1,14 @@
package js
import (
"github.com/versenilvis/iris/commands/core"
"github.com/versenilvis/iris/spec"
)
func init() {
core.Register(&core.Spec{
spec.Register(&spec.Spec{
Name: "ng",
Description: "Project name",
Subcommands: []core.Subcommand{
Subcommands: []spec.Subcommand{
{Name: "new", Description: "Create a new Angular app"},
{Name: "generate", Description: "Generate new files"},
{Name: "application", Description: "Generates a new application"},
@@ -18,7 +18,7 @@ func init() {
{Name: "class", Description: "Generates a class"},
{Name: "version", Description: "View your Angular CLI version (update for Angular 14+)"},
},
Options: []core.Option{
Options: []spec.Option{
{Name: "--project", Description: "Project name"},
{Name: "--create-application", Description: "Create a default application?"},
{Name: "--style", Description: "Generate a new component"},
+3 -3
View File
@@ -1,14 +1,14 @@
package js
import (
"github.com/versenilvis/iris/commands/core"
"github.com/versenilvis/iris/spec"
)
func init() {
core.Register(&core.Spec{
spec.Register(&spec.Spec{
Name: "node",
Description: "Run the node interpreter",
Options: []core.Option{
Options: []spec.Option{
{Name: "-e", Description: "Evaluate script"},
{Name: "--watch", Description: "Watch input files"},
{Name: "--watch-path", Description: "Specify a watch directory or file"},
+14 -14
View File
@@ -5,14 +5,14 @@ import (
"os"
"path/filepath"
"github.com/versenilvis/iris/commands/core"
"github.com/versenilvis/iris/spec"
)
func NpmScriptGenerator(tokens []string, _ string, _ string) []core.Suggestion {
cwd := core.GetCWD()
func NpmScriptGenerator(tokens []string, _ string, _ string) []spec.Suggestion {
cwd := spec.GetCWD()
data, err := os.ReadFile(filepath.Join(cwd, "package.json"))
if err != nil {
return []core.Suggestion{
return []spec.Suggestion{
{Cmd: "dev", Desc: "development server"},
{Cmd: "build", Desc: "build for production"},
{Cmd: "start", Desc: "start application"},
@@ -30,18 +30,18 @@ func NpmScriptGenerator(tokens []string, _ string, _ string) []core.Suggestion {
priority := []string{"dev", "start", "build", "test", "lint", "preview", "typecheck", "format"}
seen := make(map[string]bool)
var results []core.Suggestion
var results []spec.Suggestion
for _, name := range priority {
if cmd, ok := pkg.Scripts[name]; ok {
results = append(results, core.Suggestion{Cmd: name, Desc: cmd})
results = append(results, spec.Suggestion{Cmd: name, Desc: cmd})
seen[name] = true
}
}
for name, cmd := range pkg.Scripts {
if !seen[name] {
results = append(results, core.Suggestion{Cmd: name, Desc: cmd})
results = append(results, spec.Suggestion{Cmd: name, Desc: cmd})
}
}
@@ -49,36 +49,36 @@ func NpmScriptGenerator(tokens []string, _ string, _ string) []core.Suggestion {
}
func init() {
core.Register(&core.Spec{
spec.Register(&spec.Spec{
Name: "npm",
Description: "node packages",
Subcommands: []core.Subcommand{
{Name: "install", Description: "install packages", Options: []core.Option{
Subcommands: []spec.Subcommand{
{Name: "install", Description: "install packages", Options: []spec.Option{
{Name: "--save-dev", Description: "save as devDependency"},
{Name: "--save-exact", Description: "exact version"},
{Name: "--legacy-peer-deps", Description: "skip peer deps"},
}},
{Name: "run", Description: "run script", Generator: NpmScriptGenerator},
{Name: "test", Description: "run tests"},
{Name: "init", Description: "create package.json", Options: []core.Option{
{Name: "init", Description: "create package.json", Options: []spec.Option{
{Name: "-y", Description: "skip prompts"},
}},
{Name: "publish", Description: "publish package"},
{Name: "update", Description: "update packages"},
{Name: "uninstall", Description: "remove package"},
{Name: "ls", Description: "list installed"},
{Name: "audit", Description: "security audit", Options: []core.Option{
{Name: "audit", Description: "security audit", Options: []spec.Option{
{Name: "fix", Description: "auto fix"},
}},
{Name: "ci", Description: "clean install from lockfile"},
{Name: "pack", Description: "create tarball"},
{Name: "link", Description: "symlink package"},
{Name: "cache", Description: "manage cache", Subcommands: []core.Subcommand{
{Name: "cache", Description: "manage cache", Subcommands: []spec.Subcommand{
{Name: "clean", Description: "clear cache"},
{Name: "verify", Description: "verify cache"},
}},
},
Options: []core.Option{
Options: []spec.Option{
{Name: "--prefix", Description: "set working directory"},
},
})
+3 -3
View File
@@ -1,14 +1,14 @@
package js
import (
"github.com/versenilvis/iris/commands/core"
"github.com/versenilvis/iris/spec"
)
func init() {
core.Register(&core.Spec{
spec.Register(&spec.Spec{
Name: "npx",
Description: "Execute binaries from npm packages",
Options: []core.Option{
Options: []spec.Option{
{Name: "--package", Description: "Package to be installed"},
{Name: "--cache", Description: "Location of the npm cache"},
{Name: "--always-spawn", Description: "Always spawn a child process to execute the command"},
+3 -3
View File
@@ -1,14 +1,14 @@
package js
import (
"github.com/versenilvis/iris/commands/core"
"github.com/versenilvis/iris/spec"
)
func init() {
core.Register(&core.Spec{
spec.Register(&spec.Spec{
Name: "nuxi",
Description: "The directory of the target application",
Options: []core.Option{
Options: []spec.Option{
{Name: "--help", Description: "Show help"},
{Name: "--verbose", Description: "Log information about the installation process"},
{Name: "--template", Description: "Specify a Git repository to use as a template"},
+4 -4
View File
@@ -1,19 +1,19 @@
package js
import (
"github.com/versenilvis/iris/commands/core"
"github.com/versenilvis/iris/spec"
)
func init() {
core.Register(&core.Spec{
spec.Register(&spec.Spec{
Name: "nuxt",
Description: "Launch the development server",
Subcommands: []core.Subcommand{
Subcommands: []spec.Subcommand{
{Name: "dev", Description: "Launch the development server"},
{Name: "build", Description: "Build and optimize your application with webpack for production"},
{Name: "webpack", Description: "Inspect the webpack config"},
},
Options: []core.Option{
Options: []spec.Option{
{Name: "--name", Description: "Bundle name to inspect. (client, server, modern)"},
{Name: "--dev", Description: "Inspect webpack config for dev mode"},
{Name: "--depth", Description: "Inspection depth. Defaults to 2 to prevent verbose output"},
+4 -4
View File
@@ -1,14 +1,14 @@
package js
import (
"github.com/versenilvis/iris/commands/core"
"github.com/versenilvis/iris/spec"
)
func init() {
core.Register(&core.Spec{
spec.Register(&spec.Spec{
Name: "nx",
Description: "All projects",
Subcommands: []core.Subcommand{
Subcommands: []spec.Subcommand{
{Name: "init", Description: "Adds nx.json file and installs nx if not installed already"},
{Name: "daemon", Description: "Prints information about the Nx Daemon process or starts a daemon process"},
{Name: "graph", Description: "Graph dependencies within workspace"},
@@ -31,7 +31,7 @@ func init() {
{Name: "show", Description: "Show information about the workspace (e.g., list of projects)"},
{Name: "object", Description: "What to show (e.g., projects)"},
},
Options: []core.Option{
Options: []spec.Option{
{Name: "--all", Description: "All projects"},
{Name: "--base", Description: "Base of the current branch (usually main)"},
{Name: "--commitPrefix", Description: "Automatically create a git commit after each migration runs"},
+3 -3
View File
@@ -1,14 +1,14 @@
package js
import (
"github.com/versenilvis/iris/commands/core"
"github.com/versenilvis/iris/spec"
)
func init() {
core.Register(&core.Spec{
spec.Register(&spec.Spec{
Name: "oxlint",
Description: "All lints (except nursery)",
Options: []core.Option{
Options: []spec.Option{
{Name: "-c", Description: "Path to Oxlint JSON configuration file"},
{Name: "--tsconfig", Description: "Specify the file to use as your .eslintignore"},
{Name: "--ignore-pattern", Description: "Specify file patterns to ignore (in addition to those in .eslintignore)"},
+4 -4
View File
@@ -1,20 +1,20 @@
package js
import (
"github.com/versenilvis/iris/commands/core"
"github.com/versenilvis/iris/spec"
)
func init() {
core.Register(&core.Spec{
spec.Register(&spec.Spec{
Name: "playwright",
Description: "Display help for command",
Subcommands: []core.Subcommand{
Subcommands: []spec.Subcommand{
{Name: "test", Description: "Run tests with Playwright Test"},
{Name: "tests", Description: "Test files to run"},
{Name: "install", Description: "Running without arguments will install default browsers"},
{Name: "browsers", Description: "Browser to install"},
},
Options: []core.Option{
Options: []spec.Option{
{Name: "--help", Description: "Display help for command"},
{Name: "-g", Description: "Run the test with the title"},
{Name: "--headed", Description: "Run tests in headed browsers"},
+8 -8
View File
@@ -1,19 +1,19 @@
package js
import (
"github.com/versenilvis/iris/commands/core"
"github.com/versenilvis/iris/spec"
)
func init() {
core.Register(&core.Spec{
spec.Register(&spec.Spec{
Name: "pnpm",
Description: "fast node packages",
Subcommands: []core.Subcommand{
{Name: "install", Description: "install packages", Options: []core.Option{
Subcommands: []spec.Subcommand{
{Name: "install", Description: "install packages", Options: []spec.Option{
{Name: "--frozen-lockfile", Description: "no lockfile update"},
{Name: "--prod", Description: "production only"},
}},
{Name: "add", Description: "add package", Options: []core.Option{
{Name: "add", Description: "add package", Options: []spec.Option{
{Name: "-D", Description: "save as devDependency"},
{Name: "-g", Description: "install globally"},
{Name: "-E", Description: "exact version"},
@@ -23,11 +23,11 @@ func init() {
{Name: "build", Description: "build project"},
{Name: "dev", Description: "start dev server"},
{Name: "test", Description: "run tests"},
{Name: "update", Description: "update packages", Options: []core.Option{
{Name: "update", Description: "update packages", Options: []spec.Option{
{Name: "--latest", Description: "update to latest"},
{Name: "-i", Description: "interactive"},
}},
{Name: "store", Description: "manage store", Subcommands: []core.Subcommand{
{Name: "store", Description: "manage store", Subcommands: []spec.Subcommand{
{Name: "prune", Description: "remove unreferenced"},
{Name: "status", Description: "check store"},
{Name: "path", Description: "print store path"},
@@ -40,7 +40,7 @@ func init() {
{Name: "init", Description: "create package.json"},
{Name: "publish", Description: "publish package"},
},
Options: []core.Option{
Options: []spec.Option{
{Name: "--filter", Description: "filter by package"},
{Name: "-r", Description: "recursive"},
{Name: "--workspace-root", Description: "run in workspace root"},
+3 -3
View File
@@ -1,14 +1,14 @@
package js
import (
"github.com/versenilvis/iris/commands/core"
"github.com/versenilvis/iris/spec"
)
func init() {
core.Register(&core.Spec{
spec.Register(&spec.Spec{
Name: "pnpx",
Description: "Execute binaries from npm packages",
Options: []core.Option{
Options: []spec.Option{
{Name: "--package", Description: "Package to be executed"},
{Name: "--cache", Description: "Location of the npm cache"},
{Name: "--always-spawn", Description: "Always spawn a child process to execute the command"},
+3 -3
View File
@@ -1,14 +1,14 @@
package js
import (
"github.com/versenilvis/iris/commands/core"
"github.com/versenilvis/iris/spec"
)
func init() {
core.Register(&core.Spec{
spec.Register(&spec.Spec{
Name: "prettier",
Description: "Run Prettier from the command line",
Options: []core.Option{
Options: []spec.Option{
{Name: "-c", Description: "Check if your files are formatted"},
{Name: "-l", Description: "Print the names of files that are different from Prettier's formatting"},
{Name: "-w", Description: "Edit files in-place"},
+4 -4
View File
@@ -1,21 +1,21 @@
package js
import (
"github.com/versenilvis/iris/commands/core"
"github.com/versenilvis/iris/spec"
)
func init() {
core.Register(&core.Spec{
spec.Register(&spec.Spec{
Name: "quasar",
Description: "Quasar Framework CLI",
Subcommands: []core.Subcommand{
Subcommands: []spec.Subcommand{
{Name: "create", Description: "Create a new Quasar project"},
{Name: "project-name", Description: "Name of the project"},
{Name: "info", Description: "Gather environment information for issue reporting"},
{Name: "upgrade", Description: "Upgrade Quasar Framework packages"},
{Name: "serve", Description: "Start development server"},
},
Options: []core.Option{
Options: []spec.Option{
{Name: "-h", Description: "Output usage information"},
{Name: "--kit", Description: "Use specific starter kit"},
{Name: "--branch", Description: "Use specific branch of the starter kit"},
+3 -3
View File
@@ -1,14 +1,14 @@
package js
import (
"github.com/versenilvis/iris/commands/core"
"github.com/versenilvis/iris/spec"
)
func init() {
core.Register(&core.Spec{
spec.Register(&spec.Spec{
Name: "react-native",
Description: "Attempt to fix all diagnosed issues",
Options: []core.Option{
Options: []spec.Option{
{Name: "--fix", Description: "Attempt to fix all diagnosed issues"},
{Name: "--contributor", Description: "Output usage information"},
{Name: "--entry-file", Description: "Path to the root JS file, either absolute or relative to JS root"},
+4 -4
View File
@@ -1,14 +1,14 @@
package js
import (
"github.com/versenilvis/iris/commands/core"
"github.com/versenilvis/iris/spec"
)
func init() {
core.Register(&core.Spec{
spec.Register(&spec.Spec{
Name: "redwood",
Description: "Script",
Subcommands: []core.Subcommand{
Subcommands: []spec.Subcommand{
{Name: "side", Description: "Which side(s) to build"},
{Name: "api", Description: "Build the api server"},
{Name: "web", Description: "Build the web server"},
@@ -45,7 +45,7 @@ func init() {
{Name: "deploy", Description: "Setup auth configuration for a provider"},
{Name: "up", Description: "Executes outstanding data migrations"},
},
Options: []core.Option{
Options: []spec.Option{
{Name: "--forward", Description: "String of one or more Webpack Dev Server config options"},
{Name: "--side", Description: "Show help for command"},
{Name: "--build", Description: "Build (web) and Start (api) command for Render deploy"},
+4 -4
View File
@@ -1,20 +1,20 @@
package js
import (
"github.com/versenilvis/iris/commands/core"
"github.com/versenilvis/iris/spec"
)
func init() {
core.Register(&core.Spec{
spec.Register(&spec.Spec{
Name: "remix",
Description: "Represent the directory of the Remix application",
Subcommands: []core.Subcommand{
Subcommands: []spec.Subcommand{
{Name: "build", Description: "Create an optimized production build of your application"},
{Name: "dev", Description: "Start the application in development mode"},
{Name: "setup", Description: "Prepare node_modules/remix folder (after installation of packages)"},
{Name: "routes", Description: "Generate the route config of the application"},
},
Options: []core.Option{
Options: []spec.Option{
{Name: "--help", Description: "Output usage information"},
{Name: "-v", Description: "Output the version number"},
{Name: "--sourcemap", Description: "Enables production sourcemap"},
+4 -4
View File
@@ -1,14 +1,14 @@
package js
import (
"github.com/versenilvis/iris/commands/core"
"github.com/versenilvis/iris/spec"
)
func init() {
core.Register(&core.Spec{
spec.Register(&spec.Spec{
Name: "remotion",
Description: "Create videos programmatically in React",
Subcommands: []core.Subcommand{
Subcommands: []spec.Subcommand{
{Name: "versions", Description: "Prints and validates versions of all Remotion packages"},
{Name: "gpu", Description: "Prints information about how Chrome uses the GPU"},
{Name: "compositions", Description: "Prints the list of available compositions"},
@@ -50,7 +50,7 @@ func init() {
{Name: "benchmark", Description: "Try different render configurations and compare them"},
{Name: "install", Description: "Ensure Remotion dependencies"},
},
Options: []core.Option{
Options: []spec.Option{
{Name: "--props", Description: "Pass input props as filename or as JSON"},
{Name: "--env-file", Description: "Specify a location for a dotenv file"},
{Name: "--disable-headless", Description: "Run Chrome in normal mode rather than headless"},
+3 -3
View File
@@ -1,14 +1,14 @@
package js
import (
"github.com/versenilvis/iris/commands/core"
"github.com/versenilvis/iris/spec"
)
func init() {
core.Register(&core.Spec{
spec.Register(&spec.Spec{
Name: "rollup",
Description: "Next-generation ES module bundler",
Options: []core.Option{
Options: []spec.Option{
{Name: "-c", Description: "Directory for chunks (if absent, prints to stdout)"},
{Name: "-e", Description: "Comma-separate list of module IDs to exclude"},
{Name: "-f", Description: "Type of output (amd, cjs, es, iife, umd, system)"},
+4 -4
View File
@@ -1,14 +1,14 @@
package js
import (
"github.com/versenilvis/iris/commands/core"
"github.com/versenilvis/iris/spec"
)
func init() {
core.Register(&core.Spec{
spec.Register(&spec.Spec{
Name: "rome",
Description: "Rome CLI",
Subcommands: []core.Subcommand{
Subcommands: []spec.Subcommand{
{Name: "check", Description: "Run the linter on a set of files"},
{Name: "ci", Description: "Run the linter and formatter check on a set of files"},
{Name: "format", Description: "Run the formatter on a set of files"},
@@ -20,7 +20,7 @@ func init() {
{Name: "version", Description: "Shows the Rome version information and quit"},
{Name: "help", Description: "Prints help message"},
},
Options: []core.Option{
Options: []spec.Option{
{Name: "--colors", Description: "Set the formatting mode for markup"},
{Name: "--use-server", Description: "Connect to a running instance of the Rome daemon server"},
{Name: "--version", Description: "Show the Rome version information and quit"},
+4 -4
View File
@@ -1,14 +1,14 @@
package js
import (
"github.com/versenilvis/iris/commands/core"
"github.com/versenilvis/iris/spec"
)
func init() {
core.Register(&core.Spec{
spec.Register(&spec.Spec{
Name: "rush",
Description: "Projects",
Subcommands: []core.Subcommand{
Subcommands: []spec.Subcommand{
{Name: "add", Description: "Adds one or more dependencies to the package.json and runs rush update"},
{Name: "init", Description: "Initializes a new repository to be managed by Rush"},
{Name: "init-autoinstaller", Description: "Initializes a new autoinstaller"},
@@ -21,7 +21,7 @@ func init() {
{Name: "rebuild", Description: "Clean and rebuild the entire set of projects"},
{Name: "tab-complete", Description: "Provides tab completion"},
},
Options: []core.Option{
Options: []spec.Option{
{Name: "-t", Description: "Multi-Project Build Tool"},
{Name: "-p", Description: "Specify package to the dependencies of the current project"},
{Name: "--exact", Description: "If specified, the dependency will be added to all projects"},
+3 -3
View File
@@ -1,14 +1,14 @@
package js
import (
"github.com/versenilvis/iris/commands/core"
"github.com/versenilvis/iris/spec"
)
func init() {
core.Register(&core.Spec{
spec.Register(&spec.Spec{
Name: "sequelize",
Description: "The environment to run the command in",
Options: []core.Option{
Options: []spec.Option{
{Name: "--env", Description: "The environment to run the command in"},
{Name: "--config", Description: "The path to the config file"},
{Name: "--options-path", Description: "The path to a JSON file with additional options"},
+3 -3
View File
@@ -1,14 +1,14 @@
package js
import (
"github.com/versenilvis/iris/commands/core"
"github.com/versenilvis/iris/spec"
)
func init() {
core.Register(&core.Spec{
spec.Register(&spec.Spec{
Name: "serve",
Description: "Static file serving and directory listing",
Options: []core.Option{
Options: []spec.Option{
{Name: "-h", Description: "Shows help message"},
{Name: "-v", Description: "Displays the current version of serve"},
{Name: "-l", Description: "E.g. serve --listen 1234"},
+4 -4
View File
@@ -1,21 +1,21 @@
package js
import (
"github.com/versenilvis/iris/commands/core"
"github.com/versenilvis/iris/spec"
)
func init() {
core.Register(&core.Spec{
spec.Register(&spec.Spec{
Name: "shadcn-ui",
Description: "Shadcn UI CLI",
Subcommands: []core.Subcommand{
Subcommands: []spec.Subcommand{
{Name: "add", Description: "Add a component to your project"},
{Name: "components", Description: "The components to add"},
{Name: "diff", Description: "Check for updates against the registry"},
{Name: "component", Description: "The component name"},
{Name: "init", Description: "Initialize your project and install dependencies"},
},
Options: []core.Option{
Options: []spec.Option{
{Name: "-y", Description: "Skip confirmation prompt"},
{Name: "-o", Description: "Overwrite existing files"},
{Name: "-c", Description: "The working directory. defaults to the current directory"},
+3 -3
View File
@@ -1,14 +1,14 @@
package js
import (
"github.com/versenilvis/iris/commands/core"
"github.com/versenilvis/iris/spec"
)
func init() {
core.Register(&core.Spec{
spec.Register(&spec.Spec{
Name: "start-storybook",
Description: "Display usage information",
Options: []core.Option{
Options: []spec.Option{
{Name: "--help", Description: "Display usage information"},
{Name: "-V", Description: "Display the version number"},
{Name: "-s", Description: "Directory where to load static files from, comma-separated list"},
+4 -4
View File
@@ -1,14 +1,14 @@
package js
import (
"github.com/versenilvis/iris/commands/core"
"github.com/versenilvis/iris/spec"
)
func init() {
core.Register(&core.Spec{
spec.Register(&spec.Spec{
Name: "stencil",
Description: "CLI to build Stencil projects and generate components",
Subcommands: []core.Subcommand{
Subcommands: []spec.Subcommand{
{Name: "build", Description: "Build components for development or production"},
{Name: "workers", Description: "Number of workers"},
{Name: "test", Description: "Run unit and end-to-end tests"},
@@ -17,7 +17,7 @@ func init() {
{Name: "off", Description: "Disable sharing anonymous usage data"},
{Name: "on", Description: "Enable sharing anonymous usage data"},
},
Options: []core.Option{
Options: []spec.Option{
{Name: "--ci", Description: "Set stencil config file"},
{Name: "--debug", Description: "Set the log level to debug"},
{Name: "--dev", Description: "Development build"},
+3 -3
View File
@@ -1,14 +1,14 @@
package js
import (
"github.com/versenilvis/iris/commands/core"
"github.com/versenilvis/iris/spec"
)
func init() {
core.Register(&core.Spec{
spec.Register(&spec.Spec{
Name: "swagger-typescript-api",
Description: "Generate api via swagger scheme",
Options: []core.Option{
Options: []spec.Option{
{Name: "--output", Description: "Output path of generated templates"},
{Name: "--modular", Description: "Http client type"},
{Name: "--clean-output", Description: "Clean output folder before generate template"},
+3 -3
View File
@@ -1,14 +1,14 @@
package js
import (
"github.com/versenilvis/iris/commands/core"
"github.com/versenilvis/iris/spec"
)
func init() {
core.Register(&core.Spec{
spec.Register(&spec.Spec{
Name: "swc",
Description: "Path to the file",
Options: []core.Option{
Options: []spec.Option{
{Name: "--filename", Description: "Path to the file"},
{Name: "--config-file", Description: "Path to a .swcrc file to use"},
{Name: "--env-name", Description: "Whether or not to look up .swcrc files"},
+4 -4
View File
@@ -1,14 +1,14 @@
package js
import (
"github.com/versenilvis/iris/commands/core"
"github.com/versenilvis/iris/spec"
)
func init() {
core.Register(&core.Spec{
spec.Register(&spec.Spec{
Name: "truffle",
Description: "Execute build pipeline (if configuration present)",
Subcommands: []core.Subcommand{
Subcommands: []spec.Subcommand{
{Name: "build", Description: "Execute build pipeline (if configuration present)"},
{Name: "compile", Description: "Compile contract source files"},
{Name: "config", Description: "Set user-level configuration options"},
@@ -41,7 +41,7 @@ func init() {
{Name: "box_name", Description: "Name of the Truffle Box. (required)"},
{Name: "test", Description: "Run JavaScript and Solidity tests"},
},
Options: []core.Option{
Options: []spec.Option{
{Name: "--list", Description: "Compile all contracts instead of only the contracts changed since last compile"},
{Name: "--quiet", Description: "Suppress all compilation output"},
{Name: "--enable-analytics", Description: "Enable Truffle to send usage data to Google Analytics"},
+3 -3
View File
@@ -1,14 +1,14 @@
package js
import (
"github.com/versenilvis/iris/commands/core"
"github.com/versenilvis/iris/spec"
)
func init() {
core.Register(&core.Spec{
spec.Register(&spec.Spec{
Name: "ts-node",
Description: "Run the TypeScript interpreter for Node.JS",
Options: []core.Option{
Options: []spec.Option{
{Name: "--help", Description: "Show help for ts-node"},
{Name: "-v", Description: "Print version information of the ts-node module"},
{Name: "-e", Description: "Evaluate script"},
+3 -3
View File
@@ -1,14 +1,14 @@
package js
import (
"github.com/versenilvis/iris/commands/core"
"github.com/versenilvis/iris/spec"
)
func init() {
core.Register(&core.Spec{
spec.Register(&spec.Spec{
Name: "tsc",
Description: "CLI tool for TypeScript compiler",
Options: []core.Option{
Options: []spec.Option{
{Name: "--all", Description: "Show all compiler options"},
{Name: "--generateTrace", Description: "Generates an event trace and a list of types"},
{Name: "--help", Description: "Gives local information for help on the CLI"},
+4 -4
View File
@@ -1,17 +1,17 @@
package js
import (
"github.com/versenilvis/iris/commands/core"
"github.com/versenilvis/iris/spec"
)
func init() {
core.Register(&core.Spec{
spec.Register(&spec.Spec{
Name: "tsx",
Description: "Run TypeScript file using tsx",
Subcommands: []core.Subcommand{
Subcommands: []spec.Subcommand{
{Name: "watch", Description: "Run the script and watch for changes"},
},
Options: []core.Option{
Options: []spec.Option{
{Name: "--help", Description: "Show help for tsx"},
{Name: "--no-cache", Description: "Disable caching"},
{Name: "--clear-screen", Description: "Disable clearing the screen on rerun"},
+4 -4
View File
@@ -1,14 +1,14 @@
package js
import (
"github.com/versenilvis/iris/commands/core"
"github.com/versenilvis/iris/spec"
)
func init() {
core.Register(&core.Spec{
spec.Register(&spec.Spec{
Name: "turbo",
Description: "Print the version",
Subcommands: []core.Subcommand{
Subcommands: []spec.Subcommand{
{Name: "bin", Description: "Get the path to the turbo binary"},
{Name: "link", Description: "Link your local directory to a Vercel organization and enable remote caching"},
{Name: "login", Description: "Login to your Vercel account"},
@@ -20,7 +20,7 @@ func init() {
{Name: "full", Description: "Show all output"},
{Name: "none", Description: "Hide process output"},
},
Options: []core.Option{
Options: []spec.Option{
{Name: "--version", Description: "Print the version"},
{Name: "--help", Description: "Print a help message"},
{Name: "--no-gitignore", Description: "Do not create or modify .gitignore"},
+4 -4
View File
@@ -1,14 +1,14 @@
package js
import (
"github.com/versenilvis/iris/commands/core"
"github.com/versenilvis/iris/spec"
)
func init() {
core.Register(&core.Spec{
spec.Register(&spec.Spec{
Name: "typeorm",
Description: "Show help for command",
Subcommands: []core.Subcommand{
Subcommands: []spec.Subcommand{
{Name: "schema:sync", Description: "Synchronizes your entities with database schema"},
{Name: "schema:log", Description: "Shows sql to be executed by schema:sync command"},
{Name: "schema:drop", Description: "Drops all tables in the database on your default connection"},
@@ -24,7 +24,7 @@ func init() {
{Name: "cache:clear", Description: "Clears all data stored in query runner cache"},
{Name: "init", Description: "Generates initial TypeORM project structure"},
},
Options: []core.Option{
Options: []spec.Option{
{Name: "--help", Description: "Show help for command"},
{Name: "-v", Description: "Show the version"},
{Name: "-c", Description: "Name of the connection on which to run a query"},
+3 -3
View File
@@ -1,14 +1,14 @@
package js
import (
"github.com/versenilvis/iris/commands/core"
"github.com/versenilvis/iris/spec"
)
func init() {
core.Register(&core.Spec{
spec.Register(&spec.Spec{
Name: "vite",
Description: "Native ESM-powered web dev build tool",
Options: []core.Option{
Options: []spec.Option{
{Name: "-h", Description: "Show help message"},
{Name: "--host", Description: "Specify the hostname"},
{Name: "--port", Description: "Specify the port"},
+4 -4
View File
@@ -1,19 +1,19 @@
package js
import (
"github.com/versenilvis/iris/commands/core"
"github.com/versenilvis/iris/spec"
)
func init() {
core.Register(&core.Spec{
spec.Register(&spec.Spec{
Name: "vr",
Description: "The npm-style script runner for Deno",
Subcommands: []core.Subcommand{
Subcommands: []spec.Subcommand{
{Name: "run", Description: "Run a script"},
{Name: "export", Description: "Export one or more scripts as standalone executable files"},
{Name: "upgrade", Description: "Upgrade Velociraptor to the latest version or to a specific one"},
},
Options: []core.Option{
Options: []spec.Option{
{Name: "-o", Description: "The folder where the scripts will be exported"},
{Name: "--help", Description: "Show help for Velociraptor"},
{Name: "-V", Description: "Show the version number for Velociraptor"},
+4 -4
View File
@@ -1,14 +1,14 @@
package js
import (
"github.com/versenilvis/iris/commands/core"
"github.com/versenilvis/iris/spec"
)
func init() {
core.Register(&core.Spec{
spec.Register(&spec.Spec{
Name: "vsce",
Description: "The Visual Studio Code Extension Manager",
Subcommands: []core.Subcommand{
Subcommands: []spec.Subcommand{
{Name: "ls", Description: "Lists all the files that will be published"},
{Name: "package", Description: "Packages an extension"},
{Name: "publish", Description: "Publishes an extension"},
@@ -22,7 +22,7 @@ func init() {
{Name: "search", Description: "Search extension gallery"},
{Name: "help", Description: "Display help for command"},
},
Options: []core.Option{
Options: []spec.Option{
{Name: "--yarn", Description: "Use yarn instead of npm (default inferred from presence of yarn.lock or .yarnrc)"},
{Name: "--no-yarn", Description: "Use npm instead of yarn (default inferred from lack of yarn.lock or .yarnrc)"},
{Name: "--packagedDependencies", Description: "Select packages that should be published only (includes dependencies)"},
+4 -4
View File
@@ -1,14 +1,14 @@
package js
import (
"github.com/versenilvis/iris/commands/core"
"github.com/versenilvis/iris/spec"
)
func init() {
core.Register(&core.Spec{
spec.Register(&spec.Spec{
Name: "vue",
Description: "Vue cli tools",
Subcommands: []core.Subcommand{
Subcommands: []spec.Subcommand{
{Name: "create", Description: "Create a new project powered by vue-cli-service"},
{Name: "add", Description: "Install a plugin and invoke its generator in an already created project"},
{Name: "invoke", Description: "Invoke the generator of a plugin in an already created project"},
@@ -23,7 +23,7 @@ func init() {
{Name: "migrate", Description: "(experimental) run migrator for an already-installed cli plugin"},
{Name: "info", Description: "Print debugging information about your environment"},
},
Options: []core.Option{
Options: []spec.Option{
{Name: "-p", Description: "Skip prompts and use saved or remote preset"},
{Name: "-d", Description: "Skip prompts and use default preset"},
{Name: "-i", Description: "Skip prompts and use inline JSON string as preset"},
+4 -4
View File
@@ -1,14 +1,14 @@
package js
import (
"github.com/versenilvis/iris/commands/core"
"github.com/versenilvis/iris/spec"
)
func init() {
core.Register(&core.Spec{
spec.Register(&spec.Spec{
Name: "watchman",
Description: "A file watching service",
Subcommands: []core.Subcommand{
Subcommands: []spec.Subcommand{
{Name: "clock", Description: "Returns the current clock value for a watched root"},
{Name: "path", Description: "The path to directory"},
{Name: "find", Description: "Finds all files that match the optional list of patterns under the specified dir"},
@@ -32,7 +32,7 @@ func init() {
{Name: "watch-list", Description: "Returns a list of watched dirs"},
{Name: "watch-project", Description: "Requests that the project containing the requested dir is watched for changes"},
},
Options: []core.Option{
Options: []spec.Option{
{Name: "--help", Description: "Show help for watchman"},
{Name: "--inetd", Description: "Spawning from an inetd style supervisor"},
{Name: "-S", Description: "Don't use the site or system spawner"},
+4 -4
View File
@@ -1,14 +1,14 @@
package js
import (
"github.com/versenilvis/iris/commands/core"
"github.com/versenilvis/iris/spec"
)
func init() {
core.Register(&core.Spec{
spec.Register(&spec.Spec{
Name: "webpack",
Description: "Run webpack (default command, can be omitted)",
Subcommands: []core.Subcommand{
Subcommands: []spec.Subcommand{
{Name: "build", Description: "Run webpack (default command, can be omitted)"},
{Name: "configtest", Description: "Validate a webpack configuration"},
{Name: "config-path", Description: "Path to the webpack configuration file"},
@@ -20,7 +20,7 @@ func init() {
{Name: "serve", Description: "Run the webpack development server"},
{Name: "watch", Description: "Run webpack and watch for file changes"},
},
Options: []core.Option{
Options: []spec.Option{
{Name: "--config", Description: "Provide path to a webpack configuration file e.g. ./webpack.config.js"},
{Name: "--config-name", Description: "Name of the configuration to use"},
{Name: "--merge", Description: "Merge two or more configurations using 'webpack-merge'"},
+4 -4
View File
@@ -1,14 +1,14 @@
package js
import (
"github.com/versenilvis/iris/commands/core"
"github.com/versenilvis/iris/spec"
)
func init() {
core.Register(&core.Spec{
spec.Register(&spec.Spec{
Name: "yalc",
Description: "Work with yarn/npm packages locally like a boss",
Subcommands: []core.Subcommand{
Subcommands: []spec.Subcommand{
{Name: "publish", Description: "Copy all the files that should be published in remote NPM registry"},
{Name: "add", Description: "Copy the current version from the store to your project"},
{Name: "package", Description: "The package you want to add"},
@@ -22,7 +22,7 @@ func init() {
{Name: "restore", Description: "Restore retreated packages"},
{Name: "retreat", Description: "Remove packages from project, but leave in lock file (to be restored later)"},
},
Options: []core.Option{
Options: []spec.Option{
{Name: "--push", Description: "Publish without running scripts"},
{Name: "--no-sig", Description: "Disable adding hash signature of all files when copying package content"},
{Name: "--content", Description: "Show included files in the published package"},
+10 -10
View File
@@ -1,19 +1,19 @@
package js
import (
"github.com/versenilvis/iris/commands/core"
"github.com/versenilvis/iris/spec"
)
func init() {
core.Register(&core.Spec{
spec.Register(&spec.Spec{
Name: "yarn",
Description: "yarn package manager",
Subcommands: []core.Subcommand{
{Name: "install", Description: "install packages", Options: []core.Option{
Subcommands: []spec.Subcommand{
{Name: "install", Description: "install packages", Options: []spec.Option{
{Name: "--frozen-lockfile", Description: "error on lockfile change"},
{Name: "--production", Description: "production only"},
}},
{Name: "add", Description: "add package", Options: []core.Option{
{Name: "add", Description: "add package", Options: []spec.Option{
{Name: "-D", Description: "dev dependency"},
{Name: "-P", Description: "peer dependency"},
{Name: "-E", Description: "exact version"},
@@ -24,30 +24,30 @@ func init() {
{Name: "build", Description: "build project"},
{Name: "dev", Description: "start dev server"},
{Name: "test", Description: "run tests"},
{Name: "upgrade", Description: "upgrade packages", Options: []core.Option{
{Name: "upgrade", Description: "upgrade packages", Options: []spec.Option{
{Name: "--latest", Description: "upgrade to latest"},
{Name: "-i", Description: "interactive"},
}},
{Name: "workspace", Description: "run command in workspace"},
{Name: "workspaces", Description: "list workspaces", Subcommands: []core.Subcommand{
{Name: "workspaces", Description: "list workspaces", Subcommands: []spec.Subcommand{
{Name: "info", Description: "workspace info"},
{Name: "run", Description: "run in all workspaces"},
}},
{Name: "link", Description: "symlink package"},
{Name: "unlink", Description: "unlink package"},
{Name: "audit", Description: "security audit"},
{Name: "cache", Description: "manage cache", Subcommands: []core.Subcommand{
{Name: "cache", Description: "manage cache", Subcommands: []spec.Subcommand{
{Name: "clean", Description: "clear cache"},
{Name: "list", Description: "list cache"},
{Name: "dir", Description: "print cache dir"},
}},
{Name: "init", Description: "create package.json", Options: []core.Option{
{Name: "init", Description: "create package.json", Options: []spec.Option{
{Name: "-2", Description: "berry (v2+)"},
}},
{Name: "publish", Description: "publish package"},
{Name: "info", Description: "show package info"},
},
Options: []core.Option{
Options: []spec.Option{
{Name: "--cwd", Description: "working directory"},
{Name: "--verbose", Description: "verbose output"},
},