feat(commands): more commands (#30)

- I wrote a scripts to copy and generate all commands missing in iris
from fig repo: https://github.com/withfig/autocomplete
- Add a new script to generate commands docs about which commands
currently are inside commands folder
377d4aac663590e504fe39a92eb4dac4cbd333b2
- Add more icons e64d4e70a1db61e62053460a882e093bd6373ab1
This commit is contained in:
VERSE
2026-07-04 22:08:36 +07:00
committed by GitHub
parent ffa336196a
commit 2ef3c90819
482 changed files with 22971 additions and 5 deletions
+38
View File
@@ -0,0 +1,38 @@
package python
import (
"github.com/versenilvis/iris/commands/core"
)
func init() {
core.Register(&core.Spec{
Name: "black",
Description: "Version",
Options: []core.Option{
{Name: "--code", Description: "Format the code passed in as a string"},
{Name: "--line-length", Description: "How many characters per line to allow"},
{Name: "--target-version", Description: "Python versions that should be supported"},
{Name: "--pyi", Description: "Format all input files regardless of file extension"},
{Name: "--ipynb", Description: "Format all input files like Jupyter Notebooks regardless of file extension"},
{Name: "--python-cell-magics", Description: "Add the given magic to the list of known python-magics"},
{Name: "--skip-string-normalization", Description: "Don't normalize string quotes or prefixes"},
{Name: "--skip-magic-trailing-comma", Description: "Don't use trailing commas as a reason to split lines"},
{Name: "--preview", Description: "Enable potentially disruptive style changes"},
{Name: "--check", Description: "Don't write the files back, just return the status"},
{Name: "--diff", Description: "Don't write the files back, just output a diff for each file on stdout"},
{Name: "--color", Description: "Show colored diff"},
{Name: "--no-color", Description: "Show uncolored diff"},
{Name: "--fast", Description: "Skip temporary sanity checks"},
{Name: "--safe", Description: "Run temporary sanity checks"},
{Name: "--required-version", Description: "Require a specific version of Black"},
{Name: "--include", Description: "Additional exclusions"},
{Name: "--force-exclude", Description: "Exclude matching files and folders even when passed explicitly"},
{Name: "--stdin-filename", Description: "The name of the file when passing it through stdin"},
{Name: "--workers", Description: "Number of parallel workers"},
{Name: "--quiet", Description: "Don't emit non-error messages to stderr"},
{Name: "--verbose", Description: "Show the version"},
{Name: "--config", Description: "Read configuration from filepath"},
{Name: "--help", Description: "Show usage information"},
},
})
}
+78
View File
@@ -0,0 +1,78 @@
package python
import (
"github.com/versenilvis/iris/commands/core"
)
func init() {
core.Register(&core.Spec{
Name: "conda",
Description: "Name of environment",
Subcommands: []core.Subcommand{
{Name: "activate", Description: "Activate an environment"},
{Name: "deactivate", Description: "Deactivate an environment"},
{Name: "clean", Description: "Remove unused packages and caches"},
{Name: "compare", Description: "Compare packages between conda environments"},
{Name: "file", Description: "Path to the environment file that is to be compared against"},
{Name: "create", Description: "Create a new conda environment from a list of specified packages"},
{Name: "package_spec", Description: "Packages to install or update in the conda environment"},
{Name: "help", Description: "Displays a list of available conda commands and their help strings"},
{Name: "info", Description: "Display information about current conda install"},
{Name: "init", Description: "Initialize conda for shell interaction. [Experimental]"},
{Name: "install", Description: "Installs a list of packages into a specified conda environment"},
{Name: "package spec", Description: "Packages to install or update in the conda environment"},
{Name: "list", Description: "List linked packages in a conda environment"},
{Name: "regex", Description: "List only packages matching this regular expression"},
{Name: "package", Description: "Low-level conda package utility. (EXPERIMENTAL)"},
{Name: "remove", Description: "Remove a list of packages from a specified conda environment"},
{Name: "uninstall", Description: "Alias for conda remove"},
{Name: "run", Description: "Run an executable in a conda environment. [Experimental]"},
{Name: "update", Description: "Updates conda packages to the latest compatible version"},
{Name: "conda", Description: "Update conda"},
{Name: "upgrade", Description: "Alias for conda update"},
{Name: "files", Description: "Package files to convert"},
},
Options: []core.Option{
{Name: "-n", Description: "Name of environment"},
{Name: "-p", Description: "Full path to environment location (i.e. prefix)"},
{Name: "--dev", Description: "Use locally built packages. Identical to '-c local'"},
{Name: "--override-channels", Description: "Do not search default or .condarc channels. Requires --channel"},
{Name: "--repodata-fn", Description: "Remove all packages, i.e., the entire environment"},
{Name: "--features", Description: "Remove features (instead of packages)"},
{Name: "--force-remove", Description: "Ignore pinned file"},
{Name: "-C", Description: "Use cache of channel index files, even if it has expired"},
{Name: "-k", Description: "Offline mode. Don't connect to the Internet"},
{Name: "-d", Description: "Only display what would have been done"},
{Name: "--json", Description: "Report all output as json. Suitable for using conda programmatically"},
{Name: "-q", Description: "Do not display progress bar"},
{Name: "-v", Description: "Do not ask for confirmation"},
{Name: "--file", Description: "Use locally built packages. Identical to '-c local'"},
{Name: "--no-pin", Description: "Ignore pinned file"},
{Name: "--force-reinstall", Description: "Do not update or change already-installed dependencies"},
{Name: "--update-deps", Description: "Update dependencies"},
{Name: "-S", Description: "Update all installed packages in the environment"},
{Name: "--update-specs", Description: "Update based on provided specifications"},
{Name: "--copy", Description: "Install all packages using copies instead of hard- or soft-linking"},
{Name: "--clobber", Description: "Use cache of channel index files, even if it has expired"},
{Name: "--download-only", Description: "Conda package manager"},
{Name: "--stack", Description: "Stack the environment being activated on top of the previous active environment"},
{Name: "--no-stack", Description: "Do not stack the environment. Overrides 'auto_stack' setting"},
{Name: "-a", Description: "Remove index cache, lock files, unused cache packages, and tarballs"},
{Name: "-i", Description: "Remove index cache"},
{Name: "-t", Description: "Remove cached package tarballs"},
{Name: "-f", Description: "Remove all writable package caches"},
{Name: "-c", Description: "Only display what would have been done"},
{Name: "-h", Description: "Show this help message and exit"},
{Name: "--system", Description: "Write to the given file"},
{Name: "--show", Description: "Display all identified configuration sources"},
{Name: "--validate", Description: "Validate all configuration sources"},
{Name: "--describe", Description: "Get a configuration value"},
{Name: "--append", Description: "Add one configuration value to the end of a list key"},
{Name: "--prepend", Description: "Add one configuration value to the beginning of a list key"},
{Name: "--set", Description: "Set a boolean or string key"},
{Name: "--remove", Description: "Remove a configuration key (and all its values)"},
{Name: "--stdin", Description: "Apply configuration information given in yaml format piped through stdin"},
{Name: "--clone", Description: "Path to (or name of) existing local environment"},
},
})
}
+57
View File
@@ -0,0 +1,57 @@
package python
import (
"github.com/versenilvis/iris/commands/core"
)
func init() {
core.Register(&core.Spec{
Name: "django-admin",
Description: "Show this help message and exit",
Subcommands: []core.Subcommand{
{Name: "help", Description: "Usage and help information for django-admin"},
},
Options: []core.Option{
{Name: "-h", Description: "Show this help message and exit"},
{Name: "--version", Description: "Show program's version number and exit"},
{Name: "-v", Description: "Raise on CommandError exceptions"},
{Name: "--no-color", Description: "Don't colorize the command output"},
{Name: "--force-color", Description: "Force colorization of the command output"},
{Name: "--database", Description: "Change a user's password for django.contrib.auth"},
{Name: "--username", Description: "Specifies the login for the superuser"},
{Name: "--noinput", Description: "Tells Django to NOT prompt the user for input of any kind"},
{Name: "--skip-checks", Description: "Skip system checks"},
{Name: "--tag", Description: "Run only checks labeled with given tag"},
{Name: "--list-tags", Description: "List available tags"},
{Name: "--deploy", Description: "Check deployment settings"},
{Name: "--fail-level", Description: "Run database related checks against these aliases"},
{Name: "--locale", Description: "Locales to exclude. Default is none. Can be used multiple times"},
{Name: "--use-fuzzy", Description: "Use fuzzy translations"},
{Name: "--ignore", Description: "Compiles .po files to .mo files for use with builtin gettext support"},
{Name: "--all", Description: "Specifies the output serialization format for fixtures"},
{Name: "--indent", Description: "Specifies the indent level to use when pretty-printing output"},
{Name: "--natural-primary", Description: "Use natural primary keys if they are available"},
{Name: "-a", Description: "Specifies file to which the output is written"},
{Name: "--include-views", Description: "Also output models for database views"},
{Name: "--ignorenonexistent", Description: "An app_label or app_label.ModelName to exclude. Can be used multiple times"},
{Name: "--format", Description: "Format of serialized data when reading from stdin"},
{Name: "--domain", Description: "Updates the message files for all existing locales"},
{Name: "--extension", Description: "Don't ignore the common glob-style patterns 'CVS', '.*', '*~' and '*.pyc'"},
{Name: "--no-wrap", Description: "Don't break long message lines into several lines"},
{Name: "--no-location", Description: "Don't write '#: filename:line' lines"},
{Name: "--add-location", Description: "The lines include both file name and line number"},
{Name: "--no-obsolete", Description: "Remove obsolete message strings"},
{Name: "--keep-pot", Description: "Keep .pot file after making messages. Useful when debugging"},
{Name: "--dry-run", Description: "Just show what migrations would be made; don't actually write them"},
{Name: "--merge", Description: "Enable fixing of migration conflicts"},
{Name: "--empty", Description: "Create an empty migration"},
{Name: "-n", Description: "Use this name for migration file(s)"},
{Name: "--no-header", Description: "Do not add header comments to new migration file(s)"},
{Name: "--check", Description: "Exit with a non-zero status if model changes are missing migrations"},
{Name: "--fake-initial", Description: "Shows a list of the migration actions that will be performed"},
{Name: "--run-syncdb", Description: "Creates tables for apps without migrations"},
{Name: "--managers", Description: "Send a test email to the addresses specified in settings.MANAGERS"},
{Name: "--admins", Description: "Send a test email to the addresses specified in settings.ADMINS"},
},
})
}
+43
View File
@@ -0,0 +1,43 @@
package python
import (
"github.com/versenilvis/iris/commands/core"
)
func init() {
core.Register(&core.Spec{
Name: "googler",
Description: "Google from the command-line",
Options: []core.Option{
{Name: "-h", Description: "Show this help message and exit"},
{Name: "-s", Description: "Start at the Nth result"},
{Name: "-n", Description: "Show N results"},
{Name: "-N", Description: "Show results from news section"},
{Name: "-V", Description: "Show results from videos section"},
{Name: "-c", Description: "Country-specific search with top-level domain .TLD, e.g., 'in' for India"},
{Name: "-l", Description: "Display in language"},
{Name: "-g", Description: "Country-specific geolocation search with country code CC, e.g. 'in' for India"},
{Name: "-x", Description: "Disable automatic spelling correction"},
{Name: "--colorize", Description: "Whether to colorize output which enables color when stdout is a tty device"},
{Name: "-C", Description: "Equivalent to --colorize=never"},
{Name: "--colors", Description: "Set output colors"},
{Name: "-j", Description: "Open the first result in web browser and exit"},
{Name: "-t", Description: "American date format with slashes, e.g., 2/24/2020, 2/2020, 2020"},
{Name: "--to", Description: "Ending date/month/year of date range"},
{Name: "-w", Description: "Search a site using Google"},
{Name: "-e", Description: "Exclude site from results"},
{Name: "--unfilter", Description: "Do not omit similar results"},
{Name: "-p", Description: "Tunnel traffic through an HTTP proxy"},
{Name: "--notweak", Description: "Disable TCP optimizations and forced TLS 1.2"},
{Name: "--json", Description: "Output in JSON format; implies --noprompt"},
{Name: "--url-handler", Description: "Custom script or cli utility to open results"},
{Name: "--show-browser-logs", Description: "Do not suppress browser output (stdout and stderr)"},
{Name: "--np", Description: "Search and exit, do not prompt"},
{Name: "-4", Description: "Only connect over IPv6"},
{Name: "-u", Description: "Perform in-place self-upgrade"},
{Name: "--include-git", Description: "When used with --upgrade, get latest git master"},
{Name: "-v", Description: "Show program's version number and exit"},
{Name: "-d", Description: "Enable debugging"},
},
})
}
+50
View File
@@ -0,0 +1,50 @@
package python
import (
"github.com/versenilvis/iris/commands/core"
)
func init() {
core.Register(&core.Spec{
Name: "jupyter",
Description: "Set log level to logging.DEBUG (maximize logging output)",
Subcommands: []core.Subcommand{
{Name: "bundlerextension", Description: "Work with Jupyter bundler extensions"},
{Name: "enable", Description: "Enable a bundler extension"},
{Name: "disable", Description: "Disable a bundler extension"},
{Name: "list", Description: "List bundler extensions"},
{Name: "kernel", Description: "Run a kernel locally in a subprocess"},
{Name: "kernelspec", Description: "Manage Jupyter kernel specifications"},
{Name: "install", Description: "Install a kernel specification directory"},
{Name: "uninstall", Description: "Alias for remove"},
{Name: "remove", Description: "Remove one or more Jupyter kernelspecs by name"},
{Name: "migrate", Description: "Migrate configuration and data from .ipython prior to 4.0 to Jupyter locations"},
{Name: "notebook", Description: "Run the Jupyter notebook server"},
{Name: "stop", Description: "Stop currently running notebook server"},
{Name: "password", Description: "Set a password for the notebook server"},
{Name: "run", Description: "Run a notebook"},
{Name: "serverextension", Description: "Manage server extensions"},
{Name: "troubleshoot", Description: "Log for troubleshooting"},
{Name: "trust", Description: "Manage trust"},
},
Options: []core.Option{
{Name: "--debug", Description: "Set log level to logging.DEBUG (maximize logging output)"},
{Name: "-h", Description: "Show this message"},
{Name: "--log-level", Description: "Set the log level by value or name"},
{Name: "--config", Description: "Choose a config file"},
{Name: "--user", Description: "Apply the operation only for the given user"},
{Name: "--system", Description: "Apply the operation system-wide"},
{Name: "--sys-prefix", Description: "Install from a Python package"},
{Name: "--kernel", Description: "Manage Jupyter kernel specifications"},
{Name: "--json", Description: "Output spec name and location as json"},
{Name: "--generate-config", Description: "Generate default config file"},
{Name: "-y", Description: "Answer yes to any questions instead of prompting"},
{Name: "--help", Description: "Show help for jupyter"},
{Name: "--version", Description: "Show the jupyter command's version and exit"},
{Name: "--config-dir", Description: "Show Jupyter config dir"},
{Name: "--data-dir", Description: "Show Jupyter data dir"},
{Name: "--runtime-dir", Description: "Show Jupyter runtime dir"},
{Name: "--paths", Description: "Show all Jupyter paths. Add --json for machine-readable format"},
},
})
}
+83
View File
@@ -0,0 +1,83 @@
package python
import (
"github.com/versenilvis/iris/commands/core"
)
func init() {
core.Register(&core.Spec{
Name: "mamba",
Description: "Mamba is a fast, robust, and cross-platform package manager",
Subcommands: []core.Subcommand{
{Name: "activate", Description: "Activate an environment"},
{Name: "deactivate", Description: "Deactivate an environment"},
{Name: "clean", Description: "Remove unused packages and caches"},
{Name: "compare", Description: "Compare packages between conda environments"},
{Name: "file", Description: "Path to the environment file that is to be compared against"},
{Name: "create", Description: "Create a new conda environment from a list of specified packages"},
{Name: "package_spec", Description: "Packages to install or update in the conda environment"},
{Name: "info", Description: "Display information about current conda install"},
{Name: "init", Description: "Initialize conda for shell interaction. [Experimental]"},
{Name: "install", Description: "Installs a list of packages into a specified conda environment"},
{Name: "package spec", Description: "Packages to install or update in the conda environment"},
{Name: "list", Description: "List linked packages in a conda environment"},
{Name: "regex", Description: "List only packages matching this regular expression"},
{Name: "package", Description: "Low-level conda package utility. (EXPERIMENTAL)"},
{Name: "remove", Description: "Remove a list of packages from a specified conda environment"},
{Name: "uninstall", Description: "Alias for remove"},
{Name: "run", Description: "Run an executable in a conda environment"},
{Name: "update", Description: "Updates conda packages to the latest compatible version"},
{Name: "mamba", Description: "Update mamba"},
{Name: "upgrade", Description: "Alias for update"},
{Name: "repoquery", Description: "Query repositories using mamba"},
{Name: "xtensor>=0.18", Description: "Search for xtensor version which is more than 0.18"},
{Name: "depends", Description: "List dependencies for a package"},
{Name: "xtensor", Description: "List dependencies for xtensor package"},
{Name: "whoneeds", Description: "List packages that require a given package"},
{Name: "xtl", Description: "List packages that require xtl package"},
{Name: "env", Description: "Manage environments"},
},
Options: []core.Option{
{Name: "-n", Description: "Name of environment"},
{Name: "-p", Description: "Full path to environment location (i.e. prefix)"},
{Name: "--file", Description: "Use locally built packages. Identical to '-c local'"},
{Name: "--override-channels", Description: "Do not search default or .condarc channels. Requires --channel"},
{Name: "--repodata-fn", Description: "Only install dependencies"},
{Name: "--no-pin", Description: "Ignore pinned file"},
{Name: "--force-reinstall", Description: "Do not update or change already-installed dependencies"},
{Name: "--update-deps", Description: "Update dependencies"},
{Name: "-S", Description: "Update all installed packages in the environment"},
{Name: "--update-specs", Description: "Update based on provided specifications"},
{Name: "--copy", Description: "Install all packages using copies instead of hard- or soft-linking"},
{Name: "--clobber", Description: "Use cache of channel index files, even if it has expired"},
{Name: "-k", Description: "Offline mode. Don't connect to the Internet"},
{Name: "-d", Description: "Only display what would have been done"},
{Name: "--json", Description: "Report all output as json. Suitable for using conda programmatically"},
{Name: "-q", Description: "Do not display progress bar"},
{Name: "-v", Description: "Do not ask for confirmation"},
{Name: "--download-only", Description: "Use locally built packages. Identical to '-c local'"},
{Name: "--features", Description: "Remove features (instead of packages)"},
{Name: "--force-remove", Description: "Ignore pinned file"},
{Name: "-C", Description: "Use cache of channel index files, even if it has expired"},
{Name: "-c", Description: "Use locally built packages. Identical to '-c local'"},
{Name: "--stack", Description: "Stack the environment being activated on top of the previous active environment"},
{Name: "--no-stack", Description: "Do not stack the environment. Overrides 'auto_stack' setting"},
{Name: "-a", Description: "Remove index cache, lock files, unused cache packages, and tarballs"},
{Name: "-i", Description: "Remove index cache"},
{Name: "-t", Description: "Remove cached package tarballs"},
{Name: "-f", Description: "Remove all writable package caches"},
{Name: "-l", Description: "Remove log files"},
{Name: "--locks", Description: "Remove lock files"},
{Name: "-h", Description: "Show this help message and exit"},
{Name: "--clone", Description: "Path to (or name of) existing local environment"},
{Name: "--no-default-packages", Description: "Ignore create_default_packages in the .condarc file"},
{Name: "--base", Description: "Display base environment path"},
{Name: "-e", Description: "List all known conda environments"},
{Name: "-s", Description: "List environment variables"},
{Name: "--unsafe-channels", Description: "Display list of channels with tokens exposed"},
{Name: "--revision", Description: "Revert to the specified REVISION"},
{Name: "-m", Description: "Create the environment directory if necessary"},
{Name: "--show-channel-urls", Description: "Output canonical names of packages only. Implies --no-pip"},
},
})
}
+50
View File
@@ -0,0 +1,50 @@
package python
import (
"github.com/versenilvis/iris/commands/core"
)
func init() {
core.Register(&core.Spec{
Name: "mypy",
Description: "Mypy is a static type checker for Python",
Options: []core.Option{
{Name: "--module", Description: "Asks mypy to type check the provided module"},
{Name: "--package", Description: "Asks mypy to type check the provided package"},
{Name: "--command", Description: "Asks mypy to type check the provided string as a program"},
{Name: "--exclude", Description: "Show help message and exit"},
{Name: "--verbose", Description: "More verbose messages"},
{Name: "--version", Description: "Show program's version number and exit"},
{Name: "--config-file", Description: "This flag makes mypy read configuration settings from the given file"},
{Name: "--warn-unused-configs", Description: "This flag makes mypy warn about unused [mypy-<pattern>] config file sections"},
{Name: "--explicit-package-bases", Description: "This flag makes mypy ignore all missing imports"},
{Name: "--python-executable", Description: "This flag will disable searching for PEP561 compliant packages"},
{Name: "--no-silence-site-packages", Description: "This flag disables import discovery of namespace packages (see PEP420)"},
{Name: "--python-version", Description: "This flag disallows all expressions in the module that have type Any"},
{Name: "--disallow-any-decorated", Description: "This flag reports an error whenever a class subclasses a value of type Any"},
{Name: "--disallow-untyped-calls", Description: "This flag disables strict checking of pydata~typing"},
{Name: "--warn-redundant-casts", Description: "By default, mypy won't allow a variable to be redefined with an unrelated type"},
{Name: "--local-partial-types", Description: "By default, mypy allows always-false comparisons like 42 == 'no'"},
{Name: "--extra-checks", Description: "This flag mode enables all optional error checking flags"},
{Name: "--disable-error-code", Description: "This flag allows disabling one or multiple error codes globally"},
{Name: "--enable-error-code", Description: "This flag allows enabling one or multiple error codes globally"},
{Name: "--show-error-context", Description: "This flag will add column offsets to error messages"},
{Name: "--show-error-end", Description: "This flag will hide the error code [<code>] from error messages"},
{Name: "--pretty", Description: "This flag will disable color output in error messages, enabled by default"},
{Name: "--no-error-summary", Description: "This flag will disable error summary"},
{Name: "--show-absolute-path", Description: "Show absolute paths to files"},
{Name: "--soft-error-limit", Description: "By default, mypy stores all cache data inside of a folder named"},
{Name: "--sqlite-cache", Description: "Use an SQLite_ database to store the cache"},
{Name: "--cache-fine-grained", Description: "Include fine-grained dependency information in the cache for the mypy daemon"},
{Name: "--skip-version-check", Description: "By default, mypy will ignore cache data generated by a different version of mypy"},
{Name: "--skip-cache-mtime-checks", Description: "Skip cache internal consistency checks based on mtime"},
{Name: "--pdb", Description: "This flag will invoke the Python debugger when mypy encounters a fatal error"},
{Name: "--tb", Description: "Raise exception on fatal error"},
{Name: "--custom-typing-module", Description: "Causes mypy to generate a Cobertura XML type checking coverage report"},
{Name: "--html-report", Description: "Causes mypy to generate an HTML type checking coverage report"},
{Name: "--linecount-report", Description: "Causes mypy to generate a text file type checking coverage report"},
{Name: "--xml-report", Description: "Causes mypy to generate an XML type checking coverage report"},
{Name: "--install-types", Description: "This flag will give command line arguments that appear to be scripts"},
},
})
}
+69
View File
@@ -0,0 +1,69 @@
package python
import (
"github.com/versenilvis/iris/commands/core"
)
func init() {
core.Register(&core.Spec{
Name: "pipenv",
Description: "Python package manager",
Subcommands: []core.Subcommand{
{Name: "clean", Description: "Uninstalls all packages not specified in Pipfile.lock"},
{Name: "graph", Description: "Displays currently-installed dependency graph information"},
{Name: "install", Description: "Initializes a package manager or installs all packages from Pipfile"},
{Name: "package", Description: "Package to install"},
{Name: "lock", Description: "Generates Pipfile.lock"},
{Name: "> requirements.txt", Description: "Write packages into requirements.txt"},
{Name: "open", Description: "View a given module in your editor"},
{Name: "run", Description: "Spawns a command installed into the virtualenv"},
{Name: "scripts", Description: "Lists scripts in current environment config"},
{Name: "shell", Description: "Start a shell within the environment"},
{Name: "sync", Description: "Installs all packages specified in Pipfile.lock"},
{Name: "uninstall", Description: "Uninstalls a provided package and removes it from Pipfile"},
{Name: "update", Description: "Runs lock, then sync"},
},
Options: []core.Option{
{Name: "--unused", Description: "Given a code path, show potentially unused dependencies"},
{Name: "--db", Description: "Ignore specified vulnerability during PyUp Safety checks"},
{Name: "--output", Description: "Translates to --json, --full-report or --bare from PyUp Safety check"},
{Name: "--key", Description: "Quiet standard output, except vulnerability report"},
{Name: "--python", Description: "Specify which version of Python virtualenv should use"},
{Name: "--three", Description: "Use Python 3 when creating virtualenv"},
{Name: "--two", Description: "Use Python 2 when creating virtualenv"},
{Name: "--clear", Description: "Clears caches (pipenv, pip, and pip-tools)"},
{Name: "-v", Description: "Verbose mode"},
{Name: "--pypi-mirror", Description: "Specify a PyPI mirror"},
{Name: "--system", Description: "System pip management"},
{Name: "--bare", Description: "Minimal output"},
{Name: "--dry-run", Description: "Just output unneeded packages"},
{Name: "--json", Description: "Output JSON"},
{Name: "--json-tree", Description: "Output JSON in nested tree"},
{Name: "--reverse", Description: "Reversed dependency graph"},
{Name: "-c", Description: "Install packages automatically discovered from import statements"},
{Name: "--deploy", Description: "Enforce that your Pipfile.lock is up to date in deployment"},
{Name: "--site-packages", Description: "Enable site-packages for the virtualenv [env var: PIPENV_SITE_PACKAGES]"},
{Name: "--no-site-packages", Description: "Enable site-packages for the virtualenv [env var: PIPENV_SITE_PACKAGES]"},
{Name: "--skip-lock", Description: "Skip locking mechanisms and use the Pipfile instead during operation"},
{Name: "-e", Description: "An editable Python package URL or path, often to a VCS repository"},
{Name: "--ignore-pipfile", Description: "Ignore Pipfile when installing, using the Pipfile.lock"},
{Name: "--selective-upgrade", Description: "Update specified packages"},
{Name: "-r", Description: "Import a requirements.txt file"},
{Name: "--extra-index-url", Description: "URLs to the extra PyPI compatible indexes to query for package look-ups"},
{Name: "-i", Description: "Target PyPI-compatible package index url"},
{Name: "--sequential", Description: "Install dependencies one-at-a-time, instead of concurrently"},
{Name: "-d", Description: "Install both develop and default packages"},
{Name: "--keep-outdated", Description: "Keep out-dated dependencies from being updated in Pipfile.lock"},
{Name: "--pre", Description: "Allow pre-releases"},
{Name: "--dev-only", Description: "Generate a requirements file with only the development requirements"},
{Name: "--header", Description: "Add header to generated requirements"},
{Name: "--no-header", Description: "Generate requirements with no header"},
{Name: "--fancy", Description: "Specify which version of Python virtualenv should use"},
{Name: "--anyway", Description: "Always spawn a sub-shell, even if one is already spawned"},
{Name: "--all-dev", Description: "Uninstall all package from [dev-packages]"},
{Name: "--all", Description: "Purge all package(s) from virtualenv. Does not edit Pipfile"},
{Name: "--outdated", Description: "List out-of-date dependencies"},
{Name: "--venv", Description: "View virtualenv information"},
},
})
}
+49
View File
@@ -0,0 +1,49 @@
package python
import (
"github.com/versenilvis/iris/commands/core"
)
func init() {
core.Register(&core.Spec{
Name: "pipx",
Description: "Installed package",
Subcommands: []core.Subcommand{
{Name: "install", Description: "Install a package"},
{Name: "package_spec", Description: "Package name or pip installation spec"},
{Name: "inject", Description: "Installs packages to an existing pipx-managed virtual environment"},
{Name: "package", Description: "Name of the existing pipx-managed Virtual Environment to inject into"},
{Name: "uninstall-all", Description: "Uninstall all pipx-managed packages"},
{Name: "reinstall", Description: "Reinstalls a package"},
{Name: "reinstall-all", Description: "Reinstalls all packages"},
{Name: "list", Description: "List packages and apps installed with pipx"},
{Name: "app", Description: "App/package name and any arguments to be passed to it"},
{Name: "runpip", Description: "Run pip in an existing pipx-managed Virtual Environment"},
{Name: "pipargs", Description: "Arguments to forward to pip command"},
{Name: "ensurepath", Description: "Ensure directory where pipx stores apps is in your PATH environment variable"},
{Name: "environment", Description: "Print a list of variables used in pipx.constants"},
{Name: "completions", Description: "Print instructions on enabling shell completions for pipx"},
},
Options: []core.Option{
{Name: "--include-deps", Description: "Include apps of dependent packages"},
{Name: "--force", Description: "Modify existing virtual environment and files in PIPX_BIN_DIR"},
{Name: "--suffix", Description: "Optional suffix for virtual environment and executable names"},
{Name: "--python", Description: "Give the virtual environment access to the system site-packages dir"},
{Name: "--index-url", Description: "Base URL of Python Package Index"},
{Name: "--editable", Description: "Install a project in editable mode"},
{Name: "--pip-args", Description: "Arbitrary pip arguments to pass directly to pip install/upgrade commands"},
{Name: "--verbose", Description: "Show verbose output"},
{Name: "--include-apps", Description: "Add apps from the injected packages onto your PATH"},
{Name: "--system-site-packages", Description: "Give the virtual environment access to the system site-packages dir"},
{Name: "--include-injected", Description: "Also upgrade packages injected into the main app's environment"},
{Name: "--skip", Description: "Skip these packages"},
{Name: "--json", Description: "Output rich data in json format"},
{Name: "--short", Description: "List packages only"},
{Name: "--no-cache", Description: "Do not re-use cached virtual environment if it exists"},
{Name: "--pypackages", Description: "Require app to be run from local __pypackages__ directory"},
{Name: "--spec", Description: "The package name or specific installation source passed to pip"},
{Name: "--value", Description: "Print the value of the variable"},
{Name: "--help", Description: "Show help for pipx"},
},
})
}
+51
View File
@@ -0,0 +1,51 @@
package python
import (
"github.com/versenilvis/iris/commands/core"
)
func init() {
core.Register(&core.Spec{
Name: "pre-commit",
Description: "Show help message and exit",
Subcommands: []core.Subcommand{
{Name: "autoupdate", Description: "Auto-update pre-commit config to the latest repos' versions"},
{Name: "clean", Description: "Clean out pre-commit files"},
{Name: "gc", Description: "Clean unused cached repos"},
{Name: "install", Description: "Install the pre-commit script"},
{Name: "install-hooks", Description: "Whether to install hook environments for all environments in the config file"},
{Name: "migrate-config", Description: "Migrate list configuration to new map configuration"},
{Name: "run", Description: "Run hooks"},
{Name: "hook", Description: "A single hook-id to run"},
{Name: "sample-config", Description: "Produce a sample .pre-commit-config.yaml file"},
{Name: "try-repo", Description: "Try the hooks in a repository, useful for developing new hooks"},
{Name: "repo", Description: "Repository to source hooks from"},
{Name: "uninstall", Description: "Uninstall the pre-commit script"},
{Name: "help", Description: "Show help for a specific command"},
},
Options: []core.Option{
{Name: "-h", Description: "Show help message and exit"},
{Name: "--color", Description: "Whether to use color in output. Defaults to `auto`"},
{Name: "--config", Description: "Path to alternate config file"},
{Name: "-t", Description: "Type of hook to install"},
{Name: "--verbose", Description: "Run all files in the repo"},
{Name: "--files", Description: "Specific filenames to run hooks on"},
{Name: "--show-diff-on-failure", Description: "When hooks fail, run `git diff` directly afterward"},
{Name: "--hook-stage", Description: "The stage during which the hook is fired"},
{Name: "--remote-branch", Description: "Remote branch ref used by `git push`"},
{Name: "--local-branch", Description: "Local branch ref used by `git push`"},
{Name: "--from-ref", Description: "Filename to check when running during `commit-msg`"},
{Name: "--remote-name", Description: "Remote name used by `git push`"},
{Name: "--remote-url", Description: "Remote URL used by `git push`"},
{Name: "--checkout-type", Description: "During a post-merge hook, indicates whether the merge was a squash merge"},
{Name: "--rewrite-command", Description: "During a post-rewrite hook, specifies the command that invoked the rewrite"},
{Name: "-V", Description: "Show program's version number and exit"},
{Name: "--bleeding-edge", Description: "Store 'frozen' hashes in `rev` instead of tag names"},
{Name: "--repo", Description: "Only update this repository -- may be specified multiple times"},
{Name: "--no-allow-missing-config", Description: "Assume cloned repos should have a `pre-commit` config"},
{Name: "-f", Description: "Overwrite existing hooks / remove migration mode"},
{Name: "--allow-missing-config", Description: "Migrate list configuration to new map configuration"},
{Name: "--ref", Description: "Manually select a rev to run against, otherwise the `HEAD` revision will be used"},
},
})
}
+35
View File
@@ -0,0 +1,35 @@
package python
import (
"github.com/versenilvis/iris/commands/core"
)
func init() {
core.Register(&core.Spec{
Name: "pyenv",
Description: "Pyenv",
Subcommands: []core.Subcommand{
{Name: "commands", Description: "Lists all available pyenv commands"},
{Name: "local", Description: "Sets a local application-specific Python version"},
{Name: "global", Description: "Sets the global version of Python to be used in all shells"},
{Name: "shell", Description: "Sets a shell-specific Python version"},
{Name: "install", Description: "Install a Python version"},
{Name: "uninstall", Description: "Performs a deployment (default)"},
{Name: "rehash", Description: "Performs a deployment (default)"},
{Name: "whence", Description: "Lists all Python versions with the given command installed"},
},
Options: []core.Option{
{Name: "-h", Description: "Output usage information"},
{Name: "--unset", Description: "Sets the global version of Python to be used in all shells"},
{Name: "-l", Description: "List all available versions"},
{Name: "-f", Description: "Install even if the version appears to be installed already"},
{Name: "-s", Description: "Skip the installation if the version appears to be installed already"},
{Name: "-k", Description: "Keep source tree in $PYENV_BUILD_ROOT after installation"},
{Name: "-v", Description: "Verbose mode: print compilation status to stdout"},
{Name: "-p", Description: "Apply a patch from stdin before building"},
{Name: "-g", Description: "Build a debug version"},
{Name: "--bare", Description: "Print only the version names, one per line"},
{Name: "--skip-aliases", Description: "Skip printing aliases"},
},
})
}
+54
View File
@@ -0,0 +1,54 @@
package python
import (
"github.com/versenilvis/iris/commands/core"
)
func init() {
core.Register(&core.Spec{
Name: "pytest",
Description: "Control assertion debugging tools.",
Options: []core.Option{
{Name: "--assert", Description: "Remove all cache contents at start of test run"},
{Name: "--cache-show", Description: "Per-test capturing method"},
{Name: "--code-highlight", Description: "Whether code should be highlighted (only if --color is also enabled)"},
{Name: "--co", Description: "Only collect tests, don't execute them"},
{Name: "--collect-in-virtualenv", Description: "Don't ignore tests in a local virtualenv directory"},
{Name: "--color", Description: "Color terminal output"},
{Name: "--confcutdir", Description: "Only load conftest.py's relative to specified dir"},
{Name: "--debug", Description: "Show N slowest setup/test durations (N=0 for all)"},
{Name: "--durations-min", Description: "Minimal duration in seconds for inclusion in slowest list"},
{Name: "--deselect", Description: "Deselect item (via node id prefix) during collection (multi-allowed)"},
{Name: "--disable-warnings", Description: "Disable warnings summary"},
{Name: "--doctest-continue-on-failure", Description: "For a given doctest, continue to run after the first failure"},
{Name: "--doctest-modules", Description: "Run doctests in all .py modules"},
{Name: "--doctest-report", Description: "Choose another output format for diffs on doctest failure"},
{Name: "--doctest-glob", Description: "Doctests file matching pattern, default: test*.txt"},
{Name: "--exitfirst", Description: "Exit instantly on first error or failed test"},
{Name: "--failed-first", Description: "Run all tests, but run the last failures first"},
{Name: "--fixtures", Description: "Show fixtures per test"},
{Name: "--full-trace", Description: "Don't cut any tracebacks (default is to cut)"},
{Name: "--help", Description: "This shows help on command line and config-line options"},
{Name: "--ignore", Description: "Ignore path during collection (multi-allowed)"},
{Name: "--ignore-glob", Description: "Ignore path pattern during collection (multi-allowed)"},
{Name: "--import-mode", Description: "Create junit-xml style report file at given path"},
{Name: "--junit-prefix", Description: "Prepend prefix to classnames in junit-xml output"},
{Name: "-k", Description: "Ex: 'test_method or test_other'"},
{Name: "--keep-duplicates", Description: "Keep duplicate tests"},
{Name: "--showlocals", Description: "Show locals in tracebacks (disabled by default)"},
{Name: "--last-failed-no-failures", Description: "Which tests to run with no previously (known) failures"},
{Name: "--last-failed", Description: "Rerun only the tests that failed at the last run (or all if none failed)"},
{Name: "--log-auto-indent", Description: "Cli logging level"},
{Name: "--log-cli-format", Description: "Log format as used by the logging module"},
{Name: "--log-cli-date-format", Description: "Log date format as used by the logging module"},
{Name: "--log-date-format", Description: "Log date format as used by the logging module"},
{Name: "--log-format", Description: "Log format as used by the logging module"},
{Name: "--log-file", Description: "Path to a file where logging will be written to"},
{Name: "--log-file-level", Description: "Log file logging level"},
{Name: "--log-file-date-format", Description: "Log date format as used by the logging module"},
{Name: "--log-file-format", Description: "Log format as used by the logging module"},
{Name: "--log-level", Description: "Only run tests matching given mark expression"},
{Name: "--markers", Description: "Show markers (builtin, plugin and per-project ones)"},
},
})
}
+53
View File
@@ -0,0 +1,53 @@
package python
import (
"github.com/versenilvis/iris/commands/core"
)
func init() {
core.Register(&core.Spec{
Name: "ruff",
Description: "Enable verbose logging",
Subcommands: []core.Subcommand{
{Name: "graph", Description: "Generate a map of Python file dependencies or dependents"},
},
Options: []core.Option{
{Name: "-v", Description: "Enable verbose logging"},
{Name: "-q", Description: "Print diagnostics, but nothing else"},
{Name: "-s", Description: "Path to the `pyproject.toml` or `ruff.toml` file to use for configuration"},
{Name: "--isolated", Description: "Ignore all configuration files"},
{Name: "--help", Description: "Print help"},
{Name: "--fix", Description: "Apply fixes to resolve lint violations"},
{Name: "--unsafe-fixes", Description: "Include fixes that may not retain the original intent of the code"},
{Name: "--show-fixes", Description: "Show an enumeration of all fixed lint violations"},
{Name: "--diff", Description: "Run in watch mode by re-running whenever files change"},
{Name: "--fix-only", Description: "Ignore any `# noqa` comments"},
{Name: "--output-format", Description: "Specify file to write the linter output to (default: stdout)"},
{Name: "--target-version", Description: "The minimum Python version that should be supported"},
{Name: "--preview", Description: "Enable preview mode; checks will include unstable rules and fixes"},
{Name: "--extension", Description: "Show counts for every rule with at least one violation"},
{Name: "--add-noqa", Description: "Enable automatic additions of `noqa` directives to failing lines"},
{Name: "--show-files", Description: "See the files Ruff will be run against with the current settings"},
{Name: "--show-settings", Description: "See the settings Ruff will use to lint a given Python file"},
{Name: "-h", Description: "Print help"},
{Name: "--select", Description: "Comma-separated list of rule codes to enable (or ALL, to enable all rules)"},
{Name: "--ignore", Description: "Comma-separated list of rule codes to disable"},
{Name: "--extend-select", Description: "Like --select, but adds additional rule codes on top of the selected ones"},
{Name: "--per-file-ignores", Description: "List of mappings from file pattern to code to exclude"},
{Name: "--extend-per-file-ignores", Description: "Like --fixable, but adds additional rule codes on top of those already specified"},
{Name: "--exclude", Description: "List of paths, used to omit files and/or directories from analysis"},
{Name: "--extend-exclude", Description: "Respect file exclusions via `.gitignore` and other standard ignore files"},
{Name: "--force-exclude", Description: "Enforce exclusions, even for paths passed to Ruff directly on the command-line"},
{Name: "-n", Description: "Disable cache reads"},
{Name: "--cache-dir", Description: "Path to the cache directory"},
{Name: "--stdin-filename", Description: "The name of the file when passing it through stdin"},
{Name: "-e", Description: "The minimum Python version that should be supported"},
{Name: "--respect-gitignore", Description: "Respect file exclusions via `.gitignore` and other standard ignore files"},
{Name: "--line-length", Description: "Set the line-length"},
{Name: "--range", Description: "When specified, Ruff will try to only format the code in the given range"},
{Name: "--all", Description: "Explain all rules"},
{Name: "--no-preview", Description: "Disable preview mode"},
{Name: "--direction", Description: "Attempt to detect imports from string literals"},
},
})
}
+48
View File
@@ -0,0 +1,48 @@
package python
import (
"github.com/versenilvis/iris/commands/core"
)
func init() {
core.Register(&core.Spec{
Name: "sqlfluff",
Description: "A dialect-flexible and configurable SQL linter",
Subcommands: []core.Subcommand{
{Name: "lint", Description: "Lint SQL files via passing a list of files or using stdin"},
{Name: "templater", Description: "Name of templater to use, eg. raw"},
{Name: "dialect", Description: "Name of dialect, eg. ANSI"},
{Name: "logger", Description: "Name of logger to limit to, eg. templater"},
{Name: "annotation-level", Description: "Level of annotation, eg. notice"},
{Name: "fix", Description: "Fix SQL files"},
{Name: "parse", Description: "Parse SQL files and just spit out the result"},
{Name: "dialects", Description: "Show the current dialects available"},
{Name: "version", Description: "Show the version of sqlfluff"},
{Name: "rules", Description: "Show the current rules in use"},
},
Options: []core.Option{
{Name: "--version", Description: "Show the version and exit"},
{Name: "--help", Description: "Show help for sqlfluff"},
{Name: "--nocolor", Description: "No color - output will be without ANSI color codes"},
{Name: "--ignore", Description: "Narrow the search to only specific rules"},
{Name: "--templater", Description: "The templater to use (default=jinja)"},
{Name: "--dialect", Description: "The dialect of SQL to lint"},
{Name: "--format", Description: "What format to return the lint result in (default=human)"},
{Name: "--processes", Description: "Set this flag to ignore inline noqa comments"},
{Name: "--bench", Description: "Set this flag to engage the benchmarking tool output"},
{Name: "--logger", Description: "Choose to limit the logging to one of the loggers"},
{Name: "--encoding", Description: "Specify encoding to use when reading and writing files. Defaults to autodetect"},
{Name: "--ignore-local-config", Description: "Level of annotation, eg. notice"},
{Name: "--disregard-sqlfluffignores", Description: "Perform the operation regardless of .sqlfluffignore configurations"},
{Name: "--disable-progress-bar", Description: "Disables progress bars"},
{Name: "--nofail", Description: "Show help for sqlfluff"},
{Name: "--disable-noqa", Description: "Set this flag to ignore inline noqa comments"},
{Name: "--FIX-EVEN-UNPARSABLE", Description: "Enables fixing of files that have templating or parse errors"},
{Name: "--show-lint-violations", Description: "Show lint violations"},
{Name: "--code-only", Description: "Output only the code elements of the parse tree"},
{Name: "--include-meta", Description: "What format to return the lint result in (default=human)"},
{Name: "--recurse", Description: "The depth to recursively parse to (0 for unlimited)"},
{Name: "--verbose", Description: "Show the version of sqlfluff"},
},
})
}
+72
View File
@@ -0,0 +1,72 @@
package python
import (
"github.com/versenilvis/iris/commands/core"
)
func init() {
core.Register(&core.Spec{
Name: "sqlmesh",
Description: "SQLMesh command line tool",
Subcommands: []core.Subcommand{
{Name: "init", Description: "Create a new SQLMesh repository"},
{Name: "render", Description: "Render a model's query, optionally expanding referenced models"},
{Name: "evaluate", Description: "Evaluate a model and return a dataframe with a default limit of 1000"},
{Name: "format", Description: "Format all SQL models and audits"},
{Name: "diff", Description: "Show the diff between the local state and the target environment"},
{Name: "plan", Description: "Apply local changes to the target environment"},
{Name: "run", Description: "Evaluate missing intervals for the target environment"},
{Name: "janitor", Description: "Run the janitor process on-demand"},
{Name: "dag", Description: "Render the DAG as an html file"},
{Name: "create_test", Description: "Generate a unit test fixture for a given model"},
{Name: "test", Description: "Run model unit tests"},
{Name: "audit", Description: "Run audits for the target model(s)"},
{Name: "ui", Description: "Start a browser-based SQLMesh UI"},
{Name: "migrate", Description: "Migrate SQLMesh to the current running version"},
{Name: "rollback", Description: "Rollback SQLMesh to the previous migration"},
{Name: "create_external_models", Description: "Create a schema file containing external model schemas"},
},
Options: []core.Option{
{Name: "--paths", Description: "Paths to SQLMesh project files"},
{Name: "--config", Description: "Path to config file"},
{Name: "--gateway", Description: "The name of the gateway"},
{Name: "--ignore-warnings", Description: "Ignore warnings"},
{Name: "--debug", Description: "Enable debug mode"},
{Name: "--log-to-stdout", Description: "Display logs in stdout"},
{Name: "--log-file-dir", Description: "The directory to write log files to"},
{Name: "-t", Description: "Project template. Supported values: airflow, dbt, dlt, default, empty"},
{Name: "--dlt-pipeline", Description: "Render a model's query, optionally expanding referenced models"},
{Name: "--dialect", Description: "The SQL dialect to render the query as"},
{Name: "--no-format", Description: "Disable fancy formatting of the query"},
{Name: "--start", Description: "Start time for the render"},
{Name: "--end", Description: "End time for the render"},
{Name: "--execution-time", Description: "Execution time for the render"},
{Name: "--expand", Description: "Expand referenced models"},
{Name: "--limit", Description: "The number of rows which the query should be limited to"},
{Name: "--append-newline", Description: "Include a newline at the end of each file"},
{Name: "--no-rewrite-casts", Description: "Preserve the existing casts, without rewriting them to use the :: syntax"},
{Name: "--normalize", Description: "Whether or not to normalize identifiers to lowercase"},
{Name: "--pad", Description: "Determines the pad size in a formatted string"},
{Name: "--indent", Description: "Determines the indentation size in a formatted string"},
{Name: "--normalize-functions", Description: "Whether or not to normalize all function names"},
{Name: "--leading-comma", Description: "Determines whether or not the comma is leading or trailing in select expressions"},
{Name: "--max-text-width", Description: "Whether or not to check formatting (but not actually format anything)"},
{Name: "--create-from", Description: "Skip tests prior to generating the plan if they are defined"},
{Name: "--restate-model", Description: "Restate data for specified models and models downstream from the one specified"},
{Name: "--no-gaps", Description: "Ensure that new snapshots have no data gaps when comparing to existing snapshots"},
{Name: "--skip-backfill", Description: "Skip the backfill step and only create a virtual update for the plan"},
{Name: "--empty-backfill", Description: "Produce empty backfill"},
{Name: "--forward-only", Description: "Create a plan for forward-only changes"},
{Name: "--allow-destructive-model", Description: "The effective date from which to apply forward-only changes on production"},
{Name: "--no-prompts", Description: "Disable interactive prompts for the backfill time range"},
{Name: "--auto-apply", Description: "Automatically apply the new plan after creation"},
{Name: "--no-auto-categorization", Description: "Disable automatic change categorization"},
{Name: "--include-unmodified", Description: "Include unmodified models in the target environment"},
{Name: "--select-model", Description: "Select specific model changes that should be included in the plan"},
{Name: "--backfill-model", Description: "Backfill only the models whose names match the expression"},
{Name: "--no-diff", Description: "Hide text differences for changed models"},
{Name: "--run", Description: "Run latest intervals as part of the plan application (prod environment only)"},
{Name: "--enable-preview", Description: "Enable preview for forward-only models when targeting a development environment"},
},
})
}
+30
View File
@@ -0,0 +1,30 @@
package python
import (
"github.com/versenilvis/iris/commands/core"
)
func init() {
core.Register(&core.Spec{
Name: "streamlit",
Description: "Streamlit",
Subcommands: []core.Subcommand{
{Name: "activate", Description: "Activate Streamlit by entering your email"},
{Name: "cache", Description: "Manage the Streamlit cache"},
{Name: "clear", Description: "Clear st.cache, st.memo, and st.singleton caches"},
{Name: "config", Description: "Manage Streamlit's config settings"},
{Name: "show", Description: "Show all of Streamlit's config settings"},
{Name: "docs", Description: "Show help in browser"},
{Name: "hello", Description: "Runs the Hello World script"},
{Name: "help", Description: "Print the help message"},
{Name: "run", Description: "Run a Python script, piping stderr to Streamlit"},
{Name: "file", Description: "The Python script to run"},
{Name: "version", Description: "Print Streamlit's version number"},
},
Options: []core.Option{
{Name: "--log_level", Description: "Set the log level"},
{Name: "--help", Description: "Show a help message and exit"},
{Name: "--version", Description: "Show the version and exit"},
},
})
}
+54
View File
@@ -0,0 +1,54 @@
package python
import (
"github.com/versenilvis/iris/commands/core"
)
func init() {
core.Register(&core.Spec{
Name: "youtube-dl",
Description: "Clipboard",
Options: []core.Option{
{Name: "--help", Description: "Print the help text and exit"},
{Name: "--version", Description: "Print program version and exit"},
{Name: "-U", Description: "Display the current browser identification"},
{Name: "--list-extractors", Description: "List all supported extractors"},
{Name: "--extractor-descriptions", Description: "Output descriptions of all supported extractors"},
{Name: "--default-search", Description: "Force extraction to use the generic extractor"},
{Name: "--ignore-config", Description: "Do not read configuration files"},
{Name: "--flat-playlist", Description: "Do not extract the videos of a playlist, only list them"},
{Name: "--mark-watched", Description: "Mark videos watched (YouTube only)"},
{Name: "--no-mark-watched", Description: "Do not mark videos watched (YouTube only)"},
{Name: "--no-color", Description: "Do not emit color codes in output"},
{Name: "--proxy", Description: "Time to wait before giving up, in seconds"},
{Name: "--source-address", Description: "Client-side IP address to bind to"},
{Name: "-4", Description: "Make all connections via IPv4"},
{Name: "-6", Description: "Make all connections via IPv6"},
{Name: "--geo-verification-proxy", Description: "Use this proxy to verify the IP address for some geo-restricted sites"},
{Name: "--geo-bypass", Description: "Bypass geographic restriction via faking X-Forwarded-For HTTP header"},
{Name: "--no-geo-bypass", Description: "Do not bypass geographic restriction via faking X-Forwarded-For HTTP header"},
{Name: "--geo-bypass-country", Description: "Playlist video to start at (default is 1)"},
{Name: "--playlist-end", Description: "Playlist video to end at (default is last)"},
{Name: "--playlist-items", Description: "Playlist video to end at (default is last)"},
{Name: "--match-title", Description: "Download only matching titles (regex or caseless sub-string)"},
{Name: "--reject-title", Description: "Skip download for matching titles (regex or caseless sub-string)"},
{Name: "--max-downloads", Description: "Abort after downloading NUMBER files"},
{Name: "--min-filesize", Description: "Do not download any videos smaller than SIZE (e.g. 50k or 44.6)"},
{Name: "--max-filesize", Description: "Do not download any videos larger than SIZE (e.g. 50k or 44.6)"},
{Name: "--date", Description: "Download only videos uploaded in this date"},
{Name: "--datebefore", Description: "Download only videos uploaded on or before this date (i.e. inclusive)"},
{Name: "--dateafter", Description: "Download only videos uploaded on or after this date (i.e. inclusive)"},
{Name: "--min-views", Description: "Do not download any videos with less than COUNT views"},
{Name: "--max-views", Description: "Do not download any videos with more than COUNT views"},
{Name: "--match-filter", Description: "Generic video filter"},
{Name: "--no-playlist", Description: "Download only the video, if the URL refers to a video and a playlist"},
{Name: "--yes-playlist", Description: "Download the playlist, if the URL refers to a video and a playlist"},
{Name: "--age-limit", Description: "Download only videos suitable for the given age"},
{Name: "--download-archive", Description: "Download advertisements as well (experimental)"},
{Name: "-r", Description: "Maximum download rate in bytes per second (e.g. 50K or 4.2M)"},
{Name: "-R", Description: "Skip unavailable fragments"},
{Name: "--keep-fragments", Description: "Size of download buffer (e.g. 1024 or 16K)"},
{Name: "--no-resize-buffer", Description: "Do not automatically adjust the buffer size"},
},
})
}