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
+54
View File
@@ -0,0 +1,54 @@
package text
import (
"github.com/versenilvis/iris/commands/core"
)
func init() {
core.Register(&core.Spec{
Name: "diff",
Description: "Compare files line by line",
Options: []core.Option{
{Name: "-i", Description: "Ignore case differences in file contents"},
{Name: "--ignore-file-name-case", Description: "Ignore case when comparing file names"},
{Name: "--no-ignore-file-name-case", Description: "Consider case when comparing file names"},
{Name: "-E", Description: "Ignore changes due to tab expansion"},
{Name: "-b", Description: "Ignore changes in the amount of white space"},
{Name: "-w", Description: "Ignore all white space"},
{Name: "-B", Description: "Ignore changes whose lines are all blank"},
{Name: "-I", Description: "Ignore changes whose lines all match RE"},
{Name: "--strip-trailing-cr", Description: "Strip trailing carriage return on input"},
{Name: "-a", Description: "Treat all files as text"},
{Name: "-c", Description: "Output NUM lines of copied context"},
{Name: "-u", Description: "Output NUM lines of unified context"},
{Name: "--label", Description: "Use LABEL instead of file name"},
{Name: "-p", Description: "Show which C function each change is in"},
{Name: "-F", Description: "Show the most recent line matching RE"},
{Name: "-q", Description: "Output only whether files differ"},
{Name: "-e", Description: "Output an ed script"},
{Name: "--normal", Description: "Output a normal diff"},
{Name: "-n", Description: "Output an RCS format diff"},
{Name: "-y", Description: "Output in two columns"},
{Name: "-W", Description: "Output at most NUM (default 130) print columns"},
{Name: "--left-column", Description: "Output only the left column of common lines"},
{Name: "--suppress-common-lines", Description: "Do not output common lines"},
{Name: "-D", Description: "Output merged file to show `#ifdef NAME' diffs"},
{Name: "-l", Description: "Pass the output through `pr' to paginate it"},
{Name: "-t", Description: "Expand tabs to spaces in output"},
{Name: "-T", Description: "Make tabs line up by prepending a tab"},
{Name: "-r", Description: "Recursively compare any subdirectories found"},
{Name: "-N", Description: "Treat absent files as empty"},
{Name: "--unidirectional-new-file", Description: "Treat absent first files as empty"},
{Name: "-s", Description: "Report when two files are the same"},
{Name: "-x", Description: "Exclude files that match PAT"},
{Name: "-X", Description: "Exclude files that match any pattern in FILE"},
{Name: "-S", Description: "Start with FILE when comparing directories"},
{Name: "--from-file", Description: "Compare FILE1 to all operands. FILE1 can be a directory"},
{Name: "--to-file", Description: "Compare all operands to FILE2. FILE2 can be a directory"},
{Name: "--horizon-lines", Description: "Keep NUM lines of the common prefix and suffix"},
{Name: "-d", Description: "Try hard to find a smaller set of changes"},
{Name: "--speed-large-files", Description: "Assume large files and many scattered small changes"},
{Name: "-v", Description: "Output version info"},
},
})
}