@enjoys/context-engine 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (138) hide show
  1. package/README.md +213 -0
  2. package/data/commands/air.json +59 -0
  3. package/data/commands/ansible.json +24 -0
  4. package/data/commands/apachectl.json +87 -0
  5. package/data/commands/apt-get.json +81 -0
  6. package/data/commands/apt.json +91 -0
  7. package/data/commands/awk.json +26 -0
  8. package/data/commands/aws-vault.json +140 -0
  9. package/data/commands/aws.json +229 -0
  10. package/data/commands/az.json +36 -0
  11. package/data/commands/bazel.json +103 -0
  12. package/data/commands/brew.json +140 -0
  13. package/data/commands/bun.json +230 -0
  14. package/data/commands/caddy.json +194 -0
  15. package/data/commands/cargo.json +1048 -0
  16. package/data/commands/cat.json +18 -0
  17. package/data/commands/cd.json +48 -0
  18. package/data/commands/certbot.json +148 -0
  19. package/data/commands/chmod.json +97 -0
  20. package/data/commands/choco.json +134 -0
  21. package/data/commands/chown.json +59 -0
  22. package/data/commands/clickhouse-client.json +74 -0
  23. package/data/commands/cloudflare.json +226 -0
  24. package/data/commands/cmake.json +110 -0
  25. package/data/commands/cockroach.json +92 -0
  26. package/data/commands/conda.json +94 -0
  27. package/data/commands/consul.json +125 -0
  28. package/data/commands/cp.json +86 -0
  29. package/data/commands/curl.json +44 -0
  30. package/data/commands/cypress.json +100 -0
  31. package/data/commands/deno.json +29 -0
  32. package/data/commands/django-admin.json +86 -0
  33. package/data/commands/dnf.json +137 -0
  34. package/data/commands/docker.json +1100 -0
  35. package/data/commands/doctl.json +156 -0
  36. package/data/commands/eslint.json +69 -0
  37. package/data/commands/find.json +44 -0
  38. package/data/commands/firebase.json +97 -0
  39. package/data/commands/flask.json +79 -0
  40. package/data/commands/flyctl.json +148 -0
  41. package/data/commands/gcloud.json +227 -0
  42. package/data/commands/gh.json +39 -0
  43. package/data/commands/git.json +527 -0
  44. package/data/commands/glab.json +116 -0
  45. package/data/commands/go.json +161 -0
  46. package/data/commands/gofmt.json +51 -0
  47. package/data/commands/golangci-lint.json +89 -0
  48. package/data/commands/gradle.json +44 -0
  49. package/data/commands/grep.json +47 -0
  50. package/data/commands/gunicorn.json +83 -0
  51. package/data/commands/helm.json +1104 -0
  52. package/data/commands/hg.json +92 -0
  53. package/data/commands/httpd.json +147 -0
  54. package/data/commands/influx.json +119 -0
  55. package/data/commands/iptables.json +86 -0
  56. package/data/commands/java.json +31 -0
  57. package/data/commands/jest.json +82 -0
  58. package/data/commands/journalctl.json +88 -0
  59. package/data/commands/just.json +93 -0
  60. package/data/commands/k6.json +84 -0
  61. package/data/commands/kubectl.json +1277 -0
  62. package/data/commands/linode-cli.json +117 -0
  63. package/data/commands/locust.json +83 -0
  64. package/data/commands/ls.json +115 -0
  65. package/data/commands/make.json +86 -0
  66. package/data/commands/mocha.json +75 -0
  67. package/data/commands/mongosh.json +73 -0
  68. package/data/commands/mv.json +68 -0
  69. package/data/commands/mvn.json +45 -0
  70. package/data/commands/mysql.json +81 -0
  71. package/data/commands/nest.json +69 -0
  72. package/data/commands/netlify.json +92 -0
  73. package/data/commands/next.json +71 -0
  74. package/data/commands/nft.json +105 -0
  75. package/data/commands/nginx.json +146 -0
  76. package/data/commands/nmap.json +92 -0
  77. package/data/commands/node.json +43 -0
  78. package/data/commands/nomad.json +139 -0
  79. package/data/commands/npm.json +1265 -0
  80. package/data/commands/npx.json +58 -0
  81. package/data/commands/nx.json +82 -0
  82. package/data/commands/openssl.json +288 -0
  83. package/data/commands/packer.json +92 -0
  84. package/data/commands/pacman.json +82 -0
  85. package/data/commands/pg_dump.json +83 -0
  86. package/data/commands/pg_restore.json +74 -0
  87. package/data/commands/pip.json +95 -0
  88. package/data/commands/pipenv.json +79 -0
  89. package/data/commands/pipx.json +53 -0
  90. package/data/commands/playwright.json +97 -0
  91. package/data/commands/pnpm.json +29 -0
  92. package/data/commands/poetry.json +96 -0
  93. package/data/commands/prettier.json +71 -0
  94. package/data/commands/ps.json +31 -0
  95. package/data/commands/psql.json +124 -0
  96. package/data/commands/pulumi.json +130 -0
  97. package/data/commands/pytest.json +92 -0
  98. package/data/commands/python.json +30 -0
  99. package/data/commands/railway.json +91 -0
  100. package/data/commands/redis-cli.json +148 -0
  101. package/data/commands/render.json +72 -0
  102. package/data/commands/rm.json +79 -0
  103. package/data/commands/rsync.json +36 -0
  104. package/data/commands/rust.json +35 -0
  105. package/data/commands/rustup.json +103 -0
  106. package/data/commands/scp.json +60 -0
  107. package/data/commands/sed.json +28 -0
  108. package/data/commands/sqlite3.json +68 -0
  109. package/data/commands/ssh-keygen.json +112 -0
  110. package/data/commands/ssh.json +37 -0
  111. package/data/commands/sudo.json +147 -0
  112. package/data/commands/supabase.json +108 -0
  113. package/data/commands/svn.json +75 -0
  114. package/data/commands/systemctl.json +31 -0
  115. package/data/commands/tar.json +35 -0
  116. package/data/commands/tcpdump.json +77 -0
  117. package/data/commands/terraform.json +824 -0
  118. package/data/commands/terragrunt.json +83 -0
  119. package/data/commands/tsc.json +85 -0
  120. package/data/commands/turbo.json +72 -0
  121. package/data/commands/ufw.json +76 -0
  122. package/data/commands/unzip.json +59 -0
  123. package/data/commands/uvicorn.json +73 -0
  124. package/data/commands/vault.json +144 -0
  125. package/data/commands/vercel.json +98 -0
  126. package/data/commands/vite.json +63 -0
  127. package/data/commands/vitest.json +88 -0
  128. package/data/commands/wasm-pack.json +90 -0
  129. package/data/commands/wget.json +38 -0
  130. package/data/commands/winget.json +131 -0
  131. package/data/commands/wireshark.json +81 -0
  132. package/data/commands/yarn.json +28 -0
  133. package/data/commands/yum.json +98 -0
  134. package/data/commands/zip.json +59 -0
  135. package/index.d.ts +131 -0
  136. package/index.js +189 -0
  137. package/index.mjs +21 -0
  138. package/package.json +64 -0
