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
+42
View File
@@ -0,0 +1,42 @@
package view
import (
"github.com/versenilvis/iris/commands/core"
)
func init() {
core.Register(&core.Spec{
Name: "bat",
Description: "A cat(1) clone with syntax highlighting and Git integration",
Options: []core.Option{
{Name: "-A", Description: "Show non-printable characters"},
{Name: "-p", Description: "Show plain style, no decorations"},
{Name: "-l", Description: "Explicitly set the language for syntax highlighting"},
{Name: "-H", Description: "Highlight the specified line ranges"},
{Name: "--file-name", Description: "File(s)"},
{Name: "-d", Description: "Show lines that have been added/removed/modified with respect to the Git index"},
{Name: "--diff-context", Description: "Lines of context"},
{Name: "--tabs", Description: "Set the tab width to T spaces. Use a width of 0 to pass tabs through directly"},
{Name: "--wrap", Description: "Specify when to use colored output"},
{Name: "--terminal-width", Description: "Explicitly set the width of the terminal instead of determining it automatically"},
{Name: "-n", Description: "Show line numbers, no other decorations"},
{Name: "--color", Description: "Specify when to use colored output"},
{Name: "--italic-text", Description: "Specify when to use ANSI sequences for italic text in the output"},
{Name: "--decorations", Description: "Specify when to use the decorations that have been specified via '--style'"},
{Name: "-f", Description: "Alias for '--decorations=always --color=always'"},
{Name: "--paging", Description: "Specify when to use the pager"},
{Name: "--pager", Description: "Determine which pager is used"},
{Name: "-m", Description: "Map a glob pattern to an existing syntax name"},
{Name: "--ignored-suffix", Description: "Ignore extension"},
{Name: "--theme", Description: "Set the theme for syntax highlighting"},
{Name: "--list-themes", Description: "Display a list of supported themes for syntax highlighting"},
{Name: "--style", Description: "Display a list of supported themes for syntax highlighting"},
{Name: "-r", Description: "Only print the specified range of lines for each file"},
{Name: "-L", Description: "Display a list of supported languages for syntax highlighting"},
{Name: "-u", Description: "Show diagnostic information for bug reports"},
{Name: "--acknowledgements", Description: "Show acknowledgements"},
{Name: "-h", Description: "Print help message"},
{Name: "-V", Description: "Show version information"},
},
})
}
+38
View File
@@ -0,0 +1,38 @@
package view
import (
"github.com/versenilvis/iris/commands/core"
)
func init() {
core.Register(&core.Spec{
Name: "code",
Description: "Read from stdin (e.g.",
Options: []core.Option{
{Name: "-d", Description: "Compare two files with each other"},
{Name: "-m", Description: "Add folder(s) to the last active window"},
{Name: "-g", Description: "Open a file at the path on the specified line and character position"},
{Name: "-n", Description: "Force to open a new window"},
{Name: "-r", Description: "Force to open a file or folder in an already opened window"},
{Name: "-w", Description: "Wait for the files to be closed before returning"},
{Name: "--locale", Description: "The locale to use (e.g. en-US or zh-TW)"},
{Name: "--user-data-dir", Description: "Print usage"},
{Name: "--extensions-dir", Description: "Set the root path for extensions"},
{Name: "--list-extensions", Description: "List the installed extensions"},
{Name: "--show-versions", Description: "Show versions of installed extensions, when using --list-extensions"},
{Name: "--category", Description: "Filters installed extensions by provided category, when using --list-extensions"},
{Name: "--install-extension", Description: "Uninstalls an extension"},
{Name: "--enable-proposed-api", Description: "Print version"},
{Name: "--verbose", Description: "Print verbose output (implies --wait)"},
{Name: "--log", Description: "Log level to use. Default is 'info' when unspecified"},
{Name: "-s", Description: "Print process usage and diagnostics information"},
{Name: "--prof-startup", Description: "Run CPU profiler during startup"},
{Name: "--disable-extensions", Description: "Disable all installed extensions"},
{Name: "--disable-extension", Description: "Disable an extension"},
{Name: "--sync", Description: "Turn sync on or off"},
{Name: "--inspect-extensions", Description: "Disable GPU hardware acceleration"},
{Name: "--max-memory", Description: "Max memory size for a window (in Mbytes)"},
{Name: "--telemetry", Description: "Shows all telemetry events which VS code collects"},
},
})
}
+12
View File
@@ -0,0 +1,12 @@
package view
import (
"github.com/versenilvis/iris/commands/core"
)
func init() {
core.Register(&core.Spec{
Name: "cot",
Description: "Command-line utility for CotEditor",
})
}
+12
View File
@@ -0,0 +1,12 @@
package view
import (
"github.com/versenilvis/iris/commands/core"
)
func init() {
core.Register(&core.Spec{
Name: "emacs",
Description: "An extensible, customizable, free/libre text editor - and more",
})
}
+28
View File
@@ -0,0 +1,28 @@
package view
import (
"github.com/versenilvis/iris/commands/core"
)
func init() {
core.Register(&core.Spec{
Name: "glow",
Description: "Render markdown on the CLI, with pizzazz!",
Subcommands: []core.Subcommand{
{Name: "config", Description: "Edit the glow config file"},
{Name: "help", Description: "Help about any command"},
{Name: "stash", Description: "Manage your stash of markdown files"},
},
Options: []core.Option{
{Name: "-a", Description: "Show system files and directories (TUI-mode only)"},
{Name: "--config", Description: "Config file"},
{Name: "-h", Description: "Help for glow"},
{Name: "-l", Description: "Show local files only; no network (TUI-mode only)"},
{Name: "-p", Description: "Display with pager"},
{Name: "-s", Description: "Style name or JSON path (default 'auto')"},
{Name: "-v", Description: "Version for glow"},
{Name: "-w", Description: "Word-wrap at width"},
{Name: "-m", Description: "Memo/note for stashing"},
},
})
}
+28
View File
@@ -0,0 +1,28 @@
package view
import (
"github.com/versenilvis/iris/commands/core"
)
func init() {
core.Register(&core.Spec{
Name: "idea",
Description: "IntelliJ IDEA CLI",
Subcommands: []core.Subcommand{
{Name: "diff", Description: "Open the diff viewer to see the differences between two specified files"},
{Name: "merge", Description: "Open the Merge dialog to merge the specified files"},
{Name: "format", Description: "Apply code style formatting to the specified files"},
{Name: "inspect", Description: "Perform code inspection on the specified project"},
},
Options: []core.Option{
{Name: "-h", Description: "Show help for format command"},
{Name: "-m", Description: "Process specified directories recursively"},
{Name: "-s", Description: "Specify the code style settings file to use for formatting"},
{Name: "-allowDefaults", Description: "Preserve encoding and enforce the charset for reading and writing source files"},
{Name: "-d", Description: "Run the formatter in the validation mode"},
{Name: "-changes", Description: "Run inspections only on local uncommitted changes"},
{Name: "-v", Description: "Set the verbosity level of the output"},
{Name: "--wait", Description: "Wait for the files to be closed before returning to the command prompt"},
},
})
}
+43
View File
@@ -0,0 +1,43 @@
package view
import (
"github.com/versenilvis/iris/commands/core"
)
func init() {
core.Register(&core.Spec{
Name: "lvim",
Description: "Hyperextensible Vim-based text editor",
Options: []core.Option{
{Name: "--cmd", Description: "Execute <cmd> before any config"},
{Name: "-c", Description: "Execute <cmd> after config and first file"},
{Name: "-b", Description: "Binary mode"},
{Name: "-d", Description: "Diff mode"},
{Name: "-e", Description: "Ex mode"},
{Name: "-es", Description: "Silent (batch) mode"},
{Name: "-h", Description: "Print this help message"},
{Name: "-i", Description: "Use this shada file"},
{Name: "-m", Description: "Modifications (writing files) not allowed"},
{Name: "-M", Description: "Modifications in text not allowed"},
{Name: "-n", Description: "No swap file, use memory only"},
{Name: "-o", Description: "Open N windows (default: one per file)"},
{Name: "-O", Description: "Open N vertical windows (default: one per file)"},
{Name: "-p", Description: "Open N tab pages (default: one per file)"},
{Name: "-L", Description: "List swap files"},
{Name: "-r", Description: "Recover edit state for this file"},
{Name: "-R", Description: "Read-only mode"},
{Name: "-S", Description: "Source <session> after loading the first file"},
{Name: "-s", Description: "Read Normal mode commands from <scriptin>"},
{Name: "-u", Description: "Use this config file"},
{Name: "-v", Description: "Print version information"},
{Name: "--api-info", Description: "Write msgpack-encoded API metadata to stdout"},
{Name: "--embed", Description: "Use stdin/stdout as a msgpack-rpc channel"},
{Name: "--headless", Description: "Don't start a user interface"},
{Name: "--listen", Description: "Serve RPC API from this address"},
{Name: "--noplugin", Description: "Don't load plugins"},
{Name: "--remote", Description: "Execute commands remotely on a server"},
{Name: "--server", Description: "Specify RPC server to send commands to"},
{Name: "--startuptime", Description: "Write startup timing messages to <file>"},
},
})
}
+61
View File
@@ -0,0 +1,61 @@
package view
import (
"github.com/versenilvis/iris/commands/core"
)
func init() {
core.Register(&core.Spec{
Name: "micro",
Description: "True/false",
Subcommands: []core.Subcommand{
{Name: "remove", Description: "Remove plugin(s)"},
{Name: "update", Description: "Update plugin(s) (if no argument is given, updates all plugins)"},
{Name: "search", Description: "Search for a plugin"},
{Name: "list", Description: "List installed plugins"},
{Name: "available", Description: "List available plugins"},
},
Options: []core.Option{
{Name: "--plugin", Description: "Manage plugins"},
{Name: "--clean", Description: "Cleans the configuration directory"},
{Name: "--config-dir", Description: "Specify a custom location for the configuration directory"},
{Name: "--options", Description: "Show all option help"},
{Name: "--debug", Description: "Enable debug mode"},
{Name: "--version", Description: "Show the version number and information"},
{Name: "--autoindent", Description: "When creating a new line, use the same indentation as the previous line"},
{Name: "--autosave", Description: "Seconds"},
{Name: "--autosu", Description: "Automatically attempt to use super user privileges to save without asking"},
{Name: "--backup", Description: "Automatically keep backups of all open buffers"},
{Name: "--backupdir", Description: "The directory to place backups in"},
{Name: "--basename", Description: "Apecifies how the system clipboard should be accessed"},
{Name: "--colorcolumn", Description: "Display a color at the specified column if not set to 0"},
{Name: "--colorscheme", Description: "Loads the colorscheme stored in $(configDir)/colorschemes/<scheme>.micro"},
{Name: "--cursorline", Description: "Highlight the line that the cursor is on in a different color"},
{Name: "--diffgutter", Description: "Display diff indicators before lines"},
{Name: "--divchars", Description: "Reverse colors specified by the colorscheme"},
{Name: "--encoding", Description: "The encoding to open and save files with"},
{Name: "--eofnewline", Description: "Automatically add a newline to the end of the file if one does not exist"},
{Name: "--fastdirty", Description: "Use 'fast dirty' algorithm to determine if a buffer is modified or not"},
{Name: "--fileformat", Description: "Type of line endings to be used for the file"},
{Name: "--filetype", Description: "File type for the current buffer"},
{Name: "--ignorecase", Description: "Perform case-insensitive searches"},
{Name: "--incsearch", Description: "Sets the indentation character"},
{Name: "--infobar", Description: "Enables the line at the bottom of the editor where messages are printed"},
{Name: "--keepautoindent", Description: "Display the nano-style key menu at the bottom of the screen"},
{Name: "--matchbrace", Description: "Enable mouse support"},
{Name: "--paste", Description: "Cause backups to be permanently saved"},
{Name: "--pluginchannels", Description: "List of URLs pointing to plugin channels for downloading and installing plugins"},
{Name: "--pluginrepos", Description: "A list of links to plugin repositories"},
{Name: "--readonly", Description: "Disallow edits to the buffer"},
{Name: "--relativeruler", Description: "Make line numbers display relatively"},
{Name: "--rmtrailingws", Description: "Automatically trim trailing whitespaces at ends of lines"},
{Name: "--ruler", Description: "Display line numbers"},
{Name: "--savecursor", Description: "Remember command history between closing and re-opening micro"},
{Name: "--saveundo", Description: "Remember undo state between closing and re-opening a file"},
{Name: "--scrollbar", Description: "Display a scroll bar"},
{Name: "--scrollmargin", Description: "Number of lines to scroll for one scroll event"},
{Name: "--smartpaste", Description: "Add leading whitespace when pasting multiple lines"},
{Name: "--softwrap", Description: "Wrap lines that are too long to fit on the screen"},
},
})
}
+22
View File
@@ -0,0 +1,22 @@
package view
import (
"github.com/versenilvis/iris/commands/core"
)
func init() {
core.Register(&core.Spec{
Name: "more",
Description: "Opposite of less",
Options: []core.Option{
{Name: "-d", Description: "Do not pause after any line containing a ^L (form feed)"},
{Name: "-f", Description: "Count logical lines, rather than screen lines"},
{Name: "-p", Description: "Instead, clear the whole screen and then display the text"},
{Name: "-c", Description: "Squeeze multiple blank lines into one"},
{Name: "-u", Description: "Silently ignored as backwards compatibility"},
{Name: "-n", Description: "Specify the number of lines per screenful"},
{Name: "--help", Description: "Display help text"},
{Name: "-V", Description: "Display version information"},
},
})
}
+12
View File
@@ -0,0 +1,12 @@
package view
import (
"github.com/versenilvis/iris/commands/core"
)
func init() {
core.Register(&core.Spec{
Name: "nano",
Description: "Nano",
})
}
+43
View File
@@ -0,0 +1,43 @@
package view
import (
"github.com/versenilvis/iris/commands/core"
)
func init() {
core.Register(&core.Spec{
Name: "nvim",
Description: "Hyperextensible Vim-based text editor",
Options: []core.Option{
{Name: "--cmd", Description: "Execute <cmd> before any config"},
{Name: "-c", Description: "Execute <cmd> after config and first file"},
{Name: "-b", Description: "Binary mode"},
{Name: "-d", Description: "Diff mode"},
{Name: "-e", Description: "Ex mode"},
{Name: "-es", Description: "Silent (batch) mode"},
{Name: "-h", Description: "Print this help message"},
{Name: "-i", Description: "Use this shada file"},
{Name: "-m", Description: "Modifications (writing files) not allowed"},
{Name: "-M", Description: "Modifications in text not allowed"},
{Name: "-n", Description: "No swap file, use memory only"},
{Name: "-o", Description: "Open N windows (default: one per file)"},
{Name: "-O", Description: "Open N vertical windows (default: one per file)"},
{Name: "-p", Description: "Open N tab pages (default: one per file)"},
{Name: "-L", Description: "List swap files"},
{Name: "-r", Description: "Recover edit state for this file"},
{Name: "-R", Description: "Read-only mode"},
{Name: "-S", Description: "Source <session> after loading the first file"},
{Name: "-s", Description: "Read Normal mode commands from <scriptin>"},
{Name: "-u", Description: "Use this config file"},
{Name: "-v", Description: "Print version information"},
{Name: "--api-info", Description: "Write msgpack-encoded API metadata to stdout"},
{Name: "--embed", Description: "Use stdin/stdout as a msgpack-rpc channel"},
{Name: "--headless", Description: "Don't start a user interface"},
{Name: "--listen", Description: "Serve RPC API from this address"},
{Name: "--noplugin", Description: "Don't load plugins"},
{Name: "--remote", Description: "Execute commands remotely on a server"},
{Name: "--server", Description: "Specify RPC server to send commands to"},
{Name: "--startuptime", Description: "Write startup timing messages to <file>"},
},
})
}
+54
View File
@@ -0,0 +1,54 @@
package view
import (
"github.com/versenilvis/iris/commands/core"
)
func init() {
core.Register(&core.Spec{
Name: "rich",
Description: "Defined by terminal, appearance may differ",
Options: []core.Option{
{Name: "-p", Description: "Print console markup. See https://rich.readthedocs.io/en/latest/markup.html"},
{Name: "-u", Description: "Display a horizontal rule"},
{Name: "-j", Description: "Display as JSON"},
{Name: "-m", Description: "Display as markdown"},
{Name: "--rst", Description: "Display restructured text"},
{Name: "--csv", Description: "Display CSV as a table"},
{Name: "--ipynb", Description: "Display Jupyter notebook"},
{Name: "--syntax", Description: "Syntax highlighting"},
{Name: "--inspect", Description: "Inspect a python object"},
{Name: "-h", Description: "Display first LINES of the file"},
{Name: "-t", Description: "Display last LINES of the file"},
{Name: "-l", Description: "Align to left"},
{Name: "-r", Description: "Align to right"},
{Name: "-c", Description: "Align to center"},
{Name: "-L", Description: "Justify text to left"},
{Name: "-R", Description: "Justify text to right"},
{Name: "-C", Description: "Justify text to center"},
{Name: "-F", Description: "Justify text to both left and right edges"},
{Name: "--soft", Description: "Enable soft wrapping of text"},
{Name: "-e", Description: "Expand to full width"},
{Name: "-w", Description: "Fit output to SIZE characters"},
{Name: "-W", Description: "Set maximum width to SIZE characters"},
{Name: "-s", Description: "Set text style to STYLE"},
{Name: "--rule-style", Description: "Set rule style to STYLE"},
{Name: "--rule-char", Description: "Use CHARACTER to generate a line with --rule"},
{Name: "-d", Description: "Padding around output. 1, 2 or 4 comma separated integers, e.g. 2,4"},
{Name: "-a", Description: "Set panel type to BOX"},
{Name: "-S", Description: "Set the panel style to STYLE"},
{Name: "--theme", Description: "Set syntax theme to THEME. See https://pygments.org/styles/"},
{Name: "-n", Description: "Enable line number in syntax"},
{Name: "-g", Description: "Enable indentation guides in syntax highlighting"},
{Name: "-y", Description: "Render hyperlinks in markdown"},
{Name: "--no-wrap", Description: "Don't word wrap syntax highlighted files"},
{Name: "--title", Description: "Set panel title to TEXT"},
{Name: "--caption", Description: "Set panel caption to TEXT"},
{Name: "--force-terminal", Description: "Force terminal output when not writing to a terminal"},
{Name: "-o", Description: "Write HTML to PATH"},
{Name: "--export-svg", Description: "Write SVG to PATH"},
{Name: "--pager", Description: "Display in an interactive pager"},
{Name: "-v", Description: "Print version and exit"},
},
})
}
+25
View File
@@ -0,0 +1,25 @@
package view
import (
"github.com/versenilvis/iris/commands/core"
)
func init() {
core.Register(&core.Spec{
Name: "subl",
Description: "Sublime Text",
Options: []core.Option{
{Name: "--project", Description: "Load the given project"},
{Name: "--command", Description: "Run the given command"},
{Name: "-n", Description: "Open a new window"},
{Name: "-a", Description: "Add folders to the current window"},
{Name: "--launch-or-new-window", Description: "Only open a new window if the application is open"},
{Name: "-w", Description: "Wait for the files to be closed before returning"},
{Name: "-b", Description: "Don't activate the application"},
{Name: "-s", Description: "Keep the application activated after closing the file"},
{Name: "--safe-mode", Description: "Launch using a clean environment"},
{Name: "-h", Description: "Show a help message and exit"},
{Name: "-v", Description: "Show the version and exit"},
},
})
}
+15
View File
@@ -0,0 +1,15 @@
package view
import (
"github.com/versenilvis/iris/commands/core"
)
func init() {
core.Register(&core.Spec{
Name: "vi",
Description: "Print help message for vi and exit",
Options: []core.Option{
{Name: "-h", Description: "Print help message for vi and exit"},
},
})
}
+51
View File
@@ -0,0 +1,51 @@
package view
import (
"github.com/versenilvis/iris/commands/core"
)
func init() {
core.Register(&core.Spec{
Name: "vim",
Description: "Vi IMproved, a programmer",
Options: []core.Option{
{Name: "-v", Description: "Vi mode (like 'vi')"},
{Name: "-e", Description: "Ex mode (like 'ex')"},
{Name: "-E", Description: "Improved Ex mode"},
{Name: "-s", Description: "Enable silent mode (when in ex mode), or Read Normal mode commands from file"},
{Name: "-d", Description: "Diff mode (like 'vimdiff')"},
{Name: "-y", Description: "Easy mode (like 'evim', modeless)"},
{Name: "-R", Description: "Readonly mode (like 'view')"},
{Name: "-Z", Description: "Restricted mode (like 'rvim')"},
{Name: "-m", Description: "Modifications (writing files) not allowed"},
{Name: "-M", Description: "Modifications in text not allowed"},
{Name: "-b", Description: "Binary mode"},
{Name: "-l", Description: "Lisp mode"},
{Name: "-C", Description: "Compatible with Vi: 'compatible'"},
{Name: "-N", Description: "Not fully Vi compatible: 'nocompatible'"},
{Name: "-V", Description: "Be verbose [level N] [log messages to fname]"},
{Name: "-D", Description: "Debugging mode"},
{Name: "-n", Description: "No swap file, use memory only"},
{Name: "-r", Description: "Same as -r"},
{Name: "-T", Description: "Set terminal type to <terminal>"},
{Name: "--not-a-term", Description: "Skip warning for input/output not being a terminal"},
{Name: "--ttyfail", Description: "Exit if input or output is not a terminal"},
{Name: "-u", Description: "Use <vimrc> instead of any .vimrc"},
{Name: "--noplugin", Description: "Don't load plugin scripts"},
{Name: "-p", Description: "Open N tab pages (default: one for each file)"},
{Name: "-o", Description: "Open N windows (default: one for each file)"},
{Name: "-O", Description: "Like -o but split vertically"},
{Name: "--cmd", Description: "Execute <command> before loading any vimrc file"},
{Name: "-c", Description: "Execute <command> after loading the first file"},
{Name: "-S", Description: "Source file <session> after loading the first file"},
{Name: "-w", Description: "Append all typed commands to file <scriptout>"},
{Name: "-W", Description: "Write all typed commands to file <scriptout>"},
{Name: "-x", Description: "Edit encrypted files"},
{Name: "--startuptime", Description: "Write startup timing messages to <file>"},
{Name: "-i", Description: "Use <viminfo> instead of .viminfo"},
{Name: "--clean", Description: "'nocompatible', Vim defaults, no plugins, no viminfo"},
{Name: "-h", Description: "Print Help message and exit"},
{Name: "--version", Description: "Print version information and exit"},
},
})
}
+21
View File
@@ -0,0 +1,21 @@
package view
import (
"github.com/versenilvis/iris/commands/core"
)
func init() {
core.Register(&core.Spec{
Name: "vimr",
Description: "VimR - Neovim GUI for macOS in Swift",
Options: []core.Option{
{Name: "-h", Description: "Show help"},
{Name: "--dry-run", Description: "Just print the 'open' command"},
{Name: "--cwd", Description: "Set the working directory"},
{Name: "--line", Description: "Go to line"},
{Name: "--wait", Description: "This command line tool will exit when the corresponding UI window is closed"},
{Name: "--nvim", Description: "Open files in tabs in a new window"},
{Name: "-s", Description: "Open files in separate windows"},
},
})
}
+19
View File
@@ -0,0 +1,19 @@
package view
import (
"github.com/versenilvis/iris/commands/core"
)
func init() {
core.Register(&core.Spec{
Name: "xed",
Description: "Xcode text editor invocation tool",
Options: []core.Option{
{Name: "--launch", Description: "Launches Xcode, opening a new empty unsaved file"},
{Name: "--create", Description: "Selects the given line in the last file opened"},
{Name: "--background", Description: "Opens Xcode without activating it; the process that invoked xed remains in front"},
{Name: "--help", Description: "Show help for xed"},
{Name: "--version", Description: "Prints the version number of xed"},
},
})
}
+30
View File
@@ -0,0 +1,30 @@
package view
import (
"github.com/versenilvis/iris/commands/core"
)
func init() {
core.Register(&core.Spec{
Name: "xxd",
Description: "Make a hexdump or do the reverse",
Options: []core.Option{
{Name: "-help", Description: "Show help for xxd"},
{Name: "-autoskip", Description: "Toggle autoskip: A single '*' replaces nul-lines. Default off"},
{Name: "-bits", Description: "Switch to bits (binary digits) dump, rather than hexdump"},
{Name: "-cols", Description: "Format <cols> octets per line. Default 16"},
{Name: "-capitalize", Description: "Capitalize variable names in C include file style, when using -i"},
{Name: "-EBCDIC", Description: "Change the character encoding in the righthand column from ASCII to EBCDIC"},
{Name: "-e", Description: "Switch to little-endian hexdump"},
{Name: "-groupsize", Description: "Separate the output of every <bytes> bytes"},
{Name: "-include", Description: "Output in C include file style"},
{Name: "-len", Description: "Stop after writing <len> octets"},
{Name: "-name", Description: "Override the variable name output when -i is used"},
{Name: "-o", Description: "Add <offset> to the displayed file position"},
{Name: "-postscript", Description: "Output in postscript continuous hexdump style"},
{Name: "-revert", Description: "Reverse operation: convert (or patch) hexdump into binary"},
{Name: "-seek", Description: "Use upper case hex letters. Default is lower case"},
{Name: "-version", Description: "Show version string"},
},
})
}
+18
View File
@@ -0,0 +1,18 @@
package view
import (
"github.com/versenilvis/iris/commands/core"
)
func init() {
core.Register(&core.Spec{
Name: "zed",
Description: "A lightning-fast, collaborative code editor written in Rust",
Options: []core.Option{
{Name: "-h", Description: "Print help information"},
{Name: "-v", Description: "Print Zed's version and the app path"},
{Name: "-w", Description: "Wait for all of the given paths to be closed before exiting"},
{Name: "-b", Description: "Custom Zed.app path"},
},
})
}