@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,117 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "linode-cli",
|
|
3
|
+
"description": "Linode CLI for managing Akamai cloud computing services",
|
|
4
|
+
"category": "Cloud CLIs",
|
|
5
|
+
"platforms": ["linux", "macos", "windows"],
|
|
6
|
+
"shells": ["bash", "zsh", "powershell", "fish"],
|
|
7
|
+
"subcommands": [
|
|
8
|
+
{
|
|
9
|
+
"name": "linodes",
|
|
10
|
+
"description": "Manage Linode instances",
|
|
11
|
+
"subcommands": [
|
|
12
|
+
{ "name": "create", "description": "Create a Linode", "options": [{ "name": "--type", "description": "Plan type", "takesValue": true }, { "name": "--region", "description": "Region", "takesValue": true }, { "name": "--image", "description": "Image", "takesValue": true }, { "name": "--root_pass", "description": "Root password", "takesValue": true }, { "name": "--label", "description": "Instance label", "takesValue": true }] },
|
|
13
|
+
{ "name": "list", "description": "List Linodes", "options": [{ "name": "--json", "description": "Output as JSON" }] },
|
|
14
|
+
{ "name": "view", "description": "View a Linode", "args": [{ "name": "id", "description": "Linode ID", "required": true }] },
|
|
15
|
+
{ "name": "delete", "description": "Delete a Linode", "args": [{ "name": "id", "description": "Linode ID", "required": true }] },
|
|
16
|
+
{ "name": "boot", "description": "Boot a Linode", "args": [{ "name": "id", "description": "Linode ID", "required": true }] },
|
|
17
|
+
{ "name": "shutdown", "description": "Shutdown a Linode", "args": [{ "name": "id", "description": "Linode ID", "required": true }] },
|
|
18
|
+
{ "name": "reboot", "description": "Reboot a Linode", "args": [{ "name": "id", "description": "Linode ID", "required": true }] }
|
|
19
|
+
]
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"name": "volumes",
|
|
23
|
+
"description": "Manage block storage volumes",
|
|
24
|
+
"subcommands": [
|
|
25
|
+
{ "name": "create", "description": "Create a volume", "options": [{ "name": "--label", "description": "Volume label", "takesValue": true }, { "name": "--region", "description": "Region", "takesValue": true }, { "name": "--size", "description": "Size in GB", "takesValue": true }] },
|
|
26
|
+
{ "name": "list", "description": "List volumes" },
|
|
27
|
+
{ "name": "delete", "description": "Delete a volume", "args": [{ "name": "id", "description": "Volume ID", "required": true }] }
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"name": "domains",
|
|
32
|
+
"description": "Manage DNS domains",
|
|
33
|
+
"subcommands": [
|
|
34
|
+
{ "name": "create", "description": "Create a domain", "options": [{ "name": "--type", "description": "Domain type", "takesValue": true }, { "name": "--domain", "description": "Domain name", "takesValue": true }] },
|
|
35
|
+
{ "name": "list", "description": "List domains" },
|
|
36
|
+
{ "name": "delete", "description": "Delete a domain", "args": [{ "name": "id", "description": "Domain ID", "required": true }] }
|
|
37
|
+
]
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"name": "lke",
|
|
41
|
+
"description": "Manage LKE Kubernetes clusters",
|
|
42
|
+
"subcommands": [
|
|
43
|
+
{ "name": "cluster-create", "description": "Create a cluster", "options": [{ "name": "--label", "description": "Cluster label", "takesValue": true }, { "name": "--region", "description": "Region", "takesValue": true }, { "name": "--k8s_version", "description": "Kubernetes version", "takesValue": true }] },
|
|
44
|
+
{ "name": "clusters-list", "description": "List clusters" },
|
|
45
|
+
{ "name": "kubeconfig-view", "description": "View kubeconfig", "args": [{ "name": "id", "description": "Cluster ID", "required": true }] }
|
|
46
|
+
]
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"name": "databases",
|
|
50
|
+
"description": "Manage managed databases",
|
|
51
|
+
"subcommands": [
|
|
52
|
+
{ "name": "mysql-create", "description": "Create MySQL database" },
|
|
53
|
+
{ "name": "postgresql-create", "description": "Create PostgreSQL database" },
|
|
54
|
+
{ "name": "list", "description": "List databases" }
|
|
55
|
+
]
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"name": "nodebalancers",
|
|
59
|
+
"description": "Manage NodeBalancers",
|
|
60
|
+
"subcommands": [
|
|
61
|
+
{ "name": "create", "description": "Create a NodeBalancer", "options": [{ "name": "--region", "description": "Region", "takesValue": true }] },
|
|
62
|
+
{ "name": "list", "description": "List NodeBalancers" }
|
|
63
|
+
]
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"name": "regions",
|
|
67
|
+
"description": "List available regions",
|
|
68
|
+
"subcommands": [
|
|
69
|
+
{ "name": "list", "description": "List all regions" }
|
|
70
|
+
]
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"name": "configure",
|
|
74
|
+
"description": "Configure the CLI with authentication"
|
|
75
|
+
}
|
|
76
|
+
],
|
|
77
|
+
"globalOptions": [
|
|
78
|
+
{ "name": "--json", "description": "Output as JSON" },
|
|
79
|
+
{ "name": "--text", "description": "Output as text table" },
|
|
80
|
+
{ "name": "--no-headers", "description": "Omit table headers" },
|
|
81
|
+
{ "name": "--help", "shorthand": "-h", "description": "Show help" }
|
|
82
|
+
],
|
|
83
|
+
"examples": [
|
|
84
|
+
{ "command": "linode-cli linodes create --type g6-nanode-1 --region us-east --image linode/ubuntu22.04 --root_pass MyP@ss", "description": "Create a nanode" },
|
|
85
|
+
{ "command": "linode-cli linodes list --json", "description": "List linodes as JSON" },
|
|
86
|
+
{ "command": "linode-cli lke clusters-list", "description": "List Kubernetes clusters" }
|
|
87
|
+
],
|
|
88
|
+
"relatedCommands": ["doctl", "aws", "gcloud"],
|
|
89
|
+
"contextEngine": {
|
|
90
|
+
"detectors": [
|
|
91
|
+
{
|
|
92
|
+
"name": "linodes",
|
|
93
|
+
"description": "List running Linode instances",
|
|
94
|
+
"command": "linode-cli linodes list --text --no-headers 2>/dev/null",
|
|
95
|
+
"parser": "table",
|
|
96
|
+
"cacheFor": 60,
|
|
97
|
+
"requiresCmd": "linode-cli"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"name": "regions",
|
|
101
|
+
"description": "Available regions",
|
|
102
|
+
"command": "linode-cli regions list --text --no-headers --format 'id,label' 2>/dev/null",
|
|
103
|
+
"parser": "lines",
|
|
104
|
+
"cacheFor": 3600,
|
|
105
|
+
"requiresCmd": "linode-cli"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"name": "databases",
|
|
109
|
+
"description": "Managed databases",
|
|
110
|
+
"command": "linode-cli databases list --text --no-headers 2>/dev/null",
|
|
111
|
+
"parser": "lines",
|
|
112
|
+
"cacheFor": 120,
|
|
113
|
+
"requiresCmd": "linode-cli"
|
|
114
|
+
}
|
|
115
|
+
]
|
|
116
|
+
}
|
|
117
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "locust",
|
|
3
|
+
"description": "Python-based load testing tool with web UI for scalable performance testing",
|
|
4
|
+
"category": "Testing Tools",
|
|
5
|
+
"platforms": ["linux", "macos", "windows"],
|
|
6
|
+
"shells": ["bash", "zsh", "powershell", "fish"],
|
|
7
|
+
"subcommands": [],
|
|
8
|
+
"globalOptions": [
|
|
9
|
+
{ "name": "--locustfile", "shorthand": "-f", "description": "Locust file path", "takesValue": true },
|
|
10
|
+
{ "name": "--host", "shorthand": "-H", "description": "Target host URL", "takesValue": true },
|
|
11
|
+
{ "name": "--users", "shorthand": "-u", "description": "Number of concurrent users", "takesValue": true },
|
|
12
|
+
{ "name": "--spawn-rate", "shorthand": "-r", "description": "Users spawned per second", "takesValue": true },
|
|
13
|
+
{ "name": "--run-time", "shorthand": "-t", "description": "Run time duration", "takesValue": true },
|
|
14
|
+
{ "name": "--headless", "description": "Run without web UI" },
|
|
15
|
+
{ "name": "--autostart", "description": "Start automatically" },
|
|
16
|
+
{ "name": "--autoquit", "description": "Quit after seconds with no activity", "takesValue": true },
|
|
17
|
+
{ "name": "--web-host", "description": "Web UI host", "takesValue": true },
|
|
18
|
+
{ "name": "--web-port", "shorthand": "-P", "description": "Web UI port", "takesValue": true },
|
|
19
|
+
{ "name": "--web-auth", "description": "Web UI auth (user:password)", "takesValue": true },
|
|
20
|
+
{ "name": "--master", "description": "Run as master" },
|
|
21
|
+
{ "name": "--worker", "description": "Run as worker" },
|
|
22
|
+
{ "name": "--master-host", "description": "Master host for workers", "takesValue": true },
|
|
23
|
+
{ "name": "--master-port", "description": "Master port for workers", "takesValue": true },
|
|
24
|
+
{ "name": "--expect-workers", "description": "Expected number of workers", "takesValue": true },
|
|
25
|
+
{ "name": "--csv", "description": "CSV output prefix", "takesValue": true },
|
|
26
|
+
{ "name": "--csv-full-history", "description": "Store full CSV stats history" },
|
|
27
|
+
{ "name": "--html", "description": "HTML report output", "takesValue": true },
|
|
28
|
+
{ "name": "--json", "description": "JSON report output" },
|
|
29
|
+
{ "name": "--logfile", "description": "Log file path", "takesValue": true },
|
|
30
|
+
{ "name": "--loglevel", "shorthand": "-L", "description": "Log level", "takesValue": true },
|
|
31
|
+
{ "name": "--tags", "shorthand": "-T", "description": "Include tasks with tag", "takesValue": true },
|
|
32
|
+
{ "name": "--exclude-tags", "shorthand": "-E", "description": "Exclude tasks with tag", "takesValue": true },
|
|
33
|
+
{ "name": "--skip-log-setup", "description": "Skip logging setup" },
|
|
34
|
+
{ "name": "--stop-timeout", "description": "Stop timeout seconds", "takesValue": true },
|
|
35
|
+
{ "name": "--equal-weights", "description": "Equal user weights" },
|
|
36
|
+
{ "name": "--class-picker", "description": "Show user class picker in UI" },
|
|
37
|
+
{ "name": "--config", "description": "Config file path", "takesValue": true }
|
|
38
|
+
],
|
|
39
|
+
"examples": [
|
|
40
|
+
{ "command": "locust", "description": "Run with web UI (default locustfile.py)" },
|
|
41
|
+
{ "command": "locust -f load_test.py", "description": "Specify test file" },
|
|
42
|
+
{ "command": "locust -f load_test.py --headless -u 100 -r 10 -t 5m", "description": "Headless with 100 users" },
|
|
43
|
+
{ "command": "locust -H http://localhost:3000", "description": "Specify target host" },
|
|
44
|
+
{ "command": "locust --master", "description": "Start master node" },
|
|
45
|
+
{ "command": "locust --worker --master-host 192.168.1.1", "description": "Start worker" },
|
|
46
|
+
{ "command": "locust -f test.py --csv results --headless -u 50 -r 5 -t 2m", "description": "CSV report headless" },
|
|
47
|
+
{ "command": "locust -f test.py --html report.html", "description": "Generate HTML report" }
|
|
48
|
+
],
|
|
49
|
+
"relatedCommands": ["k6", "pytest"],
|
|
50
|
+
"contextEngine": {
|
|
51
|
+
"detectors": [
|
|
52
|
+
{
|
|
53
|
+
"name": "locustfiles",
|
|
54
|
+
"description": "Locust test files",
|
|
55
|
+
"command": "find . -maxdepth 2 -name 'locustfile.py' -o -name '*locust*.py' 2>/dev/null | head -10",
|
|
56
|
+
"parser": "lines",
|
|
57
|
+
"cacheFor": 30
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"name": "user_classes",
|
|
61
|
+
"description": "User classes defined",
|
|
62
|
+
"command": "grep -rn 'class.*User\\|class.*HttpUser\\|class.*TaskSet' --include='*.py' . 2>/dev/null | head -10",
|
|
63
|
+
"parser": "lines",
|
|
64
|
+
"cacheFor": 30
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"name": "config",
|
|
68
|
+
"description": "Locust configuration",
|
|
69
|
+
"command": "cat locust.conf 2>/dev/null || cat .locust.conf 2>/dev/null",
|
|
70
|
+
"parser": "text",
|
|
71
|
+
"cacheFor": 60
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"name": "version",
|
|
75
|
+
"description": "Locust version",
|
|
76
|
+
"command": "locust --version 2>/dev/null",
|
|
77
|
+
"parser": "text",
|
|
78
|
+
"cacheFor": 300,
|
|
79
|
+
"requiresCmd": "locust"
|
|
80
|
+
}
|
|
81
|
+
]
|
|
82
|
+
}
|
|
83
|
+
}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "ls",
|
|
3
|
+
"description": "List directory contents",
|
|
4
|
+
"category": "coreutils",
|
|
5
|
+
"platforms": ["linux", "macos"],
|
|
6
|
+
"shells": ["bash", "zsh", "fish"],
|
|
7
|
+
"subcommands": [],
|
|
8
|
+
"globalOptions": [
|
|
9
|
+
{ "name": "-l", "description": "Long listing format" },
|
|
10
|
+
{ "name": "-a", "description": "Show all files (including hidden)" },
|
|
11
|
+
{ "name": "-A", "description": "Show almost all (exclude . and ..)" },
|
|
12
|
+
{ "name": "-h", "description": "Human-readable sizes (with -l)" },
|
|
13
|
+
{ "name": "-R", "description": "List subdirectories recursively" },
|
|
14
|
+
{ "name": "-r", "description": "Reverse order while sorting" },
|
|
15
|
+
{ "name": "-t", "description": "Sort by modification time (newest first)" },
|
|
16
|
+
{ "name": "-S", "description": "Sort by file size (largest first)" },
|
|
17
|
+
{ "name": "-d", "description": "List directories themselves, not their contents" },
|
|
18
|
+
{ "name": "-i", "description": "Show inode numbers" },
|
|
19
|
+
{ "name": "-1", "description": "One file per line" },
|
|
20
|
+
{ "name": "--color", "description": "Colorize output (auto, always, never)", "type": "string" },
|
|
21
|
+
{ "name": "-F", "description": "Append indicator (*/=>@|) to entries" },
|
|
22
|
+
{ "name": "-G", "description": "Don't print group names (with -l)" },
|
|
23
|
+
{ "name": "-n", "description": "Numeric UID and GID" },
|
|
24
|
+
{ "name": "--sort", "description": "Sort by (none, size, time, version, extension)", "type": "string" },
|
|
25
|
+
{ "name": "--group-directories-first", "description": "List directories before files" },
|
|
26
|
+
{ "name": "--block-size", "description": "Scale sizes to SIZE", "type": "string" },
|
|
27
|
+
{ "name": "--hide", "description": "Hide entries matching pattern", "type": "string" },
|
|
28
|
+
{ "name": "-X", "description": "Sort alphabetically by extension" }
|
|
29
|
+
],
|
|
30
|
+
"examples": [
|
|
31
|
+
"ls",
|
|
32
|
+
"ls -la",
|
|
33
|
+
"ls -lah",
|
|
34
|
+
"ls -lt",
|
|
35
|
+
"ls -lS",
|
|
36
|
+
"ls -R",
|
|
37
|
+
"ls -la /etc/",
|
|
38
|
+
"ls -1",
|
|
39
|
+
"ls -d */",
|
|
40
|
+
"ls --color=auto -lah",
|
|
41
|
+
"ls --group-directories-first -la",
|
|
42
|
+
"ls -lahtr",
|
|
43
|
+
"ls -li",
|
|
44
|
+
"ls *.json"
|
|
45
|
+
],
|
|
46
|
+
"relatedCommands": ["find", "tree", "du", "stat", "file", "chmod", "chown"],
|
|
47
|
+
"contextEngine": {
|
|
48
|
+
"detectors": [
|
|
49
|
+
{
|
|
50
|
+
"name": "cwd_contents",
|
|
51
|
+
"description": "Files and directories in the current working directory",
|
|
52
|
+
"command": "ls -1A 2>/dev/null | head -50",
|
|
53
|
+
"parser": "lines",
|
|
54
|
+
"cacheFor": 3,
|
|
55
|
+
"requiresCmd": "ls"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"name": "cwd_path",
|
|
59
|
+
"description": "Current working directory path",
|
|
60
|
+
"command": "pwd",
|
|
61
|
+
"parser": "text",
|
|
62
|
+
"cacheFor": 3,
|
|
63
|
+
"requiresCmd": "ls"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"name": "cwd_size",
|
|
67
|
+
"description": "Total size of current directory",
|
|
68
|
+
"command": "du -sh . 2>/dev/null | awk '{print $1}'",
|
|
69
|
+
"parser": "text",
|
|
70
|
+
"cacheFor": 30,
|
|
71
|
+
"requiresCmd": "ls"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"name": "cwd_file_count",
|
|
75
|
+
"description": "Number of files in current directory",
|
|
76
|
+
"command": "ls -1A 2>/dev/null | wc -l",
|
|
77
|
+
"parser": "text",
|
|
78
|
+
"cacheFor": 5,
|
|
79
|
+
"requiresCmd": "ls"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"name": "hidden_files",
|
|
83
|
+
"description": "Hidden files in the current directory",
|
|
84
|
+
"command": "ls -d .* 2>/dev/null | grep -v '^\\.\\.\\?$'",
|
|
85
|
+
"parser": "lines",
|
|
86
|
+
"cacheFor": 10,
|
|
87
|
+
"requiresCmd": "ls"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"name": "largest_files",
|
|
91
|
+
"description": "Largest files in the current directory",
|
|
92
|
+
"command": "ls -lhS 2>/dev/null | head -11 | tail -10",
|
|
93
|
+
"parser": "lines",
|
|
94
|
+
"cacheFor": 15,
|
|
95
|
+
"requiresCmd": "ls"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"name": "recent_files",
|
|
99
|
+
"description": "Most recently modified files",
|
|
100
|
+
"command": "ls -lht 2>/dev/null | head -11 | tail -10",
|
|
101
|
+
"parser": "lines",
|
|
102
|
+
"cacheFor": 5,
|
|
103
|
+
"requiresCmd": "ls"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"name": "disk_usage",
|
|
107
|
+
"description": "Disk usage of filesystem containing cwd",
|
|
108
|
+
"command": "df -h . 2>/dev/null | tail -1",
|
|
109
|
+
"parser": "text",
|
|
110
|
+
"cacheFor": 60,
|
|
111
|
+
"requiresCmd": "ls"
|
|
112
|
+
}
|
|
113
|
+
]
|
|
114
|
+
}
|
|
115
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "make",
|
|
3
|
+
"description": "GNU Make — build automation tool that reads Makefiles to compile and link programs",
|
|
4
|
+
"category": "build-tools",
|
|
5
|
+
"platforms": ["linux", "macos", "windows"],
|
|
6
|
+
"shells": ["bash", "zsh", "fish"],
|
|
7
|
+
"subcommands": [],
|
|
8
|
+
"globalOptions": [
|
|
9
|
+
{ "name": "-f", "description": "Read FILE as the makefile", "type": "file" },
|
|
10
|
+
{ "name": "-C", "description": "Change to directory before reading makefile", "type": "directory" },
|
|
11
|
+
{ "name": "-j", "description": "Number of parallel jobs", "type": "number" },
|
|
12
|
+
{ "name": "-k", "description": "Keep going after errors" },
|
|
13
|
+
{ "name": "-n", "description": "Dry run — print commands without executing" },
|
|
14
|
+
{ "name": "-B", "description": "Unconditionally make all targets" },
|
|
15
|
+
{ "name": "-s", "description": "Silent mode — don't echo recipes" },
|
|
16
|
+
{ "name": "-i", "description": "Ignore errors in recipes" },
|
|
17
|
+
{ "name": "-d", "description": "Print lots of debugging info" },
|
|
18
|
+
{ "name": "-p", "description": "Print internal database (rules and variables)" },
|
|
19
|
+
{ "name": "-q", "description": "Question mode — exit with 0 if target is up to date" },
|
|
20
|
+
{ "name": "-t", "description": "Touch targets instead of remaking them" },
|
|
21
|
+
{ "name": "-W", "description": "Pretend FILE has been modified", "type": "file" },
|
|
22
|
+
{ "name": "--jobs", "description": "Number of parallel jobs", "type": "number" },
|
|
23
|
+
{ "name": "--always-make", "description": "Unconditionally make all targets" },
|
|
24
|
+
{ "name": "--dry-run", "description": "Print commands without executing" },
|
|
25
|
+
{ "name": "--keep-going", "description": "Keep going after errors" },
|
|
26
|
+
{ "name": "--environment-overrides", "short": "-e", "description": "Environment variables override makefiles" }
|
|
27
|
+
],
|
|
28
|
+
"examples": [
|
|
29
|
+
"make",
|
|
30
|
+
"make build",
|
|
31
|
+
"make -j$(nproc)",
|
|
32
|
+
"make clean",
|
|
33
|
+
"make install",
|
|
34
|
+
"make test",
|
|
35
|
+
"make -f Makefile.prod build",
|
|
36
|
+
"make -n deploy",
|
|
37
|
+
"make -C subdir all",
|
|
38
|
+
"make CFLAGS='-O2 -Wall' build",
|
|
39
|
+
"make -j4 -k all"
|
|
40
|
+
],
|
|
41
|
+
"relatedCommands": ["cmake", "gradle", "mvn", "ninja", "just", "bazel"],
|
|
42
|
+
"contextEngine": {
|
|
43
|
+
"detectors": [
|
|
44
|
+
{
|
|
45
|
+
"name": "makefile_targets",
|
|
46
|
+
"description": "All targets defined in the Makefile",
|
|
47
|
+
"command": "make -pRrq 2>/dev/null | awk -F: '/^[a-zA-Z0-9][^$#\\/\\t=]*:([^=]|$)/ {split($1,a,/ /);for(i in a)print a[i]}' | sort -u | grep -v '^Makefile$'",
|
|
48
|
+
"parser": "lines",
|
|
49
|
+
"cacheFor": 15,
|
|
50
|
+
"requiresCmd": "make"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"name": "makefile_exists",
|
|
54
|
+
"description": "Whether a Makefile exists in the current directory",
|
|
55
|
+
"command": "test -f Makefile && echo 'Makefile' || test -f makefile && echo 'makefile' || test -f GNUmakefile && echo 'GNUmakefile' || echo 'none'",
|
|
56
|
+
"parser": "text",
|
|
57
|
+
"cacheFor": 10,
|
|
58
|
+
"requiresCmd": "make"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"name": "makefile_variables",
|
|
62
|
+
"description": "Variables defined in the Makefile",
|
|
63
|
+
"command": "make -pRrq 2>/dev/null | grep '^[A-Z_]*[[:space:]]*=' | head -30",
|
|
64
|
+
"parser": "lines",
|
|
65
|
+
"cacheFor": 15,
|
|
66
|
+
"requiresCmd": "make"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"name": "makefile_includes",
|
|
70
|
+
"description": "Included makefiles",
|
|
71
|
+
"command": "grep -E '^(include|-include|sinclude)' Makefile 2>/dev/null",
|
|
72
|
+
"parser": "lines",
|
|
73
|
+
"cacheFor": 30,
|
|
74
|
+
"requiresCmd": "make"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"name": "phony_targets",
|
|
78
|
+
"description": "PHONY targets (non-file targets)",
|
|
79
|
+
"command": "grep -E '^\\.PHONY' Makefile 2>/dev/null | sed 's/.PHONY[[:space:]]*:[[:space:]]*//' | tr ' ' '\\n' | sort -u",
|
|
80
|
+
"parser": "lines",
|
|
81
|
+
"cacheFor": 15,
|
|
82
|
+
"requiresCmd": "make"
|
|
83
|
+
}
|
|
84
|
+
]
|
|
85
|
+
}
|
|
86
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "mocha",
|
|
3
|
+
"description": "Feature-rich JavaScript testing framework for Node.js",
|
|
4
|
+
"category": "Testing Tools",
|
|
5
|
+
"platforms": ["linux", "macos", "windows"],
|
|
6
|
+
"shells": ["bash", "zsh", "powershell", "fish"],
|
|
7
|
+
"subcommands": [],
|
|
8
|
+
"globalOptions": [
|
|
9
|
+
{ "name": "--watch", "shorthand": "-w", "description": "Watch mode" },
|
|
10
|
+
{ "name": "--bail", "shorthand": "-b", "description": "Abort after first failure" },
|
|
11
|
+
{ "name": "--recursive", "description": "Include subdirectories" },
|
|
12
|
+
{ "name": "--reporter", "shorthand": "-R", "description": "Reporter (spec, dot, nyan, json, min, list, progress)", "takesValue": true },
|
|
13
|
+
{ "name": "--timeout", "shorthand": "-t", "description": "Test timeout (ms)", "takesValue": true },
|
|
14
|
+
{ "name": "--slow", "shorthand": "-s", "description": "Slow threshold (ms)", "takesValue": true },
|
|
15
|
+
{ "name": "--grep", "shorthand": "-g", "description": "Filter tests by name pattern", "takesValue": true },
|
|
16
|
+
{ "name": "--fgrep", "shorthand": "-f", "description": "Filter tests by string", "takesValue": true },
|
|
17
|
+
{ "name": "--invert", "shorthand": "-i", "description": "Invert grep match" },
|
|
18
|
+
{ "name": "--require", "shorthand": "-r", "description": "Require module before tests", "takesValue": true },
|
|
19
|
+
{ "name": "--file", "description": "Include file before test suite", "takesValue": true },
|
|
20
|
+
{ "name": "--spec", "shorthand": "-S", "description": "Spec file patterns", "takesValue": true },
|
|
21
|
+
{ "name": "--sort", "description": "Sort test files" },
|
|
22
|
+
{ "name": "--retries", "description": "Number of retries for failed tests", "takesValue": true },
|
|
23
|
+
{ "name": "--config", "description": "Config file path", "takesValue": true },
|
|
24
|
+
{ "name": "--parallel", "shorthand": "-p", "description": "Run tests in parallel" },
|
|
25
|
+
{ "name": "--jobs", "shorthand": "-j", "description": "Max parallel jobs", "takesValue": true },
|
|
26
|
+
{ "name": "--diff", "description": "Show diff on failures" },
|
|
27
|
+
{ "name": "--exit", "description": "Force exit after tests" },
|
|
28
|
+
{ "name": "--no-timeouts", "description": "Disable timeouts" },
|
|
29
|
+
{ "name": "--check-leaks", "description": "Check for global leaks" },
|
|
30
|
+
{ "name": "--colors", "shorthand": "-c", "description": "Force colors" },
|
|
31
|
+
{ "name": "--no-colors", "shorthand": "-C", "description": "Force no colors" },
|
|
32
|
+
{ "name": "--dry-run", "description": "Report without executing" },
|
|
33
|
+
{ "name": "--list-files", "description": "List matching test files" },
|
|
34
|
+
{ "name": "--list-reporters", "description": "List available reporters" },
|
|
35
|
+
{ "name": "--node-option", "shorthand": "-n", "description": "Node.js option", "takesValue": true }
|
|
36
|
+
],
|
|
37
|
+
"examples": [
|
|
38
|
+
{ "command": "mocha", "description": "Run tests in ./test" },
|
|
39
|
+
{ "command": "mocha --recursive", "description": "Include subdirectories" },
|
|
40
|
+
{ "command": "mocha --watch", "description": "Watch mode" },
|
|
41
|
+
{ "command": "mocha -g 'auth'", "description": "Filter by name pattern" },
|
|
42
|
+
{ "command": "mocha --reporter dot", "description": "Dot reporter" },
|
|
43
|
+
{ "command": "mocha --timeout 5000", "description": "5 second timeout" },
|
|
44
|
+
{ "command": "mocha --parallel -j 4", "description": "Run 4 workers in parallel" },
|
|
45
|
+
{ "command": "mocha 'src/**/*.test.js'", "description": "Custom glob pattern" },
|
|
46
|
+
{ "command": "mocha --bail --exit", "description": "Stop on first failure, force exit" }
|
|
47
|
+
],
|
|
48
|
+
"relatedCommands": ["jest", "vitest"],
|
|
49
|
+
"contextEngine": {
|
|
50
|
+
"detectors": [
|
|
51
|
+
{
|
|
52
|
+
"name": "config",
|
|
53
|
+
"description": "Mocha configuration",
|
|
54
|
+
"command": "cat .mocharc.yml 2>/dev/null || cat .mocharc.yaml 2>/dev/null || cat .mocharc.js 2>/dev/null || cat .mocharc.json 2>/dev/null",
|
|
55
|
+
"parser": "text",
|
|
56
|
+
"cacheFor": 60
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"name": "test_files",
|
|
60
|
+
"description": "Test files",
|
|
61
|
+
"command": "find . -path './test/**' -name '*.js' -o -name '*.test.*' 2>/dev/null | grep -v node_modules | head -20",
|
|
62
|
+
"parser": "lines",
|
|
63
|
+
"cacheFor": 30
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"name": "reporters",
|
|
67
|
+
"description": "Available reporters",
|
|
68
|
+
"command": "npx mocha --list-reporters 2>/dev/null | head -15",
|
|
69
|
+
"parser": "lines",
|
|
70
|
+
"cacheFor": 300,
|
|
71
|
+
"requiresCmd": "mocha"
|
|
72
|
+
}
|
|
73
|
+
]
|
|
74
|
+
}
|
|
75
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "mongosh",
|
|
3
|
+
"description": "MongoDB Shell - modern interactive JavaScript interface for MongoDB",
|
|
4
|
+
"category": "Database",
|
|
5
|
+
"platforms": ["linux", "macos", "windows"],
|
|
6
|
+
"shells": ["bash", "zsh", "powershell", "fish"],
|
|
7
|
+
"subcommands": [],
|
|
8
|
+
"globalOptions": [
|
|
9
|
+
{ "name": "--host", "description": "Server hostname", "takesValue": true },
|
|
10
|
+
{ "name": "--port", "description": "Server port", "takesValue": true },
|
|
11
|
+
{ "name": "--username", "shorthand": "-u", "description": "Username", "takesValue": true },
|
|
12
|
+
{ "name": "--password", "shorthand": "-p", "description": "Password", "takesValue": true },
|
|
13
|
+
{ "name": "--authenticationDatabase", "description": "Auth database", "takesValue": true },
|
|
14
|
+
{ "name": "--authenticationMechanism", "description": "Auth mechanism", "takesValue": true },
|
|
15
|
+
{ "name": "--eval", "description": "Evaluate JavaScript expression", "takesValue": true },
|
|
16
|
+
{ "name": "--file", "description": "Execute JavaScript file", "takesValue": true },
|
|
17
|
+
{ "name": "--shell", "description": "Open shell after script" },
|
|
18
|
+
{ "name": "--nodb", "description": "Don't connect to database" },
|
|
19
|
+
{ "name": "--norc", "description": "Don't read .mongoshrc.js" },
|
|
20
|
+
{ "name": "--quiet", "description": "Suppress non-error output" },
|
|
21
|
+
{ "name": "--json", "description": "JSON output mode" },
|
|
22
|
+
{ "name": "--tls", "description": "Enable TLS/SSL" },
|
|
23
|
+
{ "name": "--tlsCertificateKeyFile", "description": "TLS certificate file", "takesValue": true },
|
|
24
|
+
{ "name": "--tlsCAFile", "description": "TLS CA file", "takesValue": true },
|
|
25
|
+
{ "name": "--apiVersion", "description": "Versioned API version", "takesValue": true },
|
|
26
|
+
{ "name": "--retryWrites", "description": "Enable retry writes" }
|
|
27
|
+
],
|
|
28
|
+
"examples": [
|
|
29
|
+
{ "command": "mongosh", "description": "Connect to local MongoDB" },
|
|
30
|
+
{ "command": "mongosh mongodb://localhost:27017/mydb", "description": "Connect to specific database" },
|
|
31
|
+
{ "command": "mongosh --eval 'db.users.find()'", "description": "Execute query" },
|
|
32
|
+
{ "command": "mongosh --host rs0/host1:27017,host2:27017", "description": "Connect to replica set" },
|
|
33
|
+
{ "command": "mongosh 'mongodb+srv://user:pass@cluster.mongodb.net/mydb'", "description": "Connect to Atlas" },
|
|
34
|
+
{ "command": "mongosh --file script.js", "description": "Execute script file" },
|
|
35
|
+
{ "command": "mongosh --json --eval 'db.stats()'", "description": "JSON output" }
|
|
36
|
+
],
|
|
37
|
+
"relatedCommands": ["mysql", "psql", "redis-cli"],
|
|
38
|
+
"contextEngine": {
|
|
39
|
+
"detectors": [
|
|
40
|
+
{
|
|
41
|
+
"name": "databases",
|
|
42
|
+
"description": "Available databases",
|
|
43
|
+
"command": "mongosh --quiet --eval 'db.adminCommand({listDatabases:1}).databases.map(d=>d.name).join(\"\\n\")' 2>/dev/null",
|
|
44
|
+
"parser": "lines",
|
|
45
|
+
"cacheFor": 30,
|
|
46
|
+
"requiresCmd": "mongosh"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"name": "collections",
|
|
50
|
+
"description": "Collections in current database",
|
|
51
|
+
"command": "mongosh --quiet --eval 'db.getCollectionNames().join(\"\\n\")' 2>/dev/null",
|
|
52
|
+
"parser": "lines",
|
|
53
|
+
"cacheFor": 30,
|
|
54
|
+
"requiresCmd": "mongosh"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"name": "server_status",
|
|
58
|
+
"description": "Server status",
|
|
59
|
+
"command": "mongosh --quiet --eval 'JSON.stringify({version:db.version(),host:db.serverStatus().host})' 2>/dev/null",
|
|
60
|
+
"parser": "json",
|
|
61
|
+
"cacheFor": 60,
|
|
62
|
+
"requiresCmd": "mongosh"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"name": "mongosh_config",
|
|
66
|
+
"description": "Mongosh config file",
|
|
67
|
+
"command": "cat ~/.mongoshrc.js 2>/dev/null | head -10",
|
|
68
|
+
"parser": "text",
|
|
69
|
+
"cacheFor": 120
|
|
70
|
+
}
|
|
71
|
+
]
|
|
72
|
+
}
|
|
73
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "mv",
|
|
3
|
+
"description": "Move or rename files and directories",
|
|
4
|
+
"category": "coreutils",
|
|
5
|
+
"platforms": ["linux", "macos"],
|
|
6
|
+
"shells": ["bash", "zsh", "fish"],
|
|
7
|
+
"subcommands": [],
|
|
8
|
+
"globalOptions": [
|
|
9
|
+
{ "name": "-i", "description": "Prompt before overwrite" },
|
|
10
|
+
{ "name": "-n", "description": "Do not overwrite existing files" },
|
|
11
|
+
{ "name": "-f", "description": "Force overwrite without prompting" },
|
|
12
|
+
{ "name": "-u", "description": "Move only when source is newer than destination" },
|
|
13
|
+
{ "name": "-v", "description": "Verbose — explain what is being done" },
|
|
14
|
+
{ "name": "--backup", "description": "Make a backup of each existing destination file", "type": "string" },
|
|
15
|
+
{ "name": "-b", "description": "Make backup (simple)" },
|
|
16
|
+
{ "name": "--suffix", "short": "-S", "description": "Override backup suffix", "type": "string" },
|
|
17
|
+
{ "name": "-t", "description": "Move all source arguments into target directory", "type": "directory" },
|
|
18
|
+
{ "name": "-T", "description": "Treat destination as a normal file" }
|
|
19
|
+
],
|
|
20
|
+
"examples": [
|
|
21
|
+
"mv oldname.txt newname.txt",
|
|
22
|
+
"mv file.txt /dest/",
|
|
23
|
+
"mv -i source.txt dest.txt",
|
|
24
|
+
"mv -v *.txt /dest/",
|
|
25
|
+
"mv -n file.txt /dest/",
|
|
26
|
+
"mv -u *.log /archive/",
|
|
27
|
+
"mv --backup=numbered file.txt /dest/",
|
|
28
|
+
"mv -t /dest/ file1.txt file2.txt file3.txt",
|
|
29
|
+
"mv olddir/ newdir/"
|
|
30
|
+
],
|
|
31
|
+
"relatedCommands": ["cp", "rm", "rename", "ln", "ls"],
|
|
32
|
+
"contextEngine": {
|
|
33
|
+
"detectors": [
|
|
34
|
+
{
|
|
35
|
+
"name": "cwd_contents",
|
|
36
|
+
"description": "Files and directories in the current working directory",
|
|
37
|
+
"command": "ls -1A 2>/dev/null | head -50",
|
|
38
|
+
"parser": "lines",
|
|
39
|
+
"cacheFor": 3,
|
|
40
|
+
"requiresCmd": "ls"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "cwd_path",
|
|
44
|
+
"description": "Current working directory path",
|
|
45
|
+
"command": "pwd",
|
|
46
|
+
"parser": "text",
|
|
47
|
+
"cacheFor": 3,
|
|
48
|
+
"requiresCmd": "mv"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"name": "directories",
|
|
52
|
+
"description": "Subdirectories in current working directory",
|
|
53
|
+
"command": "ls -d */ 2>/dev/null",
|
|
54
|
+
"parser": "lines",
|
|
55
|
+
"cacheFor": 5,
|
|
56
|
+
"requiresCmd": "ls"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"name": "recent_files",
|
|
60
|
+
"description": "Recently modified files",
|
|
61
|
+
"command": "ls -1t 2>/dev/null | head -15",
|
|
62
|
+
"parser": "lines",
|
|
63
|
+
"cacheFor": 5,
|
|
64
|
+
"requiresCmd": "ls"
|
|
65
|
+
}
|
|
66
|
+
]
|
|
67
|
+
}
|
|
68
|
+
}
|