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:
@@ -0,0 +1,48 @@
|
||||
package cc
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
Name: "bazel",
|
||||
Description: "Bazel target",
|
||||
Subcommands: []core.Subcommand{
|
||||
{Name: "run", Description: "Runs the specified target"},
|
||||
{Name: "test", Description: "Builds and runs the specified test targets"},
|
||||
{Name: "build", Description: "Builds the specified targets"},
|
||||
},
|
||||
Options: []core.Option{
|
||||
{Name: "--autodetect_server_javabase", Description: "Back to the local JDK for running the bazel server and instead exits"},
|
||||
{Name: "--nobatch", Description: "Run with a server"},
|
||||
{Name: "--batch_cpu_scheduling", Description: "Only on Linux; use 'batch' CPU scheduling for Bazel"},
|
||||
{Name: "--nobatch_cpu_scheduling", Description: "Only on Linux; Bazel does not perform a system call"},
|
||||
{Name: "--bazelrc", Description: "Wait for a running command to complete"},
|
||||
{Name: "--noblock_for_lock", Description: "Don't log debug information from the client to stderr"},
|
||||
{Name: "--connect_timeout_secs", Description: "The amount of time the client waits for each attempt to connect to the server"},
|
||||
{Name: "--expand_configs_in_place", Description: "Changed the expansion of --config flags to be done in-place"},
|
||||
{Name: "--noexpand_configs_in_place", Description: "Look for the home bazelrc file at $HOME/.bazelrc"},
|
||||
{Name: "--nohome_rc", Description: "Don't look for the home bazelrc file at $HOME/.bazelrc"},
|
||||
{Name: "--idle_server_tasks", Description: "Run System.gc() when the server is idle"},
|
||||
{Name: "--noidle_server_tasks", Description: "Don't run System.gc() when the server is idle"},
|
||||
{Name: "--ignore_all_rc_files", Description: "Enables all rc files"},
|
||||
{Name: "--io_nice_level", Description: "The maximum amount of time the client waits to connect to the server"},
|
||||
{Name: "--macos_qos_class", Description: "Sets the QoS service class of the bazel server when running on macOS"},
|
||||
{Name: "--max_idle_secs", Description: "The number of seconds the build server will wait idling before shutting down"},
|
||||
{Name: "--output_base", Description: "Specifies the output location to which all build output will be written"},
|
||||
{Name: "--output_base_root", Description: "The user-specific directory beneath which all build outputs are written"},
|
||||
{Name: "--preemptible", Description: "If true, the command can be preempted if another command is started"},
|
||||
{Name: "--nopreemptible", Description: "If true, the command can be preempted if another command is started"},
|
||||
{Name: "--server_jvm_out", Description: "The location to write the server's JVM's output"},
|
||||
{Name: "--shutdown_on_low_sys_mem", Description: "Linux only. Don't shut down the server when the system is low on free RAM"},
|
||||
{Name: "--system_rc", Description: "Look for the system-wide bazelrc"},
|
||||
{Name: "--nosystem_rc", Description: "Don't look for the system-wide bazelrc"},
|
||||
{Name: "--unlimit_coredumps", Description: "Scan every file for a change"},
|
||||
{Name: "--windows_enable_symlinks", Description: "Real symbolic links will be created on Windows instead of file copying"},
|
||||
{Name: "--nowindows_enable_symlinks", Description: "Real symbolic links will be created via file copying"},
|
||||
{Name: "--workspace_rc", Description: "Look for the workspace bazelrc file at $workspace/.bazelrc"},
|
||||
{Name: "--noworkspace_rc", Description: "Don't look for the workspace bazelrc file at $workspace/.bazelrc"},
|
||||
},
|
||||
})
|
||||
}
|
||||
@@ -0,0 +1,83 @@
|
||||
package cc
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
Name: "cmake",
|
||||
Description: "Command-line interface of the cross-platform buildsystem generator CMake",
|
||||
Subcommands: []core.Subcommand{
|
||||
{Name: "permissions", Description: "Format: <u=rwx,g=rx,o=rx>"},
|
||||
{Name: "cat", Description: "Concatenate files and print on the standard output"},
|
||||
{Name: "chdir", Description: "Change the current working directory and run a command"},
|
||||
{Name: "create_symlink", Description: "Create a symbolic link <new> naming <old>"},
|
||||
{Name: "create_hardlink", Description: "Create a hard link <new> naming <old>"},
|
||||
{Name: "echo", Description: "Displays arguments as text"},
|
||||
{Name: "echo_append", Description: "Displays arguments as text but no new line"},
|
||||
{Name: "env", Description: "Run command in a modified environment"},
|
||||
{Name: "key value pair", Description: "Format: NAME=VALUE"},
|
||||
{Name: "environment", Description: "Display the current environment variables"},
|
||||
{Name: "false", Description: "Do nothing, with an exit code of 1"},
|
||||
{Name: "md5sum", Description: "Create MD5 checksum of files in md5sum compatible format"},
|
||||
{Name: "sha1sum", Description: "Create SHA1 checksum of files in sha1sum compatible format"},
|
||||
{Name: "sha224sum", Description: "Create SHA224 checksum of files in sha224sum compatible format"},
|
||||
{Name: "sha226sum", Description: "Create SHA226 checksum of files in sha226sum compatible format"},
|
||||
{Name: "sha384sum", Description: "Create SHA384 checksum of files in sha384sum compatible format"},
|
||||
{Name: "sha512sum", Description: "Create SHA512 checksum of files in sha512sum compatible format"},
|
||||
{Name: "rm", Description: "Remove the files <file> or directories dir"},
|
||||
{Name: "server", Description: "Launch cmake-server(7) mode"},
|
||||
{Name: "sleep", Description: "Sleep for given number of seconds"},
|
||||
{Name: "tar", Description: "Create or extract a tar or zip archive"},
|
||||
{Name: "v", Description: "Produce verbose output"},
|
||||
{Name: "z", Description: "Compress the resulting archive with gzip"},
|
||||
{Name: "j", Description: "Compress the resulting archive with bzip2"},
|
||||
{Name: "J", Description: "Compress the resulting archive with XZ"},
|
||||
{Name: "time", Description: "Run command and display elapsed time"},
|
||||
{Name: "true", Description: "Do nothing, with an exit code of 0"},
|
||||
},
|
||||
Options: []core.Option{
|
||||
{Name: "--build", Description: "Use a build preset to specify build options"},
|
||||
{Name: "--list-presets", Description: "For multi-configuration tools, choose configuration <cfg>"},
|
||||
{Name: "--clean-first", Description: "Build target clean first, then build"},
|
||||
{Name: "--use-stderr", Description: "Ignored. Behavior is default in CMake >= 3.0"},
|
||||
{Name: "--verbose", Description: "Pass remaining options to the native tool"},
|
||||
{Name: "--install", Description: "Project binary directory to install. This is required and must be first"},
|
||||
{Name: "--config", Description: "For multi-configuration generators"},
|
||||
{Name: "--component", Description: "Component-based install. Only install component specified"},
|
||||
{Name: "--prefix", Description: "Override the installation prefix"},
|
||||
{Name: "--strip", Description: "Strip before installing"},
|
||||
{Name: "--open", Description: "CMake provides builtin command-line tools through the signature"},
|
||||
{Name: "--ignore-eol", Description: "Implies line-wise comparison and ignores LF/CRLF differences"},
|
||||
{Name: "--unset", Description: "Display the current environment variables"},
|
||||
{Name: "-f", Description: "Remove the files <file> or directories dir"},
|
||||
{Name: "-r", Description: "Launch cmake-server(7) mode"},
|
||||
{Name: "--zstd", Description: "Compress the resulting archive with Zstandard"},
|
||||
{Name: "--files-from", Description: "Specify the format of the archive to be created"},
|
||||
{Name: "--mtime", Description: "Specify modification time recorded in tarball entries"},
|
||||
{Name: "-S", Description: "Path to root directory of the CMake project to build"},
|
||||
{Name: "--help", Description: "Pre-load a script to populate the cache"},
|
||||
{Name: "-D", Description: "Create or update a CMake CACHE entry"},
|
||||
{Name: "-U", Description: "Remove matching entries from CMake CACHE"},
|
||||
{Name: "-G", Description: "Specify a build system generator"},
|
||||
{Name: "-T", Description: "Toolset specification for the generator, if supported"},
|
||||
{Name: "-A", Description: "Specify platform name if supported by generator"},
|
||||
{Name: "--install-prefix", Description: "Suppress developer warnings"},
|
||||
{Name: "-Wdev", Description: "Enable developer warnings"},
|
||||
{Name: "-Werror", Description: "Enable the type of warnings"},
|
||||
{Name: "-Wno-error", Description: "Disable the type of warnings"},
|
||||
{Name: "-Wdeprecated", Description: "Enable deprecated functionality warnings"},
|
||||
{Name: "-Wno-deprecated", Description: "Suppress deprecated functionality warnings"},
|
||||
{Name: "-L", Description: "List non-advanced cached-variables"},
|
||||
{Name: "-N", Description: "View mode only"},
|
||||
{Name: "--graphviz", Description: "Generate graphviz of dependencies"},
|
||||
{Name: "--system-information", Description: "Dump information about this system"},
|
||||
{Name: "--log-level", Description: "Set log-level"},
|
||||
{Name: "--log-context", Description: "Enable the message() command outputting context attached to each message"},
|
||||
{Name: "--debug-trycompile", Description: "Do not delete the try_compile() build tree"},
|
||||
{Name: "--debug-output", Description: "Put cmake in a debug mode"},
|
||||
{Name: "--debug-find", Description: "Put cmake find commands in a debug mode"},
|
||||
},
|
||||
})
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
package cc
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
Name: "premake",
|
||||
Description: "The premake5.lua file",
|
||||
Subcommands: []core.Subcommand{
|
||||
{Name: "clean", Description: "Remove all binaries and generated files"},
|
||||
{Name: "vs2022", Description: "Generate Visual Studio 2022 project files"},
|
||||
{Name: "vs2019", Description: "Generate Visual Studio 2019 project files"},
|
||||
{Name: "vs2017", Description: "Generate Visual Studio 2017 project files"},
|
||||
{Name: "vs2015", Description: "Generate Visual Studio 2015 project files"},
|
||||
{Name: "vs2013", Description: "Generate Visual Studio 2013 project files"},
|
||||
{Name: "vs2012", Description: "Generate Visual Studio 2012 project files"},
|
||||
{Name: "vs2010", Description: "Generate Visual Studio 2010 project files"},
|
||||
{Name: "vs2008", Description: "Generate Visual Studio 2008 project files"},
|
||||
{Name: "vs2005", Description: "Generate Visual Studio 2005 project files"},
|
||||
{Name: "gmake", Description: "Generate GNU Makefiles (This generator is deprecated by gmake2)"},
|
||||
{Name: "gmake2", Description: "Generate GNU Makefiles (including Cygwin and MinGW)"},
|
||||
{Name: "xcode4", Description: "Generate Apple Xcode 4 project files"},
|
||||
{Name: "codelite", Description: "Generate CodeLite project files"},
|
||||
},
|
||||
Options: []core.Option{
|
||||
{Name: "--file", Description: "The premake5.lua file"},
|
||||
{Name: "--debugger", Description: "Start MobDebug remote debugger. Works with ZeroBrane Studio"},
|
||||
{Name: "--fatal", Description: "Treat warnings from project scripts as errors"},
|
||||
{Name: "--insecure", Description: "Forfeit SSH certification checks"},
|
||||
{Name: "--interactive", Description: "Interactive command prompt"},
|
||||
{Name: "--os", Description: "Generate files for a different operating system"},
|
||||
{Name: "--scripts", Description: "Search for additional scripts on the given path"},
|
||||
{Name: "--systemscript", Description: "Override default system script (premake5-system.lua)"},
|
||||
{Name: "--verbose", Description: "Generate extra debug text output"},
|
||||
{Name: "--cc", Description: "Choose a C/C++ compiler set"},
|
||||
{Name: "--dc", Description: "Choose a D compiler"},
|
||||
{Name: "--dotnet", Description: "Choose a .NET compiler set"},
|
||||
{Name: "--help", Description: "Shows a complete list of the actions supported"},
|
||||
{Name: "--version", Description: "Display version information"},
|
||||
},
|
||||
})
|
||||
}
|
||||
@@ -0,0 +1,106 @@
|
||||
package cc
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
Name: "swift",
|
||||
Description: "Show help information",
|
||||
Subcommands: []core.Subcommand{
|
||||
{Name: "build", Description: "Build sources into binary products"},
|
||||
{Name: "target", Description: "The name of the target to build"},
|
||||
{Name: "product", Description: "The name of the product to build"},
|
||||
{Name: "run", Description: "Build and run an executable product"},
|
||||
{Name: "executable", Description: "The executable to run"},
|
||||
{Name: "arguments", Description: "The arguments to pass to the executable"},
|
||||
{Name: "test", Description: "Build and run tests"},
|
||||
{Name: "num-workers", Description: "Number of tests to execute in parallel"},
|
||||
{Name: "regex", Description: "<test-target>.<test-case> or <test-target>.<test-case>/<test>"},
|
||||
{Name: "path", Description: "Path where the xUnit xml file should be generated"},
|
||||
{Name: "package", Description: "Perform operations on Swift packages"},
|
||||
{Name: "flag", Description: "The flag to pass through to all C compiler invocations"},
|
||||
{Name: "configuration", Description: "The build configuration"},
|
||||
{Name: "mode", Description: "The caching mode"},
|
||||
{Name: "triple", Description: "The compilation destination's target triple"},
|
||||
{Name: "type", Description: "What to sanitize"},
|
||||
{Name: "jobs", Description: "The number of jobs to spawn in parallel during the build process"},
|
||||
{Name: "build system", Description: "The build system to use"},
|
||||
{Name: "clean", Description: "Delete build artifacts"},
|
||||
{Name: "purge-cache", Description: "Purge the global repository cache"},
|
||||
{Name: "reset", Description: "Reset the complete cache/build directory"},
|
||||
{Name: "update", Description: "Update package dependencies"},
|
||||
{Name: "describe", Description: "Describe the current package"},
|
||||
{Name: "init", Description: "Initialize a new package"},
|
||||
{Name: "name", Description: "The package name"},
|
||||
{Name: "experimental-api-diff", Description: "Diagnose API-breaking changes to Swift modules in a package"},
|
||||
{Name: "treeish", Description: "The baseline treeish to compare to (e.g. a commit hash, branch name, tag, etc.)"},
|
||||
{Name: "dump-symbol-graph", Description: "Dump Symbol Graph"},
|
||||
{Name: "dump-pif", Description: "Dump PIF"},
|
||||
{Name: "dump-package", Description: "Print parsed Package.swift as JSON"},
|
||||
{Name: "edit", Description: "Put a package in editable mode"},
|
||||
{Name: "revision", Description: "The revision to edit"},
|
||||
{Name: "branch", Description: "The branch to create"},
|
||||
{Name: "unedit", Description: "Remove a package from editable mode"},
|
||||
{Name: "package-name", Description: "The name of the package to unedit"},
|
||||
{Name: "config", Description: "Manipulate configuration of the package"},
|
||||
{Name: "set-mirror", Description: "Set a mirror for a dependency"},
|
||||
{Name: "package-url", Description: "The package dependency url"},
|
||||
{Name: "original-url", Description: "The original url"},
|
||||
{Name: "unset-mirror", Description: "Remove an existing mirror"},
|
||||
{Name: "get-mirror", Description: "Print mirror configuration for the given package dependency"},
|
||||
{Name: "resolve", Description: "Resolve package dependencies"},
|
||||
{Name: "version", Description: "The version to resolve at"},
|
||||
{Name: "show-dependencies", Description: "Print the resolved dependency graph"},
|
||||
{Name: "format", Description: "The format type"},
|
||||
{Name: "tools-version", Description: "Manipulate tools version of the current package"},
|
||||
{Name: "tools version", Description: "The tools version"},
|
||||
{Name: "generate-xcodeproj", Description: "Generates an Xcode project (this command will be deprecated soon)"},
|
||||
{Name: "compute-checksum", Description: "Compute the checksum for a binary artifact"},
|
||||
{Name: "archive-source", Description: "Create a source archive for the package"},
|
||||
},
|
||||
Options: []core.Option{
|
||||
{Name: "--help", Description: "Show help information"},
|
||||
{Name: "--version", Description: "Show the version"},
|
||||
{Name: "-access-notes-path", Description: "Specify YAML file to override attributes on Swift declarations in this module"},
|
||||
{Name: "-assert-config", Description: "Specify the assert_configuration replacement"},
|
||||
{Name: "-async-main", Description: "Resolve main function as if it were called from an asynchronous context"},
|
||||
{Name: "-clang-target", Description: "Separately set the target we should use for internal Clang instance"},
|
||||
{Name: "-color-diagnostics", Description: "Print diagnostics in color"},
|
||||
{Name: "-coverage-prefix-map", Description: "Remap source paths in coverage info"},
|
||||
{Name: "-debug-info-format", Description: "Specify the debug info format type"},
|
||||
{Name: "-debug-info-store-invocation", Description: "Emit the compiler invocation in the debug info"},
|
||||
{Name: "-debug-prefix-map", Description: "Remap source paths in debug info"},
|
||||
{Name: "-diagnostic-style", Description: "The formatting style used when printing diagnostics"},
|
||||
{Name: "-disable-clang-target", Description: "Disable a separately specified target triple for Clang instance to use"},
|
||||
{Name: "-disable-incremental-imports", Description: "Disables incremental build optimization that only produces one dependencies file"},
|
||||
{Name: "-disallow-use-new-driver", Description: "Disable using new swift-driver"},
|
||||
{Name: "-D", Description: "Marks a conditional compilation flag as true"},
|
||||
{Name: "-embed-tbd-for-module", Description: "Embed symbols from the module in the emitted tbd file"},
|
||||
{Name: "-enable-bare-slash-regex", Description: "Enable the use of forward slash regular-expression literal syntax"},
|
||||
{Name: "-enable-incremental-imports", Description: "Build the module to allow binary-compatible library evolution"},
|
||||
{Name: "-enforce-exclusivity", Description: "Enforce law of exclusivity"},
|
||||
{Name: "-experimental-cxx-stdlib", Description: "C++ standard library to use; forwarded to Clang's -std lib flag"},
|
||||
{Name: "-file-compilation-dir", Description: "The compilation directory to embed in the debug info"},
|
||||
{Name: "-file-prefix-map", Description: "Remap source paths in debug, coverage, and index info"},
|
||||
{Name: "-framework", Description: "Specifies a framework which should be linked against"},
|
||||
{Name: "-Fsystem", Description: "Add directory to system framework search path"},
|
||||
{Name: "-F", Description: "Add directory to framework search path"},
|
||||
{Name: "-gdwarf-types", Description: "Emit full DWARF type info"},
|
||||
{Name: "-gline-tables-only", Description: "Emit minimal debug info for backtraces only"},
|
||||
{Name: "-gnone", Description: "Don't emit debug info"},
|
||||
{Name: "-g", Description: "Emit debug info. This is the preferred setting for debugging with LLDB"},
|
||||
{Name: "-index-ignore-clang-modules", Description: "Avoid indexing clang modules (pcms)"},
|
||||
{Name: "-index-store-path", Description: "Store indexing data to path"},
|
||||
{Name: "-index-unit-output-path", Description: "Use the specified path as the output path in the produced index data"},
|
||||
{Name: "-I", Description: "Add directory to the import search path"},
|
||||
{Name: "-j", Description: "Number of commands to execute in parallel"},
|
||||
{Name: "-libc", Description: "The libc runtime library to use"},
|
||||
{Name: "-locale", Description: "Choose a language for diagnostic messages"},
|
||||
{Name: "-localization-path", Description: "Path to localized diagnostic messages directory"},
|
||||
{Name: "-L", Description: "Add directory to library link search path"},
|
||||
{Name: "-l", Description: "Specifies a library which should be linked against"},
|
||||
},
|
||||
})
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
package cc
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
Name: "typst",
|
||||
Description: "The Typst compiler",
|
||||
Subcommands: []core.Subcommand{
|
||||
{Name: "compile", Description: "Compiles an input file into a supported output format"},
|
||||
{Name: "input", Description: "Path to input Typst file"},
|
||||
{Name: "output", Description: "Path to output file (PDF, PNG, or SVG)"},
|
||||
{Name: "watch", Description: "Watches an input file and recompiles on changes"},
|
||||
{Name: "query", Description: "Processes an input file to extract provided metadata"},
|
||||
{Name: "selector", Description: "Defines which elements to retrieve"},
|
||||
{Name: "fonts", Description: "Lists all discovered fonts in system and custom font paths"},
|
||||
{Name: "update", Description: "Self update the Typst CLI (disabled)"},
|
||||
{Name: "version", Description: "Which version to update to (defaults to latest)"},
|
||||
{Name: "help", Description: "Print this message or the help of the given subcommand(s)"},
|
||||
},
|
||||
Options: []core.Option{
|
||||
{Name: "--root", Description: "Configures the project root (for absolute paths)"},
|
||||
{Name: "--font-path", Description: "Adds additional directories to search for fonts"},
|
||||
{Name: "--diagnostic-format", Description: "The format to emit diagnostics in"},
|
||||
{Name: "-f", Description: "The format of the output file, inferred from the extension by default"},
|
||||
{Name: "--open", Description: "Opens the output file using the default viewer after compilation"},
|
||||
{Name: "--ppi", Description: "The PPI (pixels per inch) to use for PNG export"},
|
||||
{Name: "--flamegraph", Description: "Produces a flamegraph of the compilation process"},
|
||||
{Name: "-h", Description: "Print help"},
|
||||
{Name: "--field", Description: "Extracts just one field from all retrieved elements"},
|
||||
{Name: "--format", Description: "The format to serialize in"},
|
||||
{Name: "--one", Description: "Expects and retrieves exactly one element"},
|
||||
{Name: "--variants", Description: "Also lists style variants of each font family"},
|
||||
{Name: "--force", Description: "Forces a downgrade to an older version (required for downgrading)"},
|
||||
{Name: "--cert", Description: "Path to a custom CA certificate to use when making network requests"},
|
||||
{Name: "-v", Description: "Print help"},
|
||||
{Name: "-V", Description: "Print version"},
|
||||
},
|
||||
})
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package cc
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
Name: "xcode-select",
|
||||
Description: "Active developer directory for Xcode tools",
|
||||
Options: []core.Option{
|
||||
{Name: "-h", Description: "Help message"},
|
||||
{Name: "-p", Description: "Display path to active developer directory"},
|
||||
{Name: "-s", Description: "Set path to active developer directory"},
|
||||
{Name: "--install", Description: "Install Xcode command line tools"},
|
||||
{Name: "-v", Description: "Display version"},
|
||||
{Name: "-r", Description: "Reset to the default CLT path"},
|
||||
},
|
||||
})
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
package cc
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
Name: "xcodebuild",
|
||||
Description: "Build Xcode projects",
|
||||
Options: []core.Option{
|
||||
{Name: "-usage", Description: "Print brief usage"},
|
||||
{Name: "-help", Description: "Print complete usage"},
|
||||
{Name: "-verbose", Description: "Provide additional status output"},
|
||||
{Name: "-license", Description: "Show the Xcode and SDK license agreements"},
|
||||
{Name: "-checkFirstLaunchStatus", Description: "Check if any First Launch tasks need to be performed"},
|
||||
{Name: "-runFirstLaunch", Description: "Install packages and agree to the license"},
|
||||
{Name: "-project", Description: "Build the project NAME"},
|
||||
{Name: "-target", Description: "Build the target NAME"},
|
||||
{Name: "-alltargets", Description: "Build all targets"},
|
||||
{Name: "-workspace", Description: "Build the workspace NAME"},
|
||||
{Name: "-scheme", Description: "Build the scheme NAME"},
|
||||
{Name: "-configuration", Description: "Use the build configuration NAME for building each target"},
|
||||
{Name: "-xcconfig", Description: "Apply the build settings defined in the file at PATH as overrides"},
|
||||
{Name: "-arch", Description: "Use SDK as the name or path of the base SDK when building the project"},
|
||||
{Name: "-toolchain", Description: "Use the toolchain with identifier or name NAME"},
|
||||
{Name: "-destination", Description: "Wait for TIMEOUT seconds while searching for the destination device"},
|
||||
{Name: "-parallelizeTargets", Description: "Build independent targets in parallel"},
|
||||
{Name: "-jobs", Description: "Specify the maximum number of concurrent build operations"},
|
||||
{Name: "-parallel-testing-enabled", Description: "Overrides the per-target setting in the scheme"},
|
||||
{Name: "-dry-run", Description: "Do everything except actually running the commands"},
|
||||
{Name: "-quiet", Description: "Do not print any output except for warnings and errors"},
|
||||
{Name: "-hideShellScriptEnvironment", Description: "Don't show shell script environment variables in build log"},
|
||||
{Name: "-showsdks", Description: "Display a compact list of the installed SDKs"},
|
||||
{Name: "-showdestinations", Description: "Display a list of destinations"},
|
||||
{Name: "-showTestPlans", Description: "Display a list of test plans"},
|
||||
{Name: "-showBuildSettings", Description: "Display a list of build settings and values"},
|
||||
{Name: "-showBuildSettingsForIndex", Description: "Display build settings for the index service"},
|
||||
{Name: "-list", Description: "Lists the targets and configurations in a project, or the schemes in a workspace"},
|
||||
{Name: "-find-executable", Description: "Display the full path to executable NAME in the provided SDK and toolchain"},
|
||||
{Name: "-find-library", Description: "Display the full path to library NAME in the provided SDK and toolchain"},
|
||||
{Name: "-version", Description: "Turn the address sanitizer on or off"},
|
||||
{Name: "-enableThreadSanitizer", Description: "Turn the thread sanitizer on or off"},
|
||||
{Name: "-resultBundlePath", Description: "Specifies which result bundle version should be used"},
|
||||
{Name: "-clonedSourcePackagesDirPath", Description: "Specifies the directory where build products and other derived data will go"},
|
||||
{Name: "-archivePath", Description: "Specifies that an archive should be exported"},
|
||||
{Name: "-exportNotarizedApp", Description: "Export an archive that has been notarized by Apple"},
|
||||
{Name: "-exportOptionsPlist", Description: "Specifies a path to a plist file that configures archive exporting"},
|
||||
{Name: "-enableCodeCoverage", Description: "Turn code coverage on or off when testing"},
|
||||
{Name: "-exportPath", Description: "Specifies the destination for the product exported from an archive"},
|
||||
{Name: "-skipUnavailableActions", Description: "Exports completed and outstanding project localizations"},
|
||||
},
|
||||
})
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package cc
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
Name: "xcodeproj",
|
||||
Description: "Xcodeproj lets you create and modify Xcode projects",
|
||||
Options: []core.Option{
|
||||
{Name: "--ignore", Description: "A key to ignore in the comparison. Can be specified multiple times"},
|
||||
{Name: "--format", Description: "YAML output format"},
|
||||
{Name: "--group-option", Description: "Shows the difference between two targets"},
|
||||
{Name: "--project", Description: "The Xcode project document to use"},
|
||||
{Name: "--verbose", Description: "Show more debugging information"},
|
||||
{Name: "--version", Description: "Show the version of the tool"},
|
||||
{Name: "--no-ansi", Description: "Show output without ANSI codes"},
|
||||
{Name: "--help", Description: "Show help banner of specified command"},
|
||||
},
|
||||
})
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
package cc
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
Name: "xcrun",
|
||||
Description: "SceneKit CLI utilities",
|
||||
Subcommands: []core.Subcommand{
|
||||
{Name: "scntool", Description: "SceneKit CLI utilities"},
|
||||
},
|
||||
Options: []core.Option{
|
||||
{Name: "--convert", Description: "File to convert"},
|
||||
{Name: "--format", Description: "Format to convert to"},
|
||||
{Name: "--output", Description: "Path to the output file"},
|
||||
{Name: "--force-y-up", Description: "Convert objects to use y axis up"},
|
||||
{Name: "--force-interleaved", Description: "Use .ktx, .astc and .pvrtc files for textures if available in the asset catalog"},
|
||||
{Name: "--verbose", Description: "Get pretty error message"},
|
||||
{Name: "-h", Description: "Help message"},
|
||||
{Name: "--version", Description: "Show the xcrun version"},
|
||||
{Name: "-v", Description: "Show verbose logging output"},
|
||||
{Name: "--sdk", Description: "Find the tool for the given SDK name"},
|
||||
{Name: "--toolchain", Description: "Find the tool for the given toolchain"},
|
||||
{Name: "-l", Description: "Show command path to be executed (and --run)"},
|
||||
{Name: "-f", Description: "Find and print the tool path"},
|
||||
{Name: "--run", Description: "(Default) find and execute the tool"},
|
||||
{Name: "-n", Description: "Do not use the lookup cache"},
|
||||
{Name: "-k", Description: "Invalidate all existing cache entries"},
|
||||
{Name: "--show-sdk-path", Description: "Show selected SDK install path"},
|
||||
{Name: "--show-sdk-version", Description: "Show selected SDK version"},
|
||||
{Name: "--show-sdk-build-version", Description: "Show selected SDK build version"},
|
||||
{Name: "--show-sdk-platform-path", Description: "Show selected SDK platform path"},
|
||||
{Name: "--show-sdk-platform-version", Description: "Show selected SDK platform version"},
|
||||
},
|
||||
})
|
||||
}
|
||||
@@ -0,0 +1,86 @@
|
||||
package cc
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
Name: "zig",
|
||||
Description: "Enable or disable colored message",
|
||||
Subcommands: []core.Subcommand{
|
||||
{Name: "build", Description: "Build project from build.zig"},
|
||||
{Name: "install", Description: "Copy build artifacts to prefix path"},
|
||||
{Name: "uninstall", Description: "Remove build artifacts from prefix path"},
|
||||
{Name: "run", Description: "Run the app"},
|
||||
{Name: "test", Description: "Run unit tests"},
|
||||
{Name: "init-exe", Description: "Initializes a `zig build` project in the current working directory"},
|
||||
{Name: "init-lib", Description: "Initializes a `zig build` project in the current working directory"},
|
||||
{Name: "ast-check", Description: "Given a .zig source file, reports any compile errors that"},
|
||||
{Name: "build-exe", Description: "Create executable from source or object files"},
|
||||
{Name: "build-lib", Description: "Create library from source or object files"},
|
||||
{Name: "build-obj", Description: "Create library from source or object files"},
|
||||
{Name: "fmt", Description: "Reformat Zig source into canonical form"},
|
||||
{Name: "translate-c", Description: "Convert C code to Zig code"},
|
||||
{Name: "ar", Description: "LLVM Archiver"},
|
||||
{Name: "default", Description: "Default"},
|
||||
{Name: "gnu", Description: "GNU"},
|
||||
{Name: "darwin", Description: "Darwin"},
|
||||
{Name: "bsd", Description: "BSD"},
|
||||
{Name: "bigarchive", Description: "Big archive (AIX OS)"},
|
||||
{Name: "cc", Description: "Use Zig as a drop-in C compiler"},
|
||||
{Name: "c++", Description: "Use Zig as a drop-in C++ compiler"},
|
||||
{Name: "dll-tool", Description: "LLVM dll tool"},
|
||||
{Name: "lib", Description: "Use Zig as a drop-in lib.exe"},
|
||||
{Name: "ranlib", Description: "LLVM Ranlib : This program generates an index to speed access to archives"},
|
||||
{Name: "env", Description: "Print lib path, std path, cache directory, and version"},
|
||||
{Name: "help", Description: "Print help and exit"},
|
||||
{Name: "libc", Description: "Detect the native libc installation and print the resulting paths to stdout"},
|
||||
{Name: "targets", Description: "List available compilation targets"},
|
||||
{Name: "version", Description: "Print version number and exit"},
|
||||
{Name: "zen", Description: "Print Zen of Zig and exit"},
|
||||
},
|
||||
Options: []core.Option{
|
||||
{Name: "--color", Description: "Enable or disable colored message"},
|
||||
{Name: "--cache-dir", Description: "Override path to local Zig cache directory"},
|
||||
{Name: "--global-cache-dir", Description: "Override path to global Zig cache directory"},
|
||||
{Name: "-fstage1", Description: "Force using bootstrap compiler as the codegen backend"},
|
||||
{Name: "-fno-stage1", Description: "Prevent using bootstrap compiler as the codegen backend"},
|
||||
{Name: "--zig-lib-dir", Description: "Override path to Zig lib directory"},
|
||||
{Name: "-freference-trace", Description: "How many lines of reference trace should be shown per compile error"},
|
||||
{Name: "-fno-reference-trace", Description: "Disable reference trace"},
|
||||
{Name: "-h", Description: "Print help and exit"},
|
||||
{Name: "-v", Description: "Display the version of this program"},
|
||||
{Name: "--watch", Description: "Enable compiler REPL"},
|
||||
{Name: "-femit-bin", Description: "(default) Output machine code"},
|
||||
{Name: "-fno-emit-bin", Description: "Do not output machine code"},
|
||||
{Name: "-femit-asm", Description: "Output .s (assembly code)"},
|
||||
{Name: "-fno-emit-asm", Description: "(default) Do not output .s (assembly code)"},
|
||||
{Name: "-femit-llvm-ir", Description: "Produce a .ll file with LLVM IR (requires LLVM extensions)"},
|
||||
{Name: "-fno-emit-llvm-ir", Description: "(default) Do not produce a .ll file with LLVM IR"},
|
||||
{Name: "-femit-llvm-bc", Description: "Produce a LLVM module as a .bc file (requires LLVM extensions)"},
|
||||
{Name: "-fno-emit-llvm-bc", Description: "(default) Do not produce a LLVM module as a .bc file"},
|
||||
{Name: "-femit-h", Description: "Generate a C header file (.h)"},
|
||||
{Name: "-fno-emit-h", Description: "(default) Do not generate a C header file (.h)"},
|
||||
{Name: "-femit-docs", Description: "Create a docs/ dir with html documentation"},
|
||||
{Name: "-fno-emit-docs", Description: "(default) Do not produce docs/ dir with html documentation"},
|
||||
{Name: "-femit-analysis", Description: "Write analysis JSON file with type information"},
|
||||
{Name: "-fno-emit-analysis", Description: "(default) Do not write analysis JSON file with type information"},
|
||||
{Name: "-femit-implib", Description: "(default) Produce an import .lib when building a Windows DLL"},
|
||||
{Name: "-fno-emit-implib", Description: "Do not produce an import .lib when building a Windows DLL"},
|
||||
{Name: "--show-builtin", Description: "Output to cache directory; print path to stdout"},
|
||||
{Name: "-target", Description: "<arch><sub>-<os>-<abi> see the targets command"},
|
||||
{Name: "-mcpu", Description: "Specify target CPU and feature set"},
|
||||
{Name: "-mcmodel", Description: "Limit range of code and data virtual addresses"},
|
||||
{Name: "-mred-zone", Description: "Omit the stack frame pointer"},
|
||||
{Name: "-fno-omit-frame-pointer", Description: "Store the stack frame pointer"},
|
||||
{Name: "-mexec-model", Description: "(WASI) Execution model"},
|
||||
{Name: "--name", Description: "Override root name (not a file path)"},
|
||||
{Name: "-O", Description: "Choose what to optimize for"},
|
||||
{Name: "--pkg-begin", Description: "Make pkg available to import and push current pkg"},
|
||||
{Name: "--pkg-end", Description: "Pop current pkg"},
|
||||
{Name: "--main-pkg-path", Description: "Set the directory of the root package"},
|
||||
{Name: "-fPIC", Description: "Force-enable Position Independent Code"},
|
||||
},
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user