@@ -0,0 +1,116 @@
1
+ {
2
+ "name": "glab",
3
+ "description": "GitLab CLI for managing GitLab repositories, issues, merge requests, and CI/CD",
4
+ "category": "Version Control",
5
+ "platforms": ["linux", "macos", "windows"],
6
+ "shells": ["bash", "zsh", "powershell", "fish"],
7
+ "subcommands": [
8
+ { "name": "mr", "description": "Manage merge requests", "subcommands": [
9
+ { "name": "create", "description": "Create a merge request", "options": [{ "name": "--title", "shorthand": "-t", "description": "MR title", "takesValue": true }, { "name": "--description", "shorthand": "-d", "description": "MR description", "takesValue": true }, { "name": "--source-branch", "shorthand": "-s", "description": "Source branch", "takesValue": true }, { "name": "--target-branch", "description": "Target branch", "takesValue": true }, { "name": "--assignee", "shorthand": "-a", "description": "Assignee", "takesValue": true }, { "name": "--label", "shorthand": "-l", "description": "Labels", "takesValue": true }, { "name": "--draft", "description": "Create as draft" }, { "name": "--squash-before-merge", "description": "Squash on merge" }] },
10
+ { "name": "list", "description": "List merge requests", "options": [{ "name": "--state", "description": "Filter by state (opened, merged, closed)", "takesValue": true }, { "name": "--author", "description": "Filter by author", "takesValue": true }, { "name": "--assignee", "description": "Filter by assignee", "takesValue": true }] },
11
+ { "name": "view", "description": "View a merge request", "args": [{ "name": "id", "description": "MR ID", "required": true }], "options": [{ "name": "--web", "shorthand": "-w", "description": "Open in browser" }] },
12
+ { "name": "merge", "description": "Merge a merge request", "args": [{ "name": "id", "description": "MR ID", "required": true }], "options": [{ "name": "--squash", "shorthand": "-s", "description": "Squash commits" }, { "name": "--remove-source-branch", "shorthand": "-d", "description": "Delete source branch" }] },
13
+ { "name": "close", "description": "Close a merge request", "args": [{ "name": "id", "description": "MR ID", "required": true }] },
14
+ { "name": "approve", "description": "Approve a merge request", "args": [{ "name": "id", "description": "MR ID", "required": true }] },
15
+ { "name": "checkout", "description": "Checkout MR branch", "args": [{ "name": "id", "description": "MR ID", "required": true }] },
16
+ { "name": "diff", "description": "View MR diff", "args": [{ "name": "id", "description": "MR ID", "required": true }] },
17
+ { "name": "note", "description": "Add a comment to MR", "args": [{ "name": "id", "description": "MR ID", "required": true }], "options": [{ "name": "--message", "shorthand": "-m", "description": "Comment text", "takesValue": true }] }
18
+ ]},
19
+ { "name": "issue", "description": "Manage issues", "subcommands": [
20
+ { "name": "create", "description": "Create an issue", "options": [{ "name": "--title", "shorthand": "-t", "description": "Issue title", "takesValue": true }, { "name": "--description", "shorthand": "-d", "description": "Issue description", "takesValue": true }, { "name": "--label", "shorthand": "-l", "description": "Labels", "takesValue": true }, { "name": "--assignee", "shorthand": "-a", "description": "Assignee", "takesValue": true }] },
21
+ { "name": "list", "description": "List issues", "options": [{ "name": "--state", "description": "Filter by state", "takesValue": true }, { "name": "--label", "shorthand": "-l", "description": "Filter by label", "takesValue": true }] },
22
+ { "name": "view", "description": "View an issue", "args": [{ "name": "id", "description": "Issue ID", "required": true }] },
23
+ { "name": "close", "description": "Close an issue", "args": [{ "name": "id", "description": "Issue ID", "required": true }] },
24
+ { "name": "reopen", "description": "Reopen an issue", "args": [{ "name": "id", "description": "Issue ID", "required": true }] },
25
+ { "name": "note", "description": "Add a comment", "args": [{ "name": "id", "description": "Issue ID", "required": true }] }
26
+ ]},
27
+ { "name": "ci", "description": "Manage CI/CD pipelines", "subcommands": [
28
+ { "name": "list", "description": "List pipelines" },
29
+ { "name": "view", "description": "View a pipeline", "args": [{ "name": "id", "description": "Pipeline ID", "required": false }] },
30
+ { "name": "run", "description": "Trigger a pipeline", "options": [{ "name": "--branch", "shorthand": "-b", "description": "Branch", "takesValue": true }] },
31
+ { "name": "retry", "description": "Retry a pipeline", "args": [{ "name": "id", "description": "Pipeline ID", "required": true }] },
32
+ { "name": "delete", "description": "Delete a pipeline", "args": [{ "name": "id", "description": "Pipeline ID", "required": true }] },
33
+ { "name": "trace", "description": "Trace a running pipeline" },
34
+ { "name": "lint", "description": "Lint .gitlab-ci.yml" }
35
+ ]},
36
+ { "name": "repo", "description": "Repository commands", "subcommands": [
37
+ { "name": "clone", "description": "Clone a repository", "args": [{ "name": "repo", "description": "Repository path", "required": true }] },
38
+ { "name": "fork", "description": "Fork a repository" },
39
+ { "name": "view", "description": "View repository", "options": [{ "name": "--web", "shorthand": "-w", "description": "Open in browser" }] }
40
+ ]},
41
+ { "name": "release", "description": "Manage releases", "subcommands": [
42
+ { "name": "create", "description": "Create a release", "args": [{ "name": "tag", "description": "Tag name", "required": true }], "options": [{ "name": "--name", "shorthand": "-n", "description": "Release name", "takesValue": true }, { "name": "--notes", "description": "Release notes", "takesValue": true }] },
43
+ { "name": "list", "description": "List releases" },
44
+ { "name": "view", "description": "View a release", "args": [{ "name": "tag", "description": "Tag", "required": true }] }
45
+ ]},
46
+ { "name": "label", "description": "Manage labels", "subcommands": [
47
+ { "name": "list", "description": "List labels" },
48
+ { "name": "create", "description": "Create a label", "options": [{ "name": "--name", "shorthand": "-n", "description": "Label name", "takesValue": true }, { "name": "--color", "description": "Label color", "takesValue": true }] }
49
+ ]},
50
+ { "name": "auth", "description": "Manage authentication", "subcommands": [
51
+ { "name": "login", "description": "Log in to GitLab" },
52
+ { "name": "status", "description": "Show auth status" }
53
+ ]},
54
+ { "name": "ssh-key", "description": "Manage SSH keys", "subcommands": [
55
+ { "name": "list", "description": "List SSH keys" },
56
+ { "name": "add", "description": "Add an SSH key" }
57
+ ]}
58
+ ],
59
+ "globalOptions": [
60
+ { "name": "--repo", "shorthand": "-R", "description": "Repository (owner/repo)", "takesValue": true },
61
+ { "name": "--help", "shorthand": "-h", "description": "Show help" },
62
+ { "name": "--version", "description": "Show version" }
63
+ ],
64
+ "examples": [
65
+ { "command": "glab mr create --title 'Fix bug' --target-branch main", "description": "Create a merge request" },
66
+ { "command": "glab mr list --state opened", "description": "List open MRs" },
67
+ { "command": "glab ci view", "description": "View current pipeline" },
68
+ { "command": "glab issue create -t 'New feature' -l enhancement", "description": "Create an issue" },
69
+ { "command": "glab ci lint", "description": "Lint .gitlab-ci.yml" }
70
+ ],
71
+ "relatedCommands": ["git", "gh"],
72
+ "contextEngine": {
73
+ "detectors": [
74
+ {
75
+ "name": "current_branch",
76
+ "description": "Current git branch",
77
+ "command": "git branch --show-current 2>/dev/null",
78
+ "parser": "text",
79
+ "cacheFor": 10,
80
+ "requiresCmd": "git"
81
+ },
82
+ {
83
+ "name": "open_mrs",
84
+ "description": "Open merge requests",
85
+ "command": "glab mr list --state opened 2>/dev/null | head -20",
86
+ "parser": "text",
87
+ "cacheFor": 60,
88
+ "requiresCmd": "glab"
89
+ },
90
+ {
91
+ "name": "pipelines",
92
+ "description": "Recent pipelines",
93
+ "command": "glab ci list 2>/dev/null | head -10",
94
+ "parser": "text",
95
+ "cacheFor": 60,
96
+ "requiresCmd": "glab"
97
+ },
98
+ {
99
+ "name": "repo_info",
100
+ "description": "Repository information",
101
+ "command": "git remote get-url origin 2>/dev/null",
102
+ "parser": "text",
103
+ "cacheFor": 300,
104
+ "requiresCmd": "git"
105
+ },
106
+ {
107
+ "name": "labels",
108
+ "description": "Project labels",
109
+ "command": "glab label list 2>/dev/null | head -20",
110
+ "parser": "text",
111
+ "cacheFor": 300,
112
+ "requiresCmd": "glab"
113
+ }
114
+ ]
115
+ }
116
+ }
@@ -0,0 +1,161 @@
1
+ {
2
+ "name": "go",
3
+ "description": "Open-source programming language by Google",
4
+ "category": "runtime",
5
+ "platforms": ["linux", "macos", "windows"],
6
+ "shells": ["bash", "zsh", "fish", "powershell"],
7
+ "subcommands": [
8
+ {
9
+ "name": "build",
10
+ "description": "Compile packages and dependencies",
11
+ "args": [{ "name": "<packages>", "type": "path", "required": false, "description": "Packages to build" }],
12
+ "options": [
13
+ { "name": "-o", "description": "Output binary name", "type": "file" },
14
+ { "name": "-v", "description": "Verbose output" },
15
+ { "name": "-race", "description": "Enable race detector" },
16
+ { "name": "-ldflags", "description": "Linker flags", "type": "string" },
17
+ { "name": "-tags", "description": "Build tags", "type": "string" },
18
+ { "name": "-trimpath", "description": "Remove file system paths from binary" }
19
+ ],
20
+ "examples": ["go build", "go build -o myapp ./cmd/server", "go build -race -v ./...", "go build -ldflags='-s -w' ."]
21
+ },
22
+ {
23
+ "name": "run",
24
+ "description": "Compile and run Go program",
25
+ "args": [{ "name": "<files>", "type": "file", "required": true, "description": "Go source files" }],
26
+ "examples": ["go run main.go", "go run ./cmd/server", "go run ."]
27
+ },
28
+ {
29
+ "name": "test",
30
+ "description": "Run tests",
31
+ "args": [{ "name": "<packages>", "type": "path", "required": false, "description": "Packages to test" }],
32
+ "options": [
33
+ { "name": "-v", "description": "Verbose test output" },
34
+ { "name": "-run", "description": "Run tests matching regex", "type": "string" },
35
+ { "name": "-bench", "description": "Run benchmarks matching regex", "type": "string" },
36
+ { "name": "-cover", "description": "Enable coverage analysis" },
37
+ { "name": "-coverprofile", "description": "Write coverage profile to file", "type": "file" },
38
+ { "name": "-count", "description": "Run each test N times", "type": "number" },
39
+ { "name": "-race", "description": "Enable race detector" },
40
+ { "name": "-timeout", "description": "Test timeout", "type": "string" },
41
+ { "name": "-short", "description": "Skip long-running tests" },
42
+ { "name": "-parallel", "description": "Max parallel tests", "type": "number" }
43
+ ],
44
+ "examples": ["go test ./...", "go test -v ./...", "go test -cover -race ./...", "go test -run TestMyFunc ./pkg/mypackage"]
45
+ },
46
+ {
47
+ "name": "mod init",
48
+ "description": "Initialize a new module",
49
+ "args": [{ "name": "<module>", "type": "string", "required": true, "description": "Module path" }],
50
+ "examples": ["go mod init github.com/user/myproject"]
51
+ },
52
+ {
53
+ "name": "mod tidy",
54
+ "description": "Add missing and remove unused modules",
55
+ "examples": ["go mod tidy"]
56
+ },
57
+ {
58
+ "name": "mod download",
59
+ "description": "Download modules to local cache",
60
+ "examples": ["go mod download"]
61
+ },
62
+ {
63
+ "name": "mod vendor",
64
+ "description": "Make vendored copy of dependencies",
65
+ "examples": ["go mod vendor"]
66
+ },
67
+ {
68
+ "name": "mod edit",
69
+ "description": "Edit go.mod from tools or scripts",
70
+ "options": [
71
+ { "name": "-require", "description": "Add a requirement", "type": "string" },
72
+ { "name": "-droprequire", "description": "Drop a requirement", "type": "string" },
73
+ { "name": "-replace", "description": "Add a replacement", "type": "string" },
74
+ { "name": "-json", "description": "Print go.mod as JSON" }
75
+ ],
76
+ "examples": ["go mod edit -replace=old@v1=new@v2"]
77
+ },
78
+ {
79
+ "name": "get",
80
+ "description": "Add dependencies to current module and install them",
81
+ "args": [{ "name": "<packages>", "type": "string", "required": true, "description": "Package paths" }],
82
+ "options": [
83
+ { "name": "-u", "description": "Update to latest minor/patch" },
84
+ { "name": "-t", "description": "Include test dependencies" }
85
+ ],
86
+ "examples": ["go get github.com/gin-gonic/gin", "go get -u ./...", "go get github.com/lib/pq@v1.10.0"]
87
+ },
88
+ {
89
+ "name": "install",
90
+ "description": "Compile and install packages and dependencies",
91
+ "args": [{ "name": "<packages>", "type": "string", "required": true, "description": "Package paths" }],
92
+ "examples": ["go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest"]
93
+ },
94
+ {
95
+ "name": "fmt",
96
+ "description": "Gofmt (reformat) package sources",
97
+ "args": [{ "name": "<files>", "type": "file", "required": false, "description": "Files to format" }],
98
+ "examples": ["go fmt ./...", "go fmt main.go"]
99
+ },
100
+ {
101
+ "name": "vet",
102
+ "description": "Report likely mistakes in packages",
103
+ "args": [{ "name": "<packages>", "type": "path", "required": false, "description": "Packages to vet" }],
104
+ "examples": ["go vet ./..."]
105
+ },
106
+ {
107
+ "name": "generate",
108
+ "description": "Generate Go files by processing source",
109
+ "examples": ["go generate ./..."]
110
+ },
111
+ {
112
+ "name": "clean",
113
+ "description": "Remove object files and cached files",
114
+ "options": [
115
+ { "name": "-cache", "description": "Remove entire build cache" },
116
+ { "name": "-testcache", "description": "Remove test results cache" },
117
+ { "name": "-modcache", "description": "Remove entire module cache" }
118
+ ],
119
+ "examples": ["go clean", "go clean -cache", "go clean -testcache"]
120
+ },
121
+ {
122
+ "name": "env",
123
+ "description": "Print Go environment information",
124
+ "args": [{ "name": "<variable>", "type": "string", "required": false, "description": "Env variable name" }],
125
+ "options": [
126
+ { "name": "-w", "description": "Set environment variable", "type": "string" },
127
+ { "name": "-json", "description": "Print as JSON" }
128
+ ],
129
+ "examples": ["go env", "go env GOPATH", "go env -json", "go env -w GOPROXY=https://proxy.golang.org,direct"]
130
+ },
131
+ {
132
+ "name": "doc",
133
+ "description": "Show documentation for package or symbol",
134
+ "args": [{ "name": "<package>", "type": "string", "required": false, "description": "Package or symbol" }],
135
+ "examples": ["go doc fmt", "go doc fmt.Println"]
136
+ },
137
+ {
138
+ "name": "work init",
139
+ "description": "Initialize workspace (Go workspaces)",
140
+ "args": [{ "name": "<modules>", "type": "path", "required": false, "description": "Module directories" }],
141
+ "examples": ["go work init ./mod1 ./mod2"]
142
+ },
143
+ {
144
+ "name": "work use",
145
+ "description": "Add modules to workspace",
146
+ "args": [{ "name": "<modules>", "type": "path", "required": true, "description": "Module directories" }],
147
+ "examples": ["go work use ./newmod"]
148
+ }
149
+ ],
150
+ "globalOptions": [
151
+ { "name": "help", "description": "Show help for a command" },
152
+ { "name": "version", "description": "Print Go version" }
153
+ ],
154
+ "examples": [
155
+ "go mod init myproject && go mod tidy",
156
+ "go build -o app ./cmd/server && ./app",
157
+ "go test -v -cover ./...",
158
+ "go fmt ./... && go vet ./..."
159
+ ],
160
+ "relatedCommands": ["gofmt", "golangci-lint", "gore", "air", "delve"]
161
+ }
@@ -0,0 +1,51 @@
1
+ {
2
+ "name": "gofmt",
3
+ "description": "Go source code formatter",
4
+ "category": "Go Ecosystem",
5
+ "platforms": ["linux", "macos", "windows"],
6
+ "shells": ["bash", "zsh", "powershell", "fish"],
7
+ "subcommands": [],
8
+ "globalOptions": [
9
+ { "name": "-d", "description": "Display diffs instead of rewriting files" },
10
+ { "name": "-e", "description": "Report all errors (not just first 10)" },
11
+ { "name": "-l", "description": "List files whose formatting differs" },
12
+ { "name": "-s", "description": "Simplify code" },
13
+ { "name": "-w", "description": "Write result to source file" },
14
+ { "name": "-r", "description": "Rewrite rule (e.g. 'a[b:len(a)] -> a[b:]')", "takesValue": true },
15
+ { "name": "-cpuprofile", "description": "Write CPU profile to file", "takesValue": true }
16
+ ],
17
+ "examples": [
18
+ { "command": "gofmt -w .", "description": "Format all Go files in current directory" },
19
+ { "command": "gofmt -d main.go", "description": "Show diff for a file" },
20
+ { "command": "gofmt -l .", "description": "List unformatted files" },
21
+ { "command": "gofmt -s -w .", "description": "Format and simplify all files" },
22
+ { "command": "gofmt -r 'bytes.Compare(a, b) == 0 -> bytes.Equal(a, b)' -w .", "description": "Apply rewrite rule" }
23
+ ],
24
+ "relatedCommands": ["go", "golangci-lint"],
25
+ "contextEngine": {
26
+ "detectors": [
27
+ {
28
+ "name": "go_files",
29
+ "description": "Go source files",
30
+ "command": "find . -name '*.go' -not -path './vendor/*' 2>/dev/null | head -20",
31
+ "parser": "lines",
32
+ "cacheFor": 30
33
+ },
34
+ {
35
+ "name": "unformatted",
36
+ "description": "Unformatted Go files",
37
+ "command": "gofmt -l . 2>/dev/null | head -10",
38
+ "parser": "lines",
39
+ "cacheFor": 15,
40
+ "requiresCmd": "gofmt"
41
+ },
42
+ {
43
+ "name": "go_module",
44
+ "description": "Go module name",
45
+ "command": "head -1 go.mod 2>/dev/null",
46
+ "parser": "text",
47
+ "cacheFor": 120
48
+ }
49
+ ]
50
+ }
51
+ }
@@ -0,0 +1,89 @@
1
+ {
2
+ "name": "golangci-lint",
3
+ "description": "Fast Go linters runner with aggregation and caching",
4
+ "category": "Go Ecosystem",
5
+ "platforms": ["linux", "macos", "windows"],
6
+ "shells": ["bash", "zsh", "powershell", "fish"],
7
+ "subcommands": [
8
+ { "name": "run", "description": "Run linters", "args": [{ "name": "packages", "description": "Packages to lint", "required": false }], "options": [
9
+ { "name": "--enable", "shorthand": "-E", "description": "Enable specific linters", "takesValue": true },
10
+ { "name": "--disable", "shorthand": "-D", "description": "Disable specific linters", "takesValue": true },
11
+ { "name": "--enable-all", "description": "Enable all linters" },
12
+ { "name": "--disable-all", "description": "Disable all linters" },
13
+ { "name": "--presets", "shorthand": "-p", "description": "Linter preset (bugs, complexity, format, performance, style, unused)", "takesValue": true },
14
+ { "name": "--fast", "description": "Run only fast linters" },
15
+ { "name": "--fix", "description": "Auto-fix issues" },
16
+ { "name": "--new", "shorthand": "-n", "description": "Only show new issues" },
17
+ { "name": "--new-from-rev", "description": "Show issues from git revision", "takesValue": true },
18
+ { "name": "--out-format", "description": "Output format (colored-line-number, json, tab, checkstyle, etc.)", "takesValue": true },
19
+ { "name": "--tests", "description": "Include test files" },
20
+ { "name": "--timeout", "description": "Timeout for total work", "takesValue": true },
21
+ { "name": "--concurrency", "shorthand": "-j", "description": "Max concurrent linters", "takesValue": true },
22
+ { "name": "--build-tags", "description": "Build tags", "takesValue": true },
23
+ { "name": "--issues-exit-code", "description": "Exit code on issues found", "takesValue": true }
24
+ ]},
25
+ { "name": "linters", "description": "List available linters" },
26
+ { "name": "cache", "description": "Cache management", "subcommands": [
27
+ { "name": "clean", "description": "Clean cache" },
28
+ { "name": "status", "description": "Show cache status" }
29
+ ]},
30
+ { "name": "config", "description": "Config management", "subcommands": [
31
+ { "name": "path", "description": "Print config file path" },
32
+ { "name": "verify", "description": "Verify config file" }
33
+ ]},
34
+ { "name": "version", "description": "Show version with linter versions" },
35
+ { "name": "help", "description": "Show help for a command" }
36
+ ],
37
+ "globalOptions": [
38
+ { "name": "--config", "shorthand": "-c", "description": "Config file path", "takesValue": true },
39
+ { "name": "--no-config", "description": "Don't read config" },
40
+ { "name": "--verbose", "shorthand": "-v", "description": "Verbose output" },
41
+ { "name": "--help", "shorthand": "-h", "description": "Show help" },
42
+ { "name": "--version", "description": "Show version" }
43
+ ],
44
+ "examples": [
45
+ { "command": "golangci-lint run", "description": "Run all default linters" },
46
+ { "command": "golangci-lint run --fix", "description": "Run and auto-fix" },
47
+ { "command": "golangci-lint run -E errcheck,gosec", "description": "Enable specific linters" },
48
+ { "command": "golangci-lint run --fast", "description": "Run only fast linters" },
49
+ { "command": "golangci-lint run --new", "description": "Only new issues" },
50
+ { "command": "golangci-lint linters", "description": "List available linters" },
51
+ { "command": "golangci-lint run ./...", "description": "Lint all packages" },
52
+ { "command": "golangci-lint run --out-format json", "description": "JSON output" }
53
+ ],
54
+ "relatedCommands": ["go", "gofmt"],
55
+ "contextEngine": {
56
+ "detectors": [
57
+ {
58
+ "name": "config_file",
59
+ "description": "Lint configuration file",
60
+ "command": "cat .golangci.yml 2>/dev/null || cat .golangci.yaml 2>/dev/null || cat .golangci.toml 2>/dev/null || echo 'no config'",
61
+ "parser": "text",
62
+ "cacheFor": 60
63
+ },
64
+ {
65
+ "name": "available_linters",
66
+ "description": "Available linters",
67
+ "command": "golangci-lint linters 2>/dev/null | grep -E '^[a-z]' | awk '{print $1}' | head -30",
68
+ "parser": "lines",
69
+ "cacheFor": 300,
70
+ "requiresCmd": "golangci-lint"
71
+ },
72
+ {
73
+ "name": "go_module",
74
+ "description": "Go module info",
75
+ "command": "head -3 go.mod 2>/dev/null",
76
+ "parser": "text",
77
+ "cacheFor": 120
78
+ },
79
+ {
80
+ "name": "cache_status",
81
+ "description": "Cache status",
82
+ "command": "golangci-lint cache status 2>/dev/null",
83
+ "parser": "text",
84
+ "cacheFor": 60,
85
+ "requiresCmd": "golangci-lint"
86
+ }
87
+ ]
88
+ }
89
+ }
@@ -0,0 +1,44 @@
1
+ {
2
+ "name": "gradle",
3
+ "description": "Build automation tool for multi-language software development",
4
+ "category": "build-tool",
5
+ "platforms": ["linux", "macos", "windows"],
6
+ "shells": ["bash", "zsh", "fish", "powershell"],
7
+ "subcommands": [
8
+ { "name": "build", "description": "Assemble and test the project", "examples": ["gradle build", "./gradlew build"] },
9
+ { "name": "clean", "description": "Delete build directory", "examples": ["gradle clean"] },
10
+ { "name": "test", "description": "Run tests", "examples": ["gradle test"] },
11
+ { "name": "assemble", "description": "Assemble archives", "examples": ["gradle assemble"] },
12
+ { "name": "check", "description": "Run all checks", "examples": ["gradle check"] },
13
+ { "name": "run", "description": "Run the application", "examples": ["gradle run"] },
14
+ { "name": "bootRun", "description": "Run Spring Boot application", "examples": ["gradle bootRun"] },
15
+ { "name": "dependencies", "description": "Show project dependencies", "examples": ["gradle dependencies"] },
16
+ { "name": "tasks", "description": "List available tasks", "examples": ["gradle tasks", "gradle tasks --all"] },
17
+ { "name": "init", "description": "Initialize a new Gradle project", "examples": ["gradle init --type java-application"] },
18
+ { "name": "wrapper", "description": "Generate Gradle wrapper files", "examples": ["gradle wrapper --gradle-version 8.5"] },
19
+ { "name": "publish", "description": "Publish to repository", "examples": ["gradle publish"] }
20
+ ],
21
+ "globalOptions": [
22
+ { "name": "--help", "short": "-h", "description": "Show help" },
23
+ { "name": "--version", "short": "-v", "description": "Show version" },
24
+ { "name": "--build-file", "short": "-b", "description": "Build file path", "type": "file" },
25
+ { "name": "--project-dir", "short": "-p", "description": "Project directory", "type": "directory" },
26
+ { "name": "--parallel", "description": "Build projects in parallel" },
27
+ { "name": "--daemon", "description": "Use Gradle daemon" },
28
+ { "name": "--no-daemon", "description": "Don't use Gradle daemon" },
29
+ { "name": "--stacktrace", "short": "-s", "description": "Show stacktrace" },
30
+ { "name": "--info", "short": "-i", "description": "Info log level" },
31
+ { "name": "--debug", "short": "-d", "description": "Debug log level" },
32
+ { "name": "-x", "description": "Exclude task", "type": "string" },
33
+ { "name": "--offline", "description": "Don't access network" },
34
+ { "name": "--refresh-dependencies", "description": "Refresh dependencies" }
35
+ ],
36
+ "examples": [
37
+ "./gradlew clean build",
38
+ "./gradlew test",
39
+ "./gradlew bootRun",
40
+ "./gradlew build -x test",
41
+ "./gradlew dependencies --configuration runtimeClasspath"
42
+ ],
43
+ "relatedCommands": ["mvn", "java", "javac", "ant", "sbt"]
44
+ }
@@ -0,0 +1,47 @@
1
+ {
2
+ "name": "grep",
3
+ "description": "Search for patterns in files",
4
+ "category": "text-processing",
5
+ "platforms": ["linux", "macos", "windows"],
6
+ "shells": ["bash", "zsh", "fish", "powershell"],
7
+ "subcommands": [],
8
+ "globalOptions": [
9
+ { "name": "--extended-regexp", "short": "-E", "description": "Extended regex (egrep)" },
10
+ { "name": "--fixed-strings", "short": "-F", "description": "Fixed string matching (fgrep)" },
11
+ { "name": "--perl-regexp", "short": "-P", "description": "Perl-compatible regex" },
12
+ { "name": "--ignore-case", "short": "-i", "description": "Case-insensitive matching" },
13
+ { "name": "--invert-match", "short": "-v", "description": "Invert match (non-matching lines)" },
14
+ { "name": "--word-regexp", "short": "-w", "description": "Match whole words only" },
15
+ { "name": "--line-regexp", "short": "-x", "description": "Match whole lines only" },
16
+ { "name": "--count", "short": "-c", "description": "Print count of matching lines" },
17
+ { "name": "--files-with-matches", "short": "-l", "description": "Print filenames with matches" },
18
+ { "name": "--line-number", "short": "-n", "description": "Print line numbers" },
19
+ { "name": "--with-filename", "short": "-H", "description": "Print filename for each match" },
20
+ { "name": "--no-filename", "short": "-h", "description": "Suppress filename in output" },
21
+ { "name": "--recursive", "short": "-r", "description": "Search recursively" },
22
+ { "name": "-R", "description": "Search recursively (follow symlinks)" },
23
+ { "name": "--include", "description": "Search only matching files", "type": "string" },
24
+ { "name": "--exclude", "description": "Skip matching files", "type": "string" },
25
+ { "name": "--exclude-dir", "description": "Skip matching directories", "type": "string" },
26
+ { "name": "--context", "short": "-C", "description": "Print N lines of context", "type": "number" },
27
+ { "name": "--before-context", "short": "-B", "description": "Print N lines before match", "type": "number" },
28
+ { "name": "--after-context", "short": "-A", "description": "Print N lines after match", "type": "number" },
29
+ { "name": "--only-matching", "short": "-o", "description": "Print only the matching part" },
30
+ { "name": "--color", "description": "Highlight matches (auto, always, never)", "type": "string" },
31
+ { "name": "--max-count", "short": "-m", "description": "Stop after N matches", "type": "number" },
32
+ { "name": "--quiet", "short": "-q", "description": "Suppress output (exit status only)" }
33
+ ],
34
+ "examples": [
35
+ "grep 'pattern' file.txt",
36
+ "grep -r 'TODO' src/",
37
+ "grep -rn 'function' --include='*.js' .",
38
+ "grep -i 'error' /var/log/syslog",
39
+ "grep -v '^#' config.conf",
40
+ "grep -c 'pattern' file.txt",
41
+ "grep -E 'error|warning|critical' logfile",
42
+ "grep -l 'import' *.py",
43
+ "grep -P '\\d{3}-\\d{4}' contacts.txt",
44
+ "ps aux | grep nginx"
45
+ ],
46
+ "relatedCommands": ["rg", "ag", "ack", "sed", "awk", "find"]
47
+ }
@@ -0,0 +1,83 @@
1
+ {
2
+ "name": "gunicorn",
3
+ "description": "Green Unicorn - Python WSGI HTTP server for Unix",
4
+ "category": "Python Ecosystem",
5
+ "platforms": ["linux", "macos"],
6
+ "shells": ["bash", "zsh", "fish"],
7
+ "subcommands": [],
8
+ "globalOptions": [
9
+ { "name": "--bind", "shorthand": "-b", "description": "Bind address (HOST:PORT)", "takesValue": true },
10
+ { "name": "--workers", "shorthand": "-w", "description": "Number of worker processes", "takesValue": true },
11
+ { "name": "--worker-class", "shorthand": "-k", "description": "Worker class (sync, gevent, uvicorn.workers.UvicornWorker)", "takesValue": true },
12
+ { "name": "--threads", "description": "Worker threads", "takesValue": true },
13
+ { "name": "--timeout", "shorthand": "-t", "description": "Worker timeout seconds", "takesValue": true },
14
+ { "name": "--graceful-timeout", "description": "Graceful shutdown timeout", "takesValue": true },
15
+ { "name": "--keep-alive", "description": "Keep-alive timeout", "takesValue": true },
16
+ { "name": "--max-requests", "description": "Max requests per worker", "takesValue": true },
17
+ { "name": "--max-requests-jitter", "description": "Max requests jitter", "takesValue": true },
18
+ { "name": "--reload", "description": "Auto-reload on code changes" },
19
+ { "name": "--reload-engine", "description": "Reload engine (auto, poll, inotify)", "takesValue": true },
20
+ { "name": "--preload", "description": "Preload application" },
21
+ { "name": "--daemon", "shorthand": "-D", "description": "Run as daemon" },
22
+ { "name": "--pid", "shorthand": "-p", "description": "PID file", "takesValue": true },
23
+ { "name": "--user", "shorthand": "-u", "description": "Switch to user", "takesValue": true },
24
+ { "name": "--group", "shorthand": "-g", "description": "Switch to group", "takesValue": true },
25
+ { "name": "--log-level", "description": "Log level (debug, info, warning, error, critical)", "takesValue": true },
26
+ { "name": "--log-file", "description": "Log file", "takesValue": true },
27
+ { "name": "--access-logfile", "description": "Access log file", "takesValue": true },
28
+ { "name": "--access-logformat", "description": "Access log format", "takesValue": true },
29
+ { "name": "--error-logfile", "description": "Error log file", "takesValue": true },
30
+ { "name": "--capture-output", "description": "Redirect stdout/stderr to logs" },
31
+ { "name": "--config", "shorthand": "-c", "description": "Config file", "takesValue": true },
32
+ { "name": "--certfile", "description": "SSL cert", "takesValue": true },
33
+ { "name": "--keyfile", "description": "SSL key", "takesValue": true },
34
+ { "name": "--forwarded-allow-ips", "description": "Trusted proxy IPs", "takesValue": true },
35
+ { "name": "--proxy-protocol", "description": "Enable proxy protocol" },
36
+ { "name": "--chdir", "description": "Change directory", "takesValue": true },
37
+ { "name": "--check-config", "description": "Check configuration" },
38
+ { "name": "--print-config", "description": "Print configuration" },
39
+ { "name": "--help", "shorthand": "-h", "description": "Show help" },
40
+ { "name": "--version", "shorthand": "-v", "description": "Show version" }
41
+ ],
42
+ "examples": [
43
+ { "command": "gunicorn app:app", "description": "Run WSGI app" },
44
+ { "command": "gunicorn -w 4 -b 0.0.0.0:8000 app:app", "description": "4 workers on all interfaces" },
45
+ { "command": "gunicorn -k uvicorn.workers.UvicornWorker main:app", "description": "Run ASGI app via uvicorn worker" },
46
+ { "command": "gunicorn --reload app:app", "description": "Dev mode with reload" },
47
+ { "command": "gunicorn -w 4 --threads 2 --timeout 120 app:app", "description": "Workers with threads and timeout" },
48
+ { "command": "gunicorn -D -p gunicorn.pid app:app", "description": "Run as daemon" }
49
+ ],
50
+ "relatedCommands": ["uvicorn", "python", "flask", "django-admin"],
51
+ "contextEngine": {
52
+ "detectors": [
53
+ {
54
+ "name": "gunicorn_config",
55
+ "description": "Gunicorn configuration",
56
+ "command": "cat gunicorn.conf.py 2>/dev/null || cat gunicorn_config.py 2>/dev/null",
57
+ "parser": "text",
58
+ "cacheFor": 60
59
+ },
60
+ {
61
+ "name": "wsgi_apps",
62
+ "description": "WSGI application files",
63
+ "command": "find . -maxdepth 2 -name 'wsgi.py' -o -name 'app.py' 2>/dev/null",
64
+ "parser": "lines",
65
+ "cacheFor": 30
66
+ },
67
+ {
68
+ "name": "procfile",
69
+ "description": "Procfile configuration",
70
+ "command": "cat Procfile 2>/dev/null",
71
+ "parser": "text",
72
+ "cacheFor": 60
73
+ },
74
+ {
75
+ "name": "virtualenv",
76
+ "description": "Active virtual environment",
77
+ "command": "echo $VIRTUAL_ENV 2>/dev/null",
78
+ "parser": "text",
79
+ "cacheFor": 30
80
+ }
81
+ ]
82
+ }
83
+ }