@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.
- package/README.md +213 -0
- package/data/commands/air.json +59 -0
- package/data/commands/ansible.json +24 -0
- package/data/commands/apachectl.json +87 -0
- package/data/commands/apt-get.json +81 -0
- package/data/commands/apt.json +91 -0
- package/data/commands/awk.json +26 -0
- package/data/commands/aws-vault.json +140 -0
- package/data/commands/aws.json +229 -0
- package/data/commands/az.json +36 -0
- package/data/commands/bazel.json +103 -0
- package/data/commands/brew.json +140 -0
- package/data/commands/bun.json +230 -0
- package/data/commands/caddy.json +194 -0
- package/data/commands/cargo.json +1048 -0
- package/data/commands/cat.json +18 -0
- package/data/commands/cd.json +48 -0
- package/data/commands/certbot.json +148 -0
- package/data/commands/chmod.json +97 -0
- package/data/commands/choco.json +134 -0
- package/data/commands/chown.json +59 -0
- package/data/commands/clickhouse-client.json +74 -0
- package/data/commands/cloudflare.json +226 -0
- package/data/commands/cmake.json +110 -0
- package/data/commands/cockroach.json +92 -0
- package/data/commands/conda.json +94 -0
- package/data/commands/consul.json +125 -0
- package/data/commands/cp.json +86 -0
- package/data/commands/curl.json +44 -0
- package/data/commands/cypress.json +100 -0
- package/data/commands/deno.json +29 -0
- package/data/commands/django-admin.json +86 -0
- package/data/commands/dnf.json +137 -0
- package/data/commands/docker.json +1100 -0
- package/data/commands/doctl.json +156 -0
- package/data/commands/eslint.json +69 -0
- package/data/commands/find.json +44 -0
- package/data/commands/firebase.json +97 -0
- package/data/commands/flask.json +79 -0
- package/data/commands/flyctl.json +148 -0
- package/data/commands/gcloud.json +227 -0
- package/data/commands/gh.json +39 -0
- package/data/commands/git.json +527 -0
- package/data/commands/glab.json +116 -0
- package/data/commands/go.json +161 -0
- package/data/commands/gofmt.json +51 -0
- package/data/commands/golangci-lint.json +89 -0
- package/data/commands/gradle.json +44 -0
- package/data/commands/grep.json +47 -0
- package/data/commands/gunicorn.json +83 -0
- package/data/commands/helm.json +1104 -0
- package/data/commands/hg.json +92 -0
- package/data/commands/httpd.json +147 -0
- package/data/commands/influx.json +119 -0
- package/data/commands/iptables.json +86 -0
- package/data/commands/java.json +31 -0
- package/data/commands/jest.json +82 -0
- package/data/commands/journalctl.json +88 -0
- package/data/commands/just.json +93 -0
- package/data/commands/k6.json +84 -0
- package/data/commands/kubectl.json +1277 -0
- package/data/commands/linode-cli.json +117 -0
- package/data/commands/locust.json +83 -0
- package/data/commands/ls.json +115 -0
- package/data/commands/make.json +86 -0
- package/data/commands/mocha.json +75 -0
- package/data/commands/mongosh.json +73 -0
- package/data/commands/mv.json +68 -0
- package/data/commands/mvn.json +45 -0
- package/data/commands/mysql.json +81 -0
- package/data/commands/nest.json +69 -0
- package/data/commands/netlify.json +92 -0
- package/data/commands/next.json +71 -0
- package/data/commands/nft.json +105 -0
- package/data/commands/nginx.json +146 -0
- package/data/commands/nmap.json +92 -0
- package/data/commands/node.json +43 -0
- package/data/commands/nomad.json +139 -0
- package/data/commands/npm.json +1265 -0
- package/data/commands/npx.json +58 -0
- package/data/commands/nx.json +82 -0
- package/data/commands/openssl.json +288 -0
- package/data/commands/packer.json +92 -0
- package/data/commands/pacman.json +82 -0
- package/data/commands/pg_dump.json +83 -0
- package/data/commands/pg_restore.json +74 -0
- package/data/commands/pip.json +95 -0
- package/data/commands/pipenv.json +79 -0
- package/data/commands/pipx.json +53 -0
- package/data/commands/playwright.json +97 -0
- package/data/commands/pnpm.json +29 -0
- package/data/commands/poetry.json +96 -0
- package/data/commands/prettier.json +71 -0
- package/data/commands/ps.json +31 -0
- package/data/commands/psql.json +124 -0
- package/data/commands/pulumi.json +130 -0
- package/data/commands/pytest.json +92 -0
- package/data/commands/python.json +30 -0
- package/data/commands/railway.json +91 -0
- package/data/commands/redis-cli.json +148 -0
- package/data/commands/render.json +72 -0
- package/data/commands/rm.json +79 -0
- package/data/commands/rsync.json +36 -0
- package/data/commands/rust.json +35 -0
- package/data/commands/rustup.json +103 -0
- package/data/commands/scp.json +60 -0
- package/data/commands/sed.json +28 -0
- package/data/commands/sqlite3.json +68 -0
- package/data/commands/ssh-keygen.json +112 -0
- package/data/commands/ssh.json +37 -0
- package/data/commands/sudo.json +147 -0
- package/data/commands/supabase.json +108 -0
- package/data/commands/svn.json +75 -0
- package/data/commands/systemctl.json +31 -0
- package/data/commands/tar.json +35 -0
- package/data/commands/tcpdump.json +77 -0
- package/data/commands/terraform.json +824 -0
- package/data/commands/terragrunt.json +83 -0
- package/data/commands/tsc.json +85 -0
- package/data/commands/turbo.json +72 -0
- package/data/commands/ufw.json +76 -0
- package/data/commands/unzip.json +59 -0
- package/data/commands/uvicorn.json +73 -0
- package/data/commands/vault.json +144 -0
- package/data/commands/vercel.json +98 -0
- package/data/commands/vite.json +63 -0
- package/data/commands/vitest.json +88 -0
- package/data/commands/wasm-pack.json +90 -0
- package/data/commands/wget.json +38 -0
- package/data/commands/winget.json +131 -0
- package/data/commands/wireshark.json +81 -0
- package/data/commands/yarn.json +28 -0
- package/data/commands/yum.json +98 -0
- package/data/commands/zip.json +59 -0
- package/index.d.ts +131 -0
- package/index.js +189 -0
- package/index.mjs +21 -0
- package/package.json +64 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "cat",
|
|
3
|
+
"description": "Concatenate and display file contents",
|
|
4
|
+
"category": "text-processing",
|
|
5
|
+
"platforms": ["linux", "macos"],
|
|
6
|
+
"shells": ["bash", "zsh", "fish"],
|
|
7
|
+
"subcommands": [],
|
|
8
|
+
"globalOptions": [
|
|
9
|
+
{ "name": "-n", "description": "Number all output lines" },
|
|
10
|
+
{ "name": "-b", "description": "Number non-blank output lines" },
|
|
11
|
+
{ "name": "-s", "description": "Squeeze multiple blank lines" },
|
|
12
|
+
{ "name": "-E", "description": "Display $ at end of each line" },
|
|
13
|
+
{ "name": "-T", "description": "Display TAB as ^I" },
|
|
14
|
+
{ "name": "-A", "description": "Show all (equivalent to -vET)" }
|
|
15
|
+
],
|
|
16
|
+
"examples": ["cat file.txt", "cat -n file.txt", "cat file1.txt file2.txt > combined.txt", "cat -b script.sh"],
|
|
17
|
+
"relatedCommands": ["less", "more", "head", "tail", "bat", "tac"]
|
|
18
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "cd",
|
|
3
|
+
"description": "Change the current working directory",
|
|
4
|
+
"category": "Linux Coreutils",
|
|
5
|
+
"platforms": ["linux", "macos", "windows"],
|
|
6
|
+
"shells": ["bash", "zsh", "powershell", "fish"],
|
|
7
|
+
"subcommands": [],
|
|
8
|
+
"globalOptions": [
|
|
9
|
+
{ "name": "-L", "description": "Follow symbolic links (default)" },
|
|
10
|
+
{ "name": "-P", "description": "Use physical directory structure (no symlinks)" },
|
|
11
|
+
{ "name": "-e", "description": "Exit with non-zero if -P and pwd fails" },
|
|
12
|
+
{ "name": "-@", "description": "Present file with extended attributes as directory (macOS)" }
|
|
13
|
+
],
|
|
14
|
+
"examples": [
|
|
15
|
+
{ "command": "cd /var/log", "description": "Change to absolute path" },
|
|
16
|
+
{ "command": "cd ..", "description": "Go up one directory" },
|
|
17
|
+
{ "command": "cd ~", "description": "Go to home directory" },
|
|
18
|
+
{ "command": "cd -", "description": "Go to previous directory" },
|
|
19
|
+
{ "command": "cd ~/projects/myapp", "description": "Go to project directory" },
|
|
20
|
+
{ "command": "cd \"dir with spaces\"", "description": "Directory with spaces" }
|
|
21
|
+
],
|
|
22
|
+
"relatedCommands": ["ls", "pwd"],
|
|
23
|
+
"contextEngine": {
|
|
24
|
+
"detectors": [
|
|
25
|
+
{
|
|
26
|
+
"name": "subdirectories",
|
|
27
|
+
"description": "Directories in current location",
|
|
28
|
+
"command": "ls -d */ 2>/dev/null | head -30",
|
|
29
|
+
"parser": "lines",
|
|
30
|
+
"cacheFor": 5
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "recent_dirs",
|
|
34
|
+
"description": "Recently used directories",
|
|
35
|
+
"command": "dirs -v 2>/dev/null | head -10",
|
|
36
|
+
"parser": "lines",
|
|
37
|
+
"cacheFor": 5
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"name": "home_dirs",
|
|
41
|
+
"description": "Home directory contents",
|
|
42
|
+
"command": "ls -d ~/*/ 2>/dev/null | head -15",
|
|
43
|
+
"parser": "lines",
|
|
44
|
+
"cacheFor": 30
|
|
45
|
+
}
|
|
46
|
+
]
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "certbot",
|
|
3
|
+
"description": "Let's Encrypt client — obtain and manage TLS/SSL certificates automatically",
|
|
4
|
+
"category": "security",
|
|
5
|
+
"platforms": ["linux", "macos"],
|
|
6
|
+
"shells": ["bash", "zsh", "fish"],
|
|
7
|
+
"subcommands": [
|
|
8
|
+
{
|
|
9
|
+
"name": "certonly",
|
|
10
|
+
"description": "Obtain a certificate without installing it",
|
|
11
|
+
"options": [
|
|
12
|
+
{ "name": "--standalone", "description": "Use built-in web server for validation" },
|
|
13
|
+
{ "name": "--webroot", "description": "Use webroot directory for validation" },
|
|
14
|
+
{ "name": "--webroot-path", "short": "-w", "description": "Web root path for webroot plugin", "type": "directory" },
|
|
15
|
+
{ "name": "--nginx", "description": "Use Nginx plugin for validation and installation" },
|
|
16
|
+
{ "name": "--apache", "description": "Use Apache plugin for validation and installation" },
|
|
17
|
+
{ "name": "--dns-cloudflare", "description": "Use Cloudflare DNS plugin for validation" },
|
|
18
|
+
{ "name": "--dns-route53", "description": "Use AWS Route 53 DNS plugin for validation" },
|
|
19
|
+
{ "name": "--manual", "description": "Manual mode for domain validation" },
|
|
20
|
+
{ "name": "--preferred-challenges", "description": "Preferred challenge type (http-01, dns-01, tls-alpn-01)", "type": "string" }
|
|
21
|
+
],
|
|
22
|
+
"examples": [
|
|
23
|
+
"certbot certonly --standalone -d example.com",
|
|
24
|
+
"certbot certonly --webroot -w /var/www/html -d example.com -d www.example.com",
|
|
25
|
+
"certbot certonly --nginx -d example.com",
|
|
26
|
+
"certbot certonly --dns-cloudflare -d '*.example.com' -d example.com"
|
|
27
|
+
]
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"name": "install",
|
|
31
|
+
"description": "Install a previously obtained certificate",
|
|
32
|
+
"options": [
|
|
33
|
+
{ "name": "--nginx", "description": "Install in Nginx" },
|
|
34
|
+
{ "name": "--apache", "description": "Install in Apache" },
|
|
35
|
+
{ "name": "--cert-path", "description": "Path to certificate", "type": "file" },
|
|
36
|
+
{ "name": "--key-path", "description": "Path to private key", "type": "file" }
|
|
37
|
+
],
|
|
38
|
+
"examples": ["certbot install --nginx -d example.com"]
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"name": "renew",
|
|
42
|
+
"description": "Renew all certificates that are near expiry",
|
|
43
|
+
"options": [
|
|
44
|
+
{ "name": "--dry-run", "description": "Test renewal without making changes" },
|
|
45
|
+
{ "name": "--force-renewal", "description": "Force renewal even if not yet due" },
|
|
46
|
+
{ "name": "--deploy-hook", "description": "Command to run after successful renewal", "type": "string" },
|
|
47
|
+
{ "name": "--pre-hook", "description": "Command to run before renewal", "type": "string" },
|
|
48
|
+
{ "name": "--post-hook", "description": "Command to run after renewal (success or fail)", "type": "string" },
|
|
49
|
+
{ "name": "--quiet", "description": "Suppress output except errors" }
|
|
50
|
+
],
|
|
51
|
+
"examples": [
|
|
52
|
+
"certbot renew",
|
|
53
|
+
"certbot renew --dry-run",
|
|
54
|
+
"certbot renew --force-renewal",
|
|
55
|
+
"certbot renew --deploy-hook 'systemctl reload nginx'"
|
|
56
|
+
]
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"name": "certificates",
|
|
60
|
+
"description": "List all managed certificates",
|
|
61
|
+
"examples": ["certbot certificates"]
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"name": "revoke",
|
|
65
|
+
"description": "Revoke a certificate",
|
|
66
|
+
"options": [
|
|
67
|
+
{ "name": "--cert-path", "description": "Path to certificate to revoke", "type": "file" },
|
|
68
|
+
{ "name": "--reason", "description": "Reason for revocation", "type": "string" },
|
|
69
|
+
{ "name": "--delete-after-revoke", "description": "Delete cert files after revoking" }
|
|
70
|
+
],
|
|
71
|
+
"examples": ["certbot revoke --cert-path /etc/letsencrypt/live/example.com/cert.pem"]
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"name": "delete",
|
|
75
|
+
"description": "Delete a certificate",
|
|
76
|
+
"options": [
|
|
77
|
+
{ "name": "--cert-name", "description": "Name of certificate to delete", "type": "string" }
|
|
78
|
+
],
|
|
79
|
+
"examples": ["certbot delete --cert-name example.com"]
|
|
80
|
+
}
|
|
81
|
+
],
|
|
82
|
+
"globalOptions": [
|
|
83
|
+
{ "name": "--domain", "short": "-d", "description": "Domain name(s) for the certificate", "type": "string" },
|
|
84
|
+
{ "name": "--email", "description": "Email for registration and recovery", "type": "string" },
|
|
85
|
+
{ "name": "--agree-tos", "description": "Agree to the ACME terms of service" },
|
|
86
|
+
{ "name": "--non-interactive", "short": "-n", "description": "Run non-interactively" },
|
|
87
|
+
{ "name": "--dry-run", "description": "Test without making permanent changes" },
|
|
88
|
+
{ "name": "--staging", "description": "Use Let's Encrypt staging server" },
|
|
89
|
+
{ "name": "--cert-name", "description": "Certificate name", "type": "string" },
|
|
90
|
+
{ "name": "--expand", "description": "Expand existing certificate with additional domains" },
|
|
91
|
+
{ "name": "--rsa-key-size", "description": "RSA key size", "type": "number", "default": "2048" },
|
|
92
|
+
{ "name": "--key-type", "description": "Key type (rsa or ecdsa)", "type": "string", "default": "ecdsa" },
|
|
93
|
+
{ "name": "--config-dir", "description": "Configuration directory", "type": "directory" },
|
|
94
|
+
{ "name": "--logs-dir", "description": "Logs directory", "type": "directory" }
|
|
95
|
+
],
|
|
96
|
+
"examples": [
|
|
97
|
+
"certbot --nginx -d example.com",
|
|
98
|
+
"certbot certonly --standalone -d example.com",
|
|
99
|
+
"certbot renew --dry-run",
|
|
100
|
+
"certbot certificates",
|
|
101
|
+
"certbot delete --cert-name example.com"
|
|
102
|
+
],
|
|
103
|
+
"relatedCommands": ["openssl", "nginx", "apache", "caddy"],
|
|
104
|
+
"contextEngine": {
|
|
105
|
+
"detectors": [
|
|
106
|
+
{
|
|
107
|
+
"name": "managed_certificates",
|
|
108
|
+
"description": "All Let's Encrypt certificates managed by certbot",
|
|
109
|
+
"command": "certbot certificates 2>/dev/null | grep -E '(Certificate Name|Domains|Expiry Date|Certificate Path|Private Key Path)' | sed 's/^[[:space:]]*//'",
|
|
110
|
+
"parser": "lines",
|
|
111
|
+
"cacheFor": 300,
|
|
112
|
+
"requiresCmd": "certbot"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"name": "certificate_names",
|
|
116
|
+
"description": "Names of managed certificates",
|
|
117
|
+
"command": "certbot certificates 2>/dev/null | grep 'Certificate Name:' | awk '{print $3}'",
|
|
118
|
+
"parser": "lines",
|
|
119
|
+
"cacheFor": 300,
|
|
120
|
+
"requiresCmd": "certbot"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"name": "expiring_soon",
|
|
124
|
+
"description": "Certificates expiring within 30 days",
|
|
125
|
+
"command": "certbot certificates 2>/dev/null | grep -A3 'Certificate Name' | grep -B1 'INVALID\\|days)' || echo 'none'",
|
|
126
|
+
"parser": "lines",
|
|
127
|
+
"cacheFor": 3600,
|
|
128
|
+
"requiresCmd": "certbot"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"name": "renewal_configs",
|
|
132
|
+
"description": "Renewal configuration files",
|
|
133
|
+
"command": "ls /etc/letsencrypt/renewal/ 2>/dev/null",
|
|
134
|
+
"parser": "lines",
|
|
135
|
+
"cacheFor": 300,
|
|
136
|
+
"requiresCmd": "certbot"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"name": "live_certs_dir",
|
|
140
|
+
"description": "Certificate directories in /etc/letsencrypt/live/",
|
|
141
|
+
"command": "ls /etc/letsencrypt/live/ 2>/dev/null | grep -v README",
|
|
142
|
+
"parser": "lines",
|
|
143
|
+
"cacheFor": 300,
|
|
144
|
+
"requiresCmd": "certbot"
|
|
145
|
+
}
|
|
146
|
+
]
|
|
147
|
+
}
|
|
148
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "chmod",
|
|
3
|
+
"description": "Change file mode bits (permissions)",
|
|
4
|
+
"category": "coreutils",
|
|
5
|
+
"platforms": ["linux", "macos"],
|
|
6
|
+
"shells": ["bash", "zsh", "fish"],
|
|
7
|
+
"subcommands": [],
|
|
8
|
+
"globalOptions": [
|
|
9
|
+
{ "name": "-R", "description": "Change files and directories recursively" },
|
|
10
|
+
{ "name": "-v", "description": "Verbose — output for each file processed" },
|
|
11
|
+
{ "name": "-c", "description": "Verbose only when a change is made" },
|
|
12
|
+
{ "name": "-f", "description": "Suppress most error messages" },
|
|
13
|
+
{ "name": "--reference", "description": "Use another file's permissions as template", "type": "file" },
|
|
14
|
+
{ "name": "--preserve-root", "description": "Fail to operate recursively on '/'" },
|
|
15
|
+
{ "name": "--no-preserve-root", "description": "Do not treat '/' specially" }
|
|
16
|
+
],
|
|
17
|
+
"examples": [
|
|
18
|
+
"chmod 755 script.sh",
|
|
19
|
+
"chmod 644 file.txt",
|
|
20
|
+
"chmod +x script.sh",
|
|
21
|
+
"chmod -x file.txt",
|
|
22
|
+
"chmod u+rwx,g+rx,o+rx file",
|
|
23
|
+
"chmod -R 755 directory/",
|
|
24
|
+
"chmod a+r file.txt",
|
|
25
|
+
"chmod u+s program",
|
|
26
|
+
"chmod g+s directory/",
|
|
27
|
+
"chmod o-rwx private.key",
|
|
28
|
+
"chmod 600 ~/.ssh/id_rsa",
|
|
29
|
+
"chmod 700 ~/.ssh",
|
|
30
|
+
"chmod --reference=ref.txt target.txt",
|
|
31
|
+
"chmod -R u+rw,g+r,o-rwx /var/www",
|
|
32
|
+
"chmod 400 secret.pem",
|
|
33
|
+
"find . -type f -exec chmod 644 {} +",
|
|
34
|
+
"find . -type d -exec chmod 755 {} +"
|
|
35
|
+
],
|
|
36
|
+
"relatedCommands": ["chown", "chgrp", "ls", "stat", "umask", "getfacl", "setfacl"],
|
|
37
|
+
"contextEngine": {
|
|
38
|
+
"detectors": [
|
|
39
|
+
{
|
|
40
|
+
"name": "cwd_permissions",
|
|
41
|
+
"description": "File permissions in the current directory",
|
|
42
|
+
"command": "ls -la 2>/dev/null | head -20",
|
|
43
|
+
"parser": "lines",
|
|
44
|
+
"cacheFor": 5,
|
|
45
|
+
"requiresCmd": "ls"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"name": "cwd_path",
|
|
49
|
+
"description": "Current working directory path",
|
|
50
|
+
"command": "pwd",
|
|
51
|
+
"parser": "text",
|
|
52
|
+
"cacheFor": 3,
|
|
53
|
+
"requiresCmd": "chmod"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"name": "executable_files",
|
|
57
|
+
"description": "Executable files in current directory",
|
|
58
|
+
"command": "find . -maxdepth 1 -type f -executable 2>/dev/null | head -20",
|
|
59
|
+
"parser": "lines",
|
|
60
|
+
"cacheFor": 10,
|
|
61
|
+
"requiresCmd": "find"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"name": "current_umask",
|
|
65
|
+
"description": "Current file creation mask",
|
|
66
|
+
"command": "umask",
|
|
67
|
+
"parser": "text",
|
|
68
|
+
"cacheFor": 300,
|
|
69
|
+
"requiresCmd": "chmod"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"name": "current_user",
|
|
73
|
+
"description": "Current user and groups",
|
|
74
|
+
"command": "id",
|
|
75
|
+
"parser": "text",
|
|
76
|
+
"cacheFor": 300,
|
|
77
|
+
"requiresCmd": "chmod"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"name": "world_writable",
|
|
81
|
+
"description": "World-writable files (potential security risks)",
|
|
82
|
+
"command": "find . -maxdepth 2 -type f -perm -002 2>/dev/null | head -10",
|
|
83
|
+
"parser": "lines",
|
|
84
|
+
"cacheFor": 30,
|
|
85
|
+
"requiresCmd": "find"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"name": "ssh_key_permissions",
|
|
89
|
+
"description": "SSH key file permissions (should be 600)",
|
|
90
|
+
"command": "ls -la ~/.ssh/ 2>/dev/null | grep -E '(id_|authorized)' | head -10",
|
|
91
|
+
"parser": "lines",
|
|
92
|
+
"cacheFor": 60,
|
|
93
|
+
"requiresCmd": "ls"
|
|
94
|
+
}
|
|
95
|
+
]
|
|
96
|
+
}
|
|
97
|
+
}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "choco",
|
|
3
|
+
"description": "Chocolatey package manager for Windows",
|
|
4
|
+
"category": "Package Managers",
|
|
5
|
+
"platforms": ["windows"],
|
|
6
|
+
"shells": ["powershell", "cmd"],
|
|
7
|
+
"subcommands": [
|
|
8
|
+
{ "name": "install", "description": "Install packages", "args": [{ "name": "packages", "description": "Package names", "required": true }], "options": [
|
|
9
|
+
{ "name": "-y", "description": "Confirm all prompts" },
|
|
10
|
+
{ "name": "--version", "description": "Specific version", "takesValue": true },
|
|
11
|
+
{ "name": "--pre", "description": "Include prerelease" },
|
|
12
|
+
{ "name": "--force", "shorthand": "-f", "description": "Force install" },
|
|
13
|
+
{ "name": "--params", "description": "Package parameters", "takesValue": true },
|
|
14
|
+
{ "name": "--install-arguments", "shorthand": "-ia", "description": "Install arguments", "takesValue": true },
|
|
15
|
+
{ "name": "--override-arguments", "shorthand": "-o", "description": "Override default arguments" },
|
|
16
|
+
{ "name": "--x86", "description": "Force 32-bit" },
|
|
17
|
+
{ "name": "--ignore-checksums", "description": "Ignore checksums" },
|
|
18
|
+
{ "name": "--no-progress", "description": "Hide progress" },
|
|
19
|
+
{ "name": "--source", "shorthand": "-s", "description": "Package source", "takesValue": true }
|
|
20
|
+
]},
|
|
21
|
+
{ "name": "uninstall", "description": "Uninstall packages", "args": [{ "name": "packages", "description": "Package names", "required": true }], "options": [
|
|
22
|
+
{ "name": "-y", "description": "Confirm all" },
|
|
23
|
+
{ "name": "--force", "description": "Force uninstall" },
|
|
24
|
+
{ "name": "--all-versions", "description": "Remove all versions" }
|
|
25
|
+
]},
|
|
26
|
+
{ "name": "upgrade", "description": "Upgrade packages", "args": [{ "name": "packages", "description": "Package names (or all)", "required": true }], "options": [
|
|
27
|
+
{ "name": "-y", "description": "Confirm all" },
|
|
28
|
+
{ "name": "--except", "description": "Exclude packages", "takesValue": true },
|
|
29
|
+
{ "name": "--pre", "description": "Include prerelease" },
|
|
30
|
+
{ "name": "--noop", "description": "Dry run / simulation" }
|
|
31
|
+
]},
|
|
32
|
+
{ "name": "search", "description": "Search packages", "args": [{ "name": "query", "description": "Search term", "required": true }], "options": [
|
|
33
|
+
{ "name": "--exact", "description": "Exact match" },
|
|
34
|
+
{ "name": "--source", "shorthand": "-s", "description": "Source", "takesValue": true },
|
|
35
|
+
{ "name": "--pre", "description": "Include prerelease" },
|
|
36
|
+
{ "name": "--page", "description": "Page number", "takesValue": true },
|
|
37
|
+
{ "name": "--page-size", "description": "Page size", "takesValue": true }
|
|
38
|
+
]},
|
|
39
|
+
{ "name": "list", "description": "List installed packages", "options": [
|
|
40
|
+
{ "name": "--local-only", "shorthand": "-l", "description": "Local only (installed)" },
|
|
41
|
+
{ "name": "--pre", "description": "Include prerelease" }
|
|
42
|
+
]},
|
|
43
|
+
{ "name": "info", "description": "Get package info", "args": [{ "name": "package", "description": "Package name", "required": true }] },
|
|
44
|
+
{ "name": "outdated", "description": "Show outdated packages" },
|
|
45
|
+
{ "name": "pin", "description": "Pin a package version", "subcommands": [
|
|
46
|
+
{ "name": "add", "description": "Pin a package" },
|
|
47
|
+
{ "name": "remove", "description": "Unpin a package" },
|
|
48
|
+
{ "name": "list", "description": "List pinned packages" }
|
|
49
|
+
]},
|
|
50
|
+
{ "name": "source", "description": "Manage sources", "subcommands": [
|
|
51
|
+
{ "name": "add", "description": "Add source" },
|
|
52
|
+
{ "name": "remove", "description": "Remove source" },
|
|
53
|
+
{ "name": "list", "description": "List sources" },
|
|
54
|
+
{ "name": "enable", "description": "Enable source" },
|
|
55
|
+
{ "name": "disable", "description": "Disable source" }
|
|
56
|
+
]},
|
|
57
|
+
{ "name": "config", "description": "Manage config", "subcommands": [
|
|
58
|
+
{ "name": "get", "description": "Get config value" },
|
|
59
|
+
{ "name": "set", "description": "Set config value" },
|
|
60
|
+
{ "name": "unset", "description": "Unset config" },
|
|
61
|
+
{ "name": "list", "description": "List config" }
|
|
62
|
+
]},
|
|
63
|
+
{ "name": "feature", "description": "Manage features", "subcommands": [
|
|
64
|
+
{ "name": "list", "description": "List features" },
|
|
65
|
+
{ "name": "enable", "description": "Enable feature" },
|
|
66
|
+
{ "name": "disable", "description": "Disable feature" }
|
|
67
|
+
]},
|
|
68
|
+
{ "name": "pack", "description": "Create a package from nuspec" },
|
|
69
|
+
{ "name": "push", "description": "Push package to repository" },
|
|
70
|
+
{ "name": "new", "description": "Create new package template" },
|
|
71
|
+
{ "name": "export", "description": "Export installed packages to file" }
|
|
72
|
+
],
|
|
73
|
+
"globalOptions": [
|
|
74
|
+
{ "name": "-y", "description": "Confirm all prompts" },
|
|
75
|
+
{ "name": "-f", "description": "Force" },
|
|
76
|
+
{ "name": "--verbose", "shorthand": "-v", "description": "Verbose output" },
|
|
77
|
+
{ "name": "--debug", "description": "Debug output" },
|
|
78
|
+
{ "name": "--trace", "description": "Trace output" },
|
|
79
|
+
{ "name": "--no-color", "description": "No colors" },
|
|
80
|
+
{ "name": "--limit-output", "shorthand": "-r", "description": "Limit output for parsing" },
|
|
81
|
+
{ "name": "--timeout", "description": "Command timeout", "takesValue": true },
|
|
82
|
+
{ "name": "--cache-location", "shorthand": "-c", "description": "Cache location", "takesValue": true },
|
|
83
|
+
{ "name": "--allow-unofficial-build", "description": "Allow unofficial build" }
|
|
84
|
+
],
|
|
85
|
+
"examples": [
|
|
86
|
+
{ "command": "choco install git -y", "description": "Install Git" },
|
|
87
|
+
{ "command": "choco install nodejs python3 -y", "description": "Install multiple packages" },
|
|
88
|
+
{ "command": "choco install nodejs --version 18.0.0", "description": "Specific version" },
|
|
89
|
+
{ "command": "choco upgrade all -y", "description": "Upgrade all packages" },
|
|
90
|
+
{ "command": "choco search redis", "description": "Search packages" },
|
|
91
|
+
{ "command": "choco list -l", "description": "List installed" },
|
|
92
|
+
{ "command": "choco outdated", "description": "Show outdated" },
|
|
93
|
+
{ "command": "choco uninstall nodejs -y", "description": "Uninstall" },
|
|
94
|
+
{ "command": "choco pin add -n nodejs --version 18.0.0", "description": "Pin version" },
|
|
95
|
+
{ "command": "choco export packages.config", "description": "Export package list" }
|
|
96
|
+
],
|
|
97
|
+
"relatedCommands": ["winget", "scoop"],
|
|
98
|
+
"contextEngine": {
|
|
99
|
+
"detectors": [
|
|
100
|
+
{
|
|
101
|
+
"name": "installed",
|
|
102
|
+
"description": "Installed packages",
|
|
103
|
+
"command": "choco list -l -r 2>$null | Select-Object -Last 20",
|
|
104
|
+
"parser": "lines",
|
|
105
|
+
"cacheFor": 120,
|
|
106
|
+
"requiresCmd": "choco"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"name": "outdated",
|
|
110
|
+
"description": "Outdated packages",
|
|
111
|
+
"command": "choco outdated -r 2>$null | Select-Object -First 15",
|
|
112
|
+
"parser": "lines",
|
|
113
|
+
"cacheFor": 300,
|
|
114
|
+
"requiresCmd": "choco"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"name": "sources",
|
|
118
|
+
"description": "Configured sources",
|
|
119
|
+
"command": "choco source list -r 2>$null",
|
|
120
|
+
"parser": "lines",
|
|
121
|
+
"cacheFor": 300,
|
|
122
|
+
"requiresCmd": "choco"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"name": "pinned",
|
|
126
|
+
"description": "Pinned packages",
|
|
127
|
+
"command": "choco pin list -r 2>$null",
|
|
128
|
+
"parser": "lines",
|
|
129
|
+
"cacheFor": 300,
|
|
130
|
+
"requiresCmd": "choco"
|
|
131
|
+
}
|
|
132
|
+
]
|
|
133
|
+
}
|
|
134
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "chown",
|
|
3
|
+
"description": "Change file owner and group",
|
|
4
|
+
"category": "Linux Coreutils",
|
|
5
|
+
"platforms": ["linux", "macos"],
|
|
6
|
+
"shells": ["bash", "zsh", "fish"],
|
|
7
|
+
"subcommands": [],
|
|
8
|
+
"globalOptions": [
|
|
9
|
+
{ "name": "--recursive", "shorthand": "-R", "description": "Operate recursively on directories" },
|
|
10
|
+
{ "name": "--verbose", "shorthand": "-v", "description": "Verbose output" },
|
|
11
|
+
{ "name": "--changes", "shorthand": "-c", "description": "Report only when changes are made" },
|
|
12
|
+
{ "name": "--silent", "shorthand": "-f", "description": "Suppress error messages" },
|
|
13
|
+
{ "name": "--no-dereference", "shorthand": "-h", "description": "Affect symbolic links (not referenced file)" },
|
|
14
|
+
{ "name": "--from", "description": "Change only if current owner/group matches", "takesValue": true },
|
|
15
|
+
{ "name": "--reference", "description": "Use reference file's owner/group", "takesValue": true },
|
|
16
|
+
{ "name": "--dereference", "description": "Affect dereferenced file (default)" },
|
|
17
|
+
{ "name": "-H", "description": "If -R, traverse symlinks on command line" },
|
|
18
|
+
{ "name": "-L", "description": "If -R, traverse all symlinks" },
|
|
19
|
+
{ "name": "-P", "description": "If -R, never traverse symlinks (default)" },
|
|
20
|
+
{ "name": "--preserve-root", "description": "Don't recurse on /" },
|
|
21
|
+
{ "name": "--no-preserve-root", "description": "Allow recursion on /" },
|
|
22
|
+
{ "name": "--help", "description": "Show help" }
|
|
23
|
+
],
|
|
24
|
+
"examples": [
|
|
25
|
+
{ "command": "chown user:group file.txt", "description": "Change owner and group" },
|
|
26
|
+
{ "command": "chown -R www-data:www-data /var/www", "description": "Recursive ownership change" },
|
|
27
|
+
{ "command": "chown user file.txt", "description": "Change only owner" },
|
|
28
|
+
{ "command": "chown :group file.txt", "description": "Change only group" },
|
|
29
|
+
{ "command": "chown --reference=ref.txt target.txt", "description": "Match reference file" },
|
|
30
|
+
{ "command": "chown -Rv deploy:deploy /opt/app", "description": "Verbose recursive change" },
|
|
31
|
+
{ "command": "sudo chown root:root /etc/config", "description": "Change to root ownership" }
|
|
32
|
+
],
|
|
33
|
+
"relatedCommands": ["chmod", "ls"],
|
|
34
|
+
"contextEngine": {
|
|
35
|
+
"detectors": [
|
|
36
|
+
{
|
|
37
|
+
"name": "users",
|
|
38
|
+
"description": "System users",
|
|
39
|
+
"command": "cut -d: -f1 /etc/passwd 2>/dev/null | sort | head -30",
|
|
40
|
+
"parser": "lines",
|
|
41
|
+
"cacheFor": 120
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"name": "groups",
|
|
45
|
+
"description": "System groups",
|
|
46
|
+
"command": "cut -d: -f1 /etc/group 2>/dev/null | sort | head -30",
|
|
47
|
+
"parser": "lines",
|
|
48
|
+
"cacheFor": 120
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"name": "current_ownership",
|
|
52
|
+
"description": "Current file ownership",
|
|
53
|
+
"command": "ls -la 2>/dev/null | head -20",
|
|
54
|
+
"parser": "lines",
|
|
55
|
+
"cacheFor": 10
|
|
56
|
+
}
|
|
57
|
+
]
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "clickhouse-client",
|
|
3
|
+
"description": "ClickHouse native command-line client for analytics queries",
|
|
4
|
+
"category": "Database",
|
|
5
|
+
"platforms": ["linux", "macos", "windows"],
|
|
6
|
+
"shells": ["bash", "zsh", "powershell", "fish"],
|
|
7
|
+
"subcommands": [],
|
|
8
|
+
"globalOptions": [
|
|
9
|
+
{ "name": "--host", "shorthand": "-h", "description": "Server hostname", "takesValue": true },
|
|
10
|
+
{ "name": "--port", "description": "Server port (default: 9000 native, 8123 HTTP)", "takesValue": true },
|
|
11
|
+
{ "name": "--user", "shorthand": "-u", "description": "Username", "takesValue": true },
|
|
12
|
+
{ "name": "--password", "description": "Password", "takesValue": true },
|
|
13
|
+
{ "name": "--database", "shorthand": "-d", "description": "Database name", "takesValue": true },
|
|
14
|
+
{ "name": "--query", "shorthand": "-q", "description": "Execute query and exit", "takesValue": true },
|
|
15
|
+
{ "name": "--multiquery", "shorthand": "-n", "description": "Allow multiple queries separated by semicolons" },
|
|
16
|
+
{ "name": "--multiline", "shorthand": "-m", "description": "Multiline mode (use ;; to execute)" },
|
|
17
|
+
{ "name": "--format", "shorthand": "-f", "description": "Output format (TabSeparated, CSV, JSON, Pretty, etc.)", "takesValue": true },
|
|
18
|
+
{ "name": "--vertical", "shorthand": "-E", "description": "Vertical format" },
|
|
19
|
+
{ "name": "--time", "shorthand": "-t", "description": "Print query execution time" },
|
|
20
|
+
{ "name": "--stacktrace", "description": "Show stack trace on exceptions" },
|
|
21
|
+
{ "name": "--progress", "description": "Show query progress" },
|
|
22
|
+
{ "name": "--secure", "description": "Use TLS" },
|
|
23
|
+
{ "name": "--config-file", "shorthand": "-C", "description": "Config file path", "takesValue": true },
|
|
24
|
+
{ "name": "--history_file", "description": "Path to command history file", "takesValue": true },
|
|
25
|
+
{ "name": "--max_insert_block_size", "description": "Max rows per insert block", "takesValue": true },
|
|
26
|
+
{ "name": "--max_threads", "description": "Max query threads", "takesValue": true }
|
|
27
|
+
],
|
|
28
|
+
"examples": [
|
|
29
|
+
{ "command": "clickhouse-client", "description": "Connect to local server" },
|
|
30
|
+
{ "command": "clickhouse-client -q 'SELECT 1'", "description": "Execute query" },
|
|
31
|
+
{ "command": "clickhouse-client -h analytics.example.com -u admin --password secret -d mydb", "description": "Remote connection" },
|
|
32
|
+
{ "command": "clickhouse-client -q 'SELECT * FROM events' --format JSON", "description": "JSON output" },
|
|
33
|
+
{ "command": "clickhouse-client -n -q 'CREATE TABLE t(x UInt32) ENGINE=MergeTree ORDER BY x; INSERT INTO t VALUES (1)'", "description": "Multiple queries" },
|
|
34
|
+
{ "command": "cat data.csv | clickhouse-client -q 'INSERT INTO events FORMAT CSV'", "description": "Import CSV" },
|
|
35
|
+
{ "command": "clickhouse-client -q 'SHOW DATABASES'", "description": "List databases" }
|
|
36
|
+
],
|
|
37
|
+
"relatedCommands": ["psql", "mysql", "influx"],
|
|
38
|
+
"contextEngine": {
|
|
39
|
+
"detectors": [
|
|
40
|
+
{
|
|
41
|
+
"name": "databases",
|
|
42
|
+
"description": "Available databases",
|
|
43
|
+
"command": "clickhouse-client -q 'SHOW DATABASES' --format=TabSeparatedRaw 2>/dev/null",
|
|
44
|
+
"parser": "lines",
|
|
45
|
+
"cacheFor": 30,
|
|
46
|
+
"requiresCmd": "clickhouse-client"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"name": "tables",
|
|
50
|
+
"description": "Tables in current database",
|
|
51
|
+
"command": "clickhouse-client -q 'SHOW TABLES' --format=TabSeparatedRaw 2>/dev/null | head -30",
|
|
52
|
+
"parser": "lines",
|
|
53
|
+
"cacheFor": 30,
|
|
54
|
+
"requiresCmd": "clickhouse-client"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"name": "version",
|
|
58
|
+
"description": "ClickHouse version",
|
|
59
|
+
"command": "clickhouse-client -q 'SELECT version()' 2>/dev/null",
|
|
60
|
+
"parser": "text",
|
|
61
|
+
"cacheFor": 300,
|
|
62
|
+
"requiresCmd": "clickhouse-client"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"name": "engines",
|
|
66
|
+
"description": "Available table engines",
|
|
67
|
+
"command": "clickhouse-client -q 'SELECT name FROM system.table_engines ORDER BY name' --format=TabSeparatedRaw 2>/dev/null | head -20",
|
|
68
|
+
"parser": "lines",
|
|
69
|
+
"cacheFor": 300,
|
|
70
|
+
"requiresCmd": "clickhouse-client"
|
|
71
|
+
}
|
|
72
|
+
]
|
|
73
|
+
}
|
|
74
|
+
}
|