cc-permissions 0.1.2
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/LICENSE +14 -0
- package/README.md +230 -0
- package/dist/analyze.d.ts +10 -0
- package/dist/analyze.d.ts.map +1 -0
- package/dist/analyze.js +213 -0
- package/dist/analyze.js.map +1 -0
- package/dist/cli.d.ts +3 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +348 -0
- package/dist/cli.js.map +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +14 -0
- package/dist/index.js.map +1 -0
- package/dist/output.d.ts +83 -0
- package/dist/output.d.ts.map +1 -0
- package/dist/output.js +178 -0
- package/dist/output.js.map +1 -0
- package/dist/permissions.d.ts +32 -0
- package/dist/permissions.d.ts.map +1 -0
- package/dist/permissions.js +98 -0
- package/dist/permissions.js.map +1 -0
- package/dist/templates/cache.d.ts +71 -0
- package/dist/templates/cache.d.ts.map +1 -0
- package/dist/templates/cache.js +137 -0
- package/dist/templates/cache.js.map +1 -0
- package/dist/templates/dotnet.d.ts +3 -0
- package/dist/templates/dotnet.d.ts.map +1 -0
- package/dist/templates/dotnet.js +76 -0
- package/dist/templates/dotnet.js.map +1 -0
- package/dist/templates/general.d.ts +3 -0
- package/dist/templates/general.d.ts.map +1 -0
- package/dist/templates/general.js +59 -0
- package/dist/templates/general.js.map +1 -0
- package/dist/templates/index.d.ts +32 -0
- package/dist/templates/index.d.ts.map +1 -0
- package/dist/templates/index.js +54 -0
- package/dist/templates/index.js.map +1 -0
- package/dist/templates/loader.d.ts +19 -0
- package/dist/templates/loader.d.ts.map +1 -0
- package/dist/templates/loader.js +221 -0
- package/dist/templates/loader.js.map +1 -0
- package/dist/templates/python.d.ts +3 -0
- package/dist/templates/python.d.ts.map +1 -0
- package/dist/templates/python.js +110 -0
- package/dist/templates/python.js.map +1 -0
- package/dist/templates/remote.d.ts +45 -0
- package/dist/templates/remote.d.ts.map +1 -0
- package/dist/templates/remote.js +147 -0
- package/dist/templates/remote.js.map +1 -0
- package/dist/templates/web.d.ts +3 -0
- package/dist/templates/web.d.ts.map +1 -0
- package/dist/templates/web.js +101 -0
- package/dist/templates/web.js.map +1 -0
- package/dist/types.d.ts +44 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +8 -0
- package/dist/types.js.map +1 -0
- package/dist/version.d.ts +53 -0
- package/dist/version.d.ts.map +1 -0
- package/dist/version.js +118 -0
- package/dist/version.js.map +1 -0
- package/package.json +54 -0
- package/templates/android.jsonc +99 -0
- package/templates/aws.jsonc +113 -0
- package/templates/azure.jsonc +103 -0
- package/templates/database.jsonc +133 -0
- package/templates/docker.jsonc +115 -0
- package/templates/dotnet.jsonc +80 -0
- package/templates/flutter.jsonc +106 -0
- package/templates/gcp.jsonc +110 -0
- package/templates/git.jsonc +52 -0
- package/templates/github.jsonc +132 -0
- package/templates/go.jsonc +75 -0
- package/templates/ios.jsonc +98 -0
- package/templates/java.jsonc +93 -0
- package/templates/kubernetes.jsonc +114 -0
- package/templates/nodejs.jsonc +105 -0
- package/templates/php.jsonc +107 -0
- package/templates/python.jsonc +114 -0
- package/templates/ruby.jsonc +99 -0
- package/templates/rust.jsonc +97 -0
- package/templates/shell.jsonc +73 -0
- package/templates/template.schema.json +102 -0
- package/templates/terraform.jsonc +96 -0
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../template.schema.json",
|
|
3
|
+
"name": "azure",
|
|
4
|
+
"description": "Azure CLI, Functions, Bicep, and Azure Developer CLI",
|
|
5
|
+
"category": "Cloud Providers",
|
|
6
|
+
"detection": {
|
|
7
|
+
"files": ["*.bicep", "azure.yaml", "azure-pipelines.yml"]
|
|
8
|
+
},
|
|
9
|
+
"levels": {
|
|
10
|
+
"restrictive": [
|
|
11
|
+
// az cli info
|
|
12
|
+
{ "command": "az --version", "description": "Check Azure CLI version" },
|
|
13
|
+
{ "command": "az account show", "description": "Show current account" },
|
|
14
|
+
{ "command": "az account list", "description": "List Azure accounts" },
|
|
15
|
+
{ "command": "az configure --list-defaults", "description": "List default config" },
|
|
16
|
+
// resource groups
|
|
17
|
+
{ "command": "az group list", "description": "List resource groups" },
|
|
18
|
+
{ "command": "az group show", "description": "Show resource group details" },
|
|
19
|
+
// resources
|
|
20
|
+
{ "command": "az resource list", "description": "List resources" },
|
|
21
|
+
{ "command": "az resource show", "description": "Show resource details" },
|
|
22
|
+
// storage
|
|
23
|
+
{ "command": "az storage account list", "description": "List storage accounts" },
|
|
24
|
+
{ "command": "az storage blob list", "description": "List blobs" },
|
|
25
|
+
{ "command": "az storage container list", "description": "List containers" },
|
|
26
|
+
// webapp
|
|
27
|
+
{ "command": "az webapp list", "description": "List web apps" },
|
|
28
|
+
{ "command": "az webapp show", "description": "Show web app details" },
|
|
29
|
+
// functions
|
|
30
|
+
{ "command": "az functionapp list", "description": "List function apps" },
|
|
31
|
+
{ "command": "az functionapp show", "description": "Show function app details" },
|
|
32
|
+
{ "command": "func --version", "description": "Check Azure Functions Core Tools version" },
|
|
33
|
+
// container
|
|
34
|
+
{ "command": "az acr list", "description": "List container registries" },
|
|
35
|
+
{ "command": "az aks list", "description": "List AKS clusters" },
|
|
36
|
+
// bicep
|
|
37
|
+
{ "command": "az bicep version", "description": "Check Bicep version" },
|
|
38
|
+
// azd info
|
|
39
|
+
{ "command": "azd version", "description": "Check Azure Developer CLI version" },
|
|
40
|
+
{ "command": "azd config list", "description": "List azd config" },
|
|
41
|
+
{ "command": "azd env list", "description": "List azd environments" }
|
|
42
|
+
],
|
|
43
|
+
"standard": [
|
|
44
|
+
// resource group management
|
|
45
|
+
{ "command": "az group create", "description": "Create resource group" },
|
|
46
|
+
// functions local dev
|
|
47
|
+
{ "command": "func start", "description": "Start Functions locally" },
|
|
48
|
+
{ "command": "func new", "description": "Create new function" },
|
|
49
|
+
{ "command": "func init", "description": "Initialize Functions project" },
|
|
50
|
+
{ "command": "func extensions install", "description": "Install function extensions" },
|
|
51
|
+
// bicep development
|
|
52
|
+
{ "command": "az bicep build", "description": "Build Bicep file" },
|
|
53
|
+
{ "command": "az bicep decompile", "description": "Decompile ARM to Bicep" },
|
|
54
|
+
{ "command": "az bicep format", "description": "Format Bicep file" },
|
|
55
|
+
{ "command": "az bicep lint", "description": "Lint Bicep file" },
|
|
56
|
+
// azd local dev
|
|
57
|
+
{ "command": "azd init", "description": "Initialize azd project" },
|
|
58
|
+
{ "command": "azd env new", "description": "Create azd environment" },
|
|
59
|
+
{ "command": "azd env set", "description": "Set azd environment variable" },
|
|
60
|
+
{ "command": "azd env get-values", "description": "Get environment values" },
|
|
61
|
+
{ "command": "azd restore", "description": "Restore dependencies" },
|
|
62
|
+
{ "command": "azd build", "description": "Build application" },
|
|
63
|
+
// storage operations
|
|
64
|
+
{ "command": "az storage blob download", "description": "Download blob" },
|
|
65
|
+
{ "command": "az storage blob download-batch", "description": "Download blobs batch" },
|
|
66
|
+
// logs
|
|
67
|
+
{ "command": "az webapp log tail", "description": "Tail webapp logs" },
|
|
68
|
+
{ "command": "az functionapp log tail", "description": "Tail function logs" },
|
|
69
|
+
{ "command": "az monitor log-analytics query", "description": "Query logs" }
|
|
70
|
+
],
|
|
71
|
+
"permissive": [
|
|
72
|
+
// deployment
|
|
73
|
+
{ "command": "az deployment group create", "description": "Create resource group deployment" },
|
|
74
|
+
{ "command": "az deployment sub create", "description": "Create subscription deployment" },
|
|
75
|
+
{ "command": "az deployment group delete", "description": "Delete deployment" },
|
|
76
|
+
// webapp deploy
|
|
77
|
+
{ "command": "az webapp deploy", "description": "Deploy to web app" },
|
|
78
|
+
{ "command": "az webapp create", "description": "Create web app" },
|
|
79
|
+
{ "command": "az webapp delete", "description": "Delete web app" },
|
|
80
|
+
{ "command": "az webapp up", "description": "Quick deploy web app" },
|
|
81
|
+
// functions deploy
|
|
82
|
+
{ "command": "func azure functionapp publish", "description": "Publish to Azure Functions" },
|
|
83
|
+
{ "command": "az functionapp create", "description": "Create function app" },
|
|
84
|
+
{ "command": "az functionapp delete", "description": "Delete function app" },
|
|
85
|
+
// azd deploy
|
|
86
|
+
{ "command": "azd up", "description": "Provision and deploy with azd" },
|
|
87
|
+
{ "command": "azd deploy", "description": "Deploy with azd" },
|
|
88
|
+
{ "command": "azd provision", "description": "Provision Azure resources" },
|
|
89
|
+
{ "command": "azd down", "description": "Delete azd resources" },
|
|
90
|
+
// storage destructive
|
|
91
|
+
{ "command": "az storage blob upload", "description": "Upload blob" },
|
|
92
|
+
{ "command": "az storage blob upload-batch", "description": "Upload blobs batch" },
|
|
93
|
+
{ "command": "az storage blob delete", "description": "Delete blob" },
|
|
94
|
+
{ "command": "az storage container create", "description": "Create container" },
|
|
95
|
+
{ "command": "az storage container delete", "description": "Delete container" },
|
|
96
|
+
// resource group delete
|
|
97
|
+
{ "command": "az group delete", "description": "Delete resource group" },
|
|
98
|
+
// acr
|
|
99
|
+
{ "command": "az acr build", "description": "Build with ACR" },
|
|
100
|
+
{ "command": "az acr login", "description": "Login to ACR" }
|
|
101
|
+
]
|
|
102
|
+
}
|
|
103
|
+
}
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../template.schema.json",
|
|
3
|
+
"name": "database",
|
|
4
|
+
"description": "PostgreSQL, MySQL, MongoDB, and Redis CLI tools",
|
|
5
|
+
"category": "Utilities",
|
|
6
|
+
"levels": {
|
|
7
|
+
"restrictive": [
|
|
8
|
+
// psql info
|
|
9
|
+
{ "command": "psql --version", "description": "Check psql version" },
|
|
10
|
+
{ "command": "psql -V", "description": "Check psql version" },
|
|
11
|
+
{ "command": "pg_config --version", "description": "Check PostgreSQL config" },
|
|
12
|
+
{ "command": "pg_isready", "description": "Check PostgreSQL connection" },
|
|
13
|
+
// mysql info
|
|
14
|
+
{ "command": "mysql --version", "description": "Check MySQL version" },
|
|
15
|
+
{ "command": "mysql -V", "description": "Check MySQL version" },
|
|
16
|
+
{ "command": "mysqladmin version", "description": "Check MySQL admin version" },
|
|
17
|
+
{ "command": "mysqladmin ping", "description": "Ping MySQL server" },
|
|
18
|
+
{ "command": "mysqladmin status", "description": "Check MySQL status" },
|
|
19
|
+
// mongosh info
|
|
20
|
+
{ "command": "mongosh --version", "description": "Check mongosh version" },
|
|
21
|
+
{ "command": "mongo --version", "description": "Check mongo version" },
|
|
22
|
+
// redis info
|
|
23
|
+
{ "command": "redis-cli --version", "description": "Check redis-cli version" },
|
|
24
|
+
{ "command": "redis-cli -v", "description": "Check redis-cli version" },
|
|
25
|
+
{ "command": "redis-cli ping", "description": "Ping Redis server" },
|
|
26
|
+
{ "command": "redis-cli info", "description": "Get Redis info" },
|
|
27
|
+
// sqlite info
|
|
28
|
+
{ "command": "sqlite3 --version", "description": "Check SQLite version" },
|
|
29
|
+
{ "command": "sqlite3 -version", "description": "Check SQLite version" }
|
|
30
|
+
],
|
|
31
|
+
"standard": [
|
|
32
|
+
// psql read queries
|
|
33
|
+
{ "command": "psql -c \"SELECT", "description": "Run PostgreSQL SELECT query" },
|
|
34
|
+
{ "command": "psql -c 'SELECT", "description": "Run PostgreSQL SELECT query" },
|
|
35
|
+
{ "command": "psql -c \"\\d", "description": "PostgreSQL describe" },
|
|
36
|
+
{ "command": "psql -c '\\d", "description": "PostgreSQL describe" },
|
|
37
|
+
{ "command": "psql -c \"\\dt", "description": "List PostgreSQL tables" },
|
|
38
|
+
{ "command": "psql -c '\\dt", "description": "List PostgreSQL tables" },
|
|
39
|
+
{ "command": "psql -c \"\\l", "description": "List PostgreSQL databases" },
|
|
40
|
+
{ "command": "psql -c '\\l", "description": "List PostgreSQL databases" },
|
|
41
|
+
{ "command": "psql -c \"EXPLAIN", "description": "Explain PostgreSQL query" },
|
|
42
|
+
{ "command": "psql -c 'EXPLAIN", "description": "Explain PostgreSQL query" },
|
|
43
|
+
{ "command": "pg_dump --schema-only", "description": "Dump PostgreSQL schema" },
|
|
44
|
+
// mysql read queries
|
|
45
|
+
{ "command": "mysql -e \"SELECT", "description": "Run MySQL SELECT query" },
|
|
46
|
+
{ "command": "mysql -e 'SELECT", "description": "Run MySQL SELECT query" },
|
|
47
|
+
{ "command": "mysql -e \"SHOW", "description": "MySQL SHOW command" },
|
|
48
|
+
{ "command": "mysql -e 'SHOW", "description": "MySQL SHOW command" },
|
|
49
|
+
{ "command": "mysql -e \"DESCRIBE", "description": "MySQL DESCRIBE" },
|
|
50
|
+
{ "command": "mysql -e 'DESCRIBE", "description": "MySQL DESCRIBE" },
|
|
51
|
+
{ "command": "mysql -e \"EXPLAIN", "description": "Explain MySQL query" },
|
|
52
|
+
{ "command": "mysql -e 'EXPLAIN", "description": "Explain MySQL query" },
|
|
53
|
+
{ "command": "mysqldump --no-data", "description": "Dump MySQL schema only" },
|
|
54
|
+
// mongosh read operations
|
|
55
|
+
{ "command": "mongosh --eval \"db.getCollectionNames()\"", "description": "List MongoDB collections" },
|
|
56
|
+
{ "command": "mongosh --eval 'db.getCollectionNames()'", "description": "List MongoDB collections" },
|
|
57
|
+
{ "command": "mongosh --eval \"db.stats()\"", "description": "MongoDB database stats" },
|
|
58
|
+
{ "command": "mongosh --eval 'db.stats()'", "description": "MongoDB database stats" },
|
|
59
|
+
// redis read operations
|
|
60
|
+
{ "command": "redis-cli GET", "description": "Redis GET key" },
|
|
61
|
+
{ "command": "redis-cli KEYS", "description": "Redis list keys" },
|
|
62
|
+
{ "command": "redis-cli SCAN", "description": "Redis scan keys" },
|
|
63
|
+
{ "command": "redis-cli TYPE", "description": "Redis get key type" },
|
|
64
|
+
{ "command": "redis-cli TTL", "description": "Redis get TTL" },
|
|
65
|
+
{ "command": "redis-cli EXISTS", "description": "Redis check key exists" },
|
|
66
|
+
{ "command": "redis-cli HGETALL", "description": "Redis get hash" },
|
|
67
|
+
{ "command": "redis-cli LRANGE", "description": "Redis get list range" },
|
|
68
|
+
{ "command": "redis-cli SMEMBERS", "description": "Redis get set members" },
|
|
69
|
+
{ "command": "redis-cli ZRANGE", "description": "Redis get sorted set range" },
|
|
70
|
+
{ "command": "redis-cli DBSIZE", "description": "Redis get database size" },
|
|
71
|
+
// sqlite read
|
|
72
|
+
{ "command": "sqlite3", "description": "SQLite CLI" }
|
|
73
|
+
],
|
|
74
|
+
"permissive": [
|
|
75
|
+
// psql write queries
|
|
76
|
+
{ "command": "psql -c \"INSERT", "description": "PostgreSQL INSERT" },
|
|
77
|
+
{ "command": "psql -c 'INSERT", "description": "PostgreSQL INSERT" },
|
|
78
|
+
{ "command": "psql -c \"UPDATE", "description": "PostgreSQL UPDATE" },
|
|
79
|
+
{ "command": "psql -c 'UPDATE", "description": "PostgreSQL UPDATE" },
|
|
80
|
+
{ "command": "psql -c \"DELETE", "description": "PostgreSQL DELETE" },
|
|
81
|
+
{ "command": "psql -c 'DELETE", "description": "PostgreSQL DELETE" },
|
|
82
|
+
{ "command": "psql -c \"CREATE", "description": "PostgreSQL CREATE" },
|
|
83
|
+
{ "command": "psql -c 'CREATE", "description": "PostgreSQL CREATE" },
|
|
84
|
+
{ "command": "psql -c \"DROP", "description": "PostgreSQL DROP" },
|
|
85
|
+
{ "command": "psql -c 'DROP", "description": "PostgreSQL DROP" },
|
|
86
|
+
{ "command": "psql -c \"ALTER", "description": "PostgreSQL ALTER" },
|
|
87
|
+
{ "command": "psql -c 'ALTER", "description": "PostgreSQL ALTER" },
|
|
88
|
+
{ "command": "psql -c \"TRUNCATE", "description": "PostgreSQL TRUNCATE" },
|
|
89
|
+
{ "command": "psql -c 'TRUNCATE", "description": "PostgreSQL TRUNCATE" },
|
|
90
|
+
{ "command": "psql -f", "description": "Run PostgreSQL script" },
|
|
91
|
+
{ "command": "pg_dump", "description": "Dump PostgreSQL database" },
|
|
92
|
+
{ "command": "pg_restore", "description": "Restore PostgreSQL database" },
|
|
93
|
+
{ "command": "createdb", "description": "Create PostgreSQL database" },
|
|
94
|
+
{ "command": "dropdb", "description": "Drop PostgreSQL database" },
|
|
95
|
+
// mysql write queries
|
|
96
|
+
{ "command": "mysql -e \"INSERT", "description": "MySQL INSERT" },
|
|
97
|
+
{ "command": "mysql -e 'INSERT", "description": "MySQL INSERT" },
|
|
98
|
+
{ "command": "mysql -e \"UPDATE", "description": "MySQL UPDATE" },
|
|
99
|
+
{ "command": "mysql -e 'UPDATE", "description": "MySQL UPDATE" },
|
|
100
|
+
{ "command": "mysql -e \"DELETE", "description": "MySQL DELETE" },
|
|
101
|
+
{ "command": "mysql -e 'DELETE", "description": "MySQL DELETE" },
|
|
102
|
+
{ "command": "mysql -e \"CREATE", "description": "MySQL CREATE" },
|
|
103
|
+
{ "command": "mysql -e 'CREATE", "description": "MySQL CREATE" },
|
|
104
|
+
{ "command": "mysql -e \"DROP", "description": "MySQL DROP" },
|
|
105
|
+
{ "command": "mysql -e 'DROP", "description": "MySQL DROP" },
|
|
106
|
+
{ "command": "mysql -e \"ALTER", "description": "MySQL ALTER" },
|
|
107
|
+
{ "command": "mysql -e 'ALTER", "description": "MySQL ALTER" },
|
|
108
|
+
{ "command": "mysql -e \"TRUNCATE", "description": "MySQL TRUNCATE" },
|
|
109
|
+
{ "command": "mysql -e 'TRUNCATE", "description": "MySQL TRUNCATE" },
|
|
110
|
+
{ "command": "mysqldump", "description": "Dump MySQL database" },
|
|
111
|
+
{ "command": "mysqladmin create", "description": "Create MySQL database" },
|
|
112
|
+
{ "command": "mysqladmin drop", "description": "Drop MySQL database" },
|
|
113
|
+
// mongosh write operations
|
|
114
|
+
{ "command": "mongosh --eval \"db.", "description": "MongoDB write operations" },
|
|
115
|
+
{ "command": "mongosh --eval 'db.", "description": "MongoDB write operations" },
|
|
116
|
+
{ "command": "mongodump", "description": "Dump MongoDB database" },
|
|
117
|
+
{ "command": "mongorestore", "description": "Restore MongoDB database" },
|
|
118
|
+
// redis write operations
|
|
119
|
+
{ "command": "redis-cli SET", "description": "Redis SET key" },
|
|
120
|
+
{ "command": "redis-cli DEL", "description": "Redis DELETE key" },
|
|
121
|
+
{ "command": "redis-cli HSET", "description": "Redis set hash field" },
|
|
122
|
+
{ "command": "redis-cli HDEL", "description": "Redis delete hash field" },
|
|
123
|
+
{ "command": "redis-cli LPUSH", "description": "Redis push to list" },
|
|
124
|
+
{ "command": "redis-cli RPUSH", "description": "Redis push to list" },
|
|
125
|
+
{ "command": "redis-cli SADD", "description": "Redis add to set" },
|
|
126
|
+
{ "command": "redis-cli SREM", "description": "Redis remove from set" },
|
|
127
|
+
{ "command": "redis-cli ZADD", "description": "Redis add to sorted set" },
|
|
128
|
+
{ "command": "redis-cli ZREM", "description": "Redis remove from sorted set" },
|
|
129
|
+
{ "command": "redis-cli FLUSHDB", "description": "Redis flush database" },
|
|
130
|
+
{ "command": "redis-cli FLUSHALL", "description": "Redis flush all databases" }
|
|
131
|
+
]
|
|
132
|
+
}
|
|
133
|
+
}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../template.schema.json",
|
|
3
|
+
"name": "docker",
|
|
4
|
+
"description": "Docker, Docker Compose, and Buildx",
|
|
5
|
+
"category": "Container & Infrastructure",
|
|
6
|
+
"detection": {
|
|
7
|
+
"files": ["Dockerfile", "docker-compose.yml", "docker-compose.yaml", "compose.yml", "compose.yaml"]
|
|
8
|
+
},
|
|
9
|
+
"levels": {
|
|
10
|
+
"restrictive": [
|
|
11
|
+
// docker info
|
|
12
|
+
{ "command": "docker --version", "description": "Check Docker version" },
|
|
13
|
+
{ "command": "docker version", "description": "Show Docker version details" },
|
|
14
|
+
{ "command": "docker info", "description": "Show Docker system info" },
|
|
15
|
+
// container read-only
|
|
16
|
+
{ "command": "docker ps", "description": "List running containers" },
|
|
17
|
+
{ "command": "docker container ls", "description": "List containers" },
|
|
18
|
+
{ "command": "docker container inspect", "description": "Inspect container" },
|
|
19
|
+
{ "command": "docker logs", "description": "View container logs" },
|
|
20
|
+
{ "command": "docker top", "description": "Show container processes" },
|
|
21
|
+
{ "command": "docker stats", "description": "Show container stats" },
|
|
22
|
+
{ "command": "docker port", "description": "Show port mappings" },
|
|
23
|
+
{ "command": "docker diff", "description": "Show container changes" },
|
|
24
|
+
// image read-only
|
|
25
|
+
{ "command": "docker images", "description": "List images" },
|
|
26
|
+
{ "command": "docker image ls", "description": "List images" },
|
|
27
|
+
{ "command": "docker image inspect", "description": "Inspect image" },
|
|
28
|
+
{ "command": "docker image history", "description": "Show image history" },
|
|
29
|
+
{ "command": "docker search", "description": "Search Docker Hub" },
|
|
30
|
+
// network read-only
|
|
31
|
+
{ "command": "docker network ls", "description": "List networks" },
|
|
32
|
+
{ "command": "docker network inspect", "description": "Inspect network" },
|
|
33
|
+
// volume read-only
|
|
34
|
+
{ "command": "docker volume ls", "description": "List volumes" },
|
|
35
|
+
{ "command": "docker volume inspect", "description": "Inspect volume" },
|
|
36
|
+
// docker-compose info
|
|
37
|
+
{ "command": "docker-compose --version", "description": "Check Compose version" },
|
|
38
|
+
{ "command": "docker-compose version", "description": "Check Compose version" },
|
|
39
|
+
{ "command": "docker compose version", "description": "Check Compose v2 version" },
|
|
40
|
+
{ "command": "docker-compose config", "description": "Validate Compose config" },
|
|
41
|
+
{ "command": "docker compose config", "description": "Validate Compose v2 config" },
|
|
42
|
+
{ "command": "docker-compose ps", "description": "List Compose containers" },
|
|
43
|
+
{ "command": "docker compose ps", "description": "List Compose v2 containers" },
|
|
44
|
+
// buildx info
|
|
45
|
+
{ "command": "docker buildx version", "description": "Check Buildx version" },
|
|
46
|
+
{ "command": "docker buildx ls", "description": "List Buildx builders" },
|
|
47
|
+
{ "command": "docker buildx inspect", "description": "Inspect Buildx builder" }
|
|
48
|
+
],
|
|
49
|
+
"standard": [
|
|
50
|
+
// build
|
|
51
|
+
{ "command": "docker build", "description": "Build Docker image" },
|
|
52
|
+
{ "command": "docker image build", "description": "Build Docker image" },
|
|
53
|
+
{ "command": "docker buildx build", "description": "Build with Buildx" },
|
|
54
|
+
{ "command": "docker buildx bake", "description": "Build with Bake" },
|
|
55
|
+
// run containers
|
|
56
|
+
{ "command": "docker run", "description": "Run container" },
|
|
57
|
+
{ "command": "docker container run", "description": "Run container" },
|
|
58
|
+
{ "command": "docker start", "description": "Start container" },
|
|
59
|
+
{ "command": "docker stop", "description": "Stop container" },
|
|
60
|
+
{ "command": "docker restart", "description": "Restart container" },
|
|
61
|
+
{ "command": "docker exec", "description": "Execute in container" },
|
|
62
|
+
{ "command": "docker attach", "description": "Attach to container" },
|
|
63
|
+
{ "command": "docker cp", "description": "Copy files to/from container" },
|
|
64
|
+
// docker-compose operations
|
|
65
|
+
{ "command": "docker-compose up", "description": "Start Compose services" },
|
|
66
|
+
{ "command": "docker compose up", "description": "Start Compose v2 services" },
|
|
67
|
+
{ "command": "docker-compose down", "description": "Stop Compose services" },
|
|
68
|
+
{ "command": "docker compose down", "description": "Stop Compose v2 services" },
|
|
69
|
+
{ "command": "docker-compose build", "description": "Build Compose services" },
|
|
70
|
+
{ "command": "docker compose build", "description": "Build Compose v2 services" },
|
|
71
|
+
{ "command": "docker-compose logs", "description": "View Compose logs" },
|
|
72
|
+
{ "command": "docker compose logs", "description": "View Compose v2 logs" },
|
|
73
|
+
{ "command": "docker-compose exec", "description": "Execute in Compose service" },
|
|
74
|
+
{ "command": "docker compose exec", "description": "Execute in Compose v2 service" },
|
|
75
|
+
{ "command": "docker-compose run", "description": "Run Compose command" },
|
|
76
|
+
{ "command": "docker compose run", "description": "Run Compose v2 command" },
|
|
77
|
+
// buildx builders
|
|
78
|
+
{ "command": "docker buildx create", "description": "Create Buildx builder" },
|
|
79
|
+
{ "command": "docker buildx use", "description": "Switch Buildx builder" }
|
|
80
|
+
],
|
|
81
|
+
"permissive": [
|
|
82
|
+
// registry operations
|
|
83
|
+
{ "command": "docker push", "description": "Push image to registry" },
|
|
84
|
+
{ "command": "docker pull", "description": "Pull image from registry" },
|
|
85
|
+
{ "command": "docker login", "description": "Login to registry" },
|
|
86
|
+
{ "command": "docker logout", "description": "Logout from registry" },
|
|
87
|
+
{ "command": "docker tag", "description": "Tag image" },
|
|
88
|
+
// remove containers
|
|
89
|
+
{ "command": "docker rm", "description": "Remove container" },
|
|
90
|
+
{ "command": "docker container rm", "description": "Remove container" },
|
|
91
|
+
{ "command": "docker container prune", "description": "Remove stopped containers" },
|
|
92
|
+
{ "command": "docker kill", "description": "Kill container" },
|
|
93
|
+
// remove images
|
|
94
|
+
{ "command": "docker rmi", "description": "Remove image" },
|
|
95
|
+
{ "command": "docker image rm", "description": "Remove image" },
|
|
96
|
+
{ "command": "docker image prune", "description": "Remove unused images" },
|
|
97
|
+
// network operations
|
|
98
|
+
{ "command": "docker network create", "description": "Create network" },
|
|
99
|
+
{ "command": "docker network rm", "description": "Remove network" },
|
|
100
|
+
{ "command": "docker network prune", "description": "Remove unused networks" },
|
|
101
|
+
{ "command": "docker network connect", "description": "Connect to network" },
|
|
102
|
+
{ "command": "docker network disconnect", "description": "Disconnect from network" },
|
|
103
|
+
// volume operations
|
|
104
|
+
{ "command": "docker volume create", "description": "Create volume" },
|
|
105
|
+
{ "command": "docker volume rm", "description": "Remove volume" },
|
|
106
|
+
{ "command": "docker volume prune", "description": "Remove unused volumes" },
|
|
107
|
+
// system operations
|
|
108
|
+
{ "command": "docker system prune", "description": "Remove unused data" },
|
|
109
|
+
{ "command": "docker builder prune", "description": "Remove build cache" },
|
|
110
|
+
// buildx operations
|
|
111
|
+
{ "command": "docker buildx rm", "description": "Remove Buildx builder" },
|
|
112
|
+
{ "command": "docker buildx prune", "description": "Remove Buildx cache" }
|
|
113
|
+
]
|
|
114
|
+
}
|
|
115
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../template.schema.json",
|
|
3
|
+
"name": "dotnet",
|
|
4
|
+
"description": "dotnet CLI, NuGet, MSBuild",
|
|
5
|
+
"category": "Languages & Runtimes",
|
|
6
|
+
"detection": {
|
|
7
|
+
"files": ["*.csproj", "*.fsproj", "*.vbproj", "*.sln", "nuget.config", "global.json"]
|
|
8
|
+
},
|
|
9
|
+
"levels": {
|
|
10
|
+
"restrictive": [
|
|
11
|
+
// dotnet info/version
|
|
12
|
+
{ "command": "dotnet --version", "description": "Check .NET version" },
|
|
13
|
+
{ "command": "dotnet --info", "description": "Display .NET information" },
|
|
14
|
+
{ "command": "dotnet --list-sdks", "description": "List installed SDKs" },
|
|
15
|
+
{ "command": "dotnet --list-runtimes", "description": "List installed runtimes" },
|
|
16
|
+
{ "command": "dotnet help", "description": "Get .NET help" },
|
|
17
|
+
// Project info
|
|
18
|
+
{ "command": "dotnet list", "description": "List project references" },
|
|
19
|
+
{ "command": "dotnet list package", "description": "List NuGet packages" },
|
|
20
|
+
{ "command": "dotnet list reference", "description": "List project references" },
|
|
21
|
+
// NuGet info
|
|
22
|
+
{ "command": "dotnet nuget list source", "description": "List NuGet sources" },
|
|
23
|
+
{ "command": "nuget list", "description": "List NuGet packages" },
|
|
24
|
+
{ "command": "nuget sources list", "description": "List NuGet sources" },
|
|
25
|
+
// MSBuild info
|
|
26
|
+
{ "command": "dotnet msbuild -version", "description": "Check MSBuild version" },
|
|
27
|
+
{ "command": "msbuild -version", "description": "Check MSBuild version (direct)" }
|
|
28
|
+
],
|
|
29
|
+
"standard": [
|
|
30
|
+
// Build/Run
|
|
31
|
+
{ "command": "dotnet build", "description": "Build the project" },
|
|
32
|
+
{ "command": "dotnet run", "description": "Run the project" },
|
|
33
|
+
{ "command": "dotnet watch", "description": "Watch and rebuild" },
|
|
34
|
+
{ "command": "dotnet clean", "description": "Clean build output" },
|
|
35
|
+
{ "command": "dotnet publish", "description": "Publish the project" },
|
|
36
|
+
// Testing
|
|
37
|
+
{ "command": "dotnet test", "description": "Run tests" },
|
|
38
|
+
// Code quality
|
|
39
|
+
{ "command": "dotnet format", "description": "Format code" },
|
|
40
|
+
// MSBuild
|
|
41
|
+
{ "command": "dotnet msbuild", "description": "Run MSBuild" },
|
|
42
|
+
{ "command": "msbuild", "description": "Run MSBuild (direct)" },
|
|
43
|
+
// EF Core migrations (read/generate)
|
|
44
|
+
{ "command": "dotnet ef migrations", "description": "EF Core migrations" },
|
|
45
|
+
{ "command": "dotnet ef dbcontext", "description": "EF Core DbContext commands" },
|
|
46
|
+
// User secrets (dev only)
|
|
47
|
+
{ "command": "dotnet user-secrets", "description": "Manage user secrets" },
|
|
48
|
+
// Pack (create NuGet package)
|
|
49
|
+
{ "command": "dotnet pack", "description": "Create NuGet package" }
|
|
50
|
+
],
|
|
51
|
+
"permissive": [
|
|
52
|
+
// Package management
|
|
53
|
+
{ "command": "dotnet add package", "description": "Add NuGet package" },
|
|
54
|
+
{ "command": "dotnet add reference", "description": "Add project reference" },
|
|
55
|
+
{ "command": "dotnet remove package", "description": "Remove NuGet package" },
|
|
56
|
+
{ "command": "dotnet remove reference", "description": "Remove project reference" },
|
|
57
|
+
// Restore (downloads packages)
|
|
58
|
+
{ "command": "dotnet restore", "description": "Restore NuGet packages" },
|
|
59
|
+
// Project creation
|
|
60
|
+
{ "command": "dotnet new", "description": "Create new project/file" },
|
|
61
|
+
{ "command": "dotnet sln", "description": "Solution file operations" },
|
|
62
|
+
// Tool management
|
|
63
|
+
{ "command": "dotnet tool install", "description": "Install .NET tool" },
|
|
64
|
+
{ "command": "dotnet tool uninstall", "description": "Uninstall .NET tool" },
|
|
65
|
+
{ "command": "dotnet tool update", "description": "Update .NET tool" },
|
|
66
|
+
{ "command": "dotnet tool restore", "description": "Restore .NET tools" },
|
|
67
|
+
// NuGet publish
|
|
68
|
+
{ "command": "dotnet nuget push", "description": "Push NuGet package" },
|
|
69
|
+
{ "command": "dotnet nuget delete", "description": "Delete NuGet package" },
|
|
70
|
+
{ "command": "dotnet nuget add source", "description": "Add NuGet source" },
|
|
71
|
+
{ "command": "dotnet nuget remove source", "description": "Remove NuGet source" },
|
|
72
|
+
// EF Core database operations
|
|
73
|
+
{ "command": "dotnet ef database", "description": "EF Core database operations" },
|
|
74
|
+
// Workload management
|
|
75
|
+
{ "command": "dotnet workload install", "description": "Install workload" },
|
|
76
|
+
{ "command": "dotnet workload update", "description": "Update workloads" },
|
|
77
|
+
{ "command": "dotnet workload uninstall", "description": "Uninstall workload" }
|
|
78
|
+
]
|
|
79
|
+
}
|
|
80
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../template.schema.json",
|
|
3
|
+
"name": "flutter",
|
|
4
|
+
"description": "Flutter SDK and Dart development",
|
|
5
|
+
"category": "Mobile Development",
|
|
6
|
+
"detection": {
|
|
7
|
+
"contentPatterns": [
|
|
8
|
+
{ "file": "pubspec.yaml", "contains": "flutter:" }
|
|
9
|
+
]
|
|
10
|
+
},
|
|
11
|
+
"levels": {
|
|
12
|
+
"restrictive": [
|
|
13
|
+
// flutter info
|
|
14
|
+
{ "command": "flutter --version", "description": "Check Flutter version" },
|
|
15
|
+
{ "command": "flutter doctor", "description": "Check Flutter environment" },
|
|
16
|
+
{ "command": "flutter doctor -v", "description": "Verbose Flutter doctor" },
|
|
17
|
+
{ "command": "flutter devices", "description": "List connected devices" },
|
|
18
|
+
{ "command": "flutter emulators", "description": "List available emulators" },
|
|
19
|
+
{ "command": "flutter config", "description": "Show Flutter config" },
|
|
20
|
+
{ "command": "flutter channel", "description": "Show Flutter channel" },
|
|
21
|
+
{ "command": "flutter --help", "description": "Flutter help" },
|
|
22
|
+
// flutter project info
|
|
23
|
+
{ "command": "flutter pub deps", "description": "Show dependencies" },
|
|
24
|
+
{ "command": "flutter pub outdated", "description": "List outdated packages" },
|
|
25
|
+
{ "command": "flutter pub cache list", "description": "List cached packages" },
|
|
26
|
+
// dart info
|
|
27
|
+
{ "command": "dart --version", "description": "Check Dart version" },
|
|
28
|
+
{ "command": "dart info", "description": "Show Dart info" },
|
|
29
|
+
{ "command": "dart pub deps", "description": "Show Dart dependencies" },
|
|
30
|
+
{ "command": "dart pub outdated", "description": "List outdated packages" },
|
|
31
|
+
{ "command": "dart --help", "description": "Dart help" },
|
|
32
|
+
// dart analyze (read-only)
|
|
33
|
+
{ "command": "dart analyze", "description": "Analyze Dart code" },
|
|
34
|
+
{ "command": "flutter analyze", "description": "Analyze Flutter project" }
|
|
35
|
+
],
|
|
36
|
+
"standard": [
|
|
37
|
+
// flutter run
|
|
38
|
+
{ "command": "flutter run", "description": "Run Flutter app" },
|
|
39
|
+
{ "command": "flutter run --debug", "description": "Run debug build" },
|
|
40
|
+
{ "command": "flutter run --profile", "description": "Run profile build" },
|
|
41
|
+
{ "command": "flutter run --release", "description": "Run release build" },
|
|
42
|
+
// flutter build
|
|
43
|
+
{ "command": "flutter build", "description": "Build Flutter app" },
|
|
44
|
+
{ "command": "flutter build apk", "description": "Build Android APK" },
|
|
45
|
+
{ "command": "flutter build appbundle", "description": "Build Android AAB" },
|
|
46
|
+
{ "command": "flutter build ios", "description": "Build iOS app" },
|
|
47
|
+
{ "command": "flutter build ipa", "description": "Build iOS IPA" },
|
|
48
|
+
{ "command": "flutter build web", "description": "Build web app" },
|
|
49
|
+
{ "command": "flutter build macos", "description": "Build macOS app" },
|
|
50
|
+
{ "command": "flutter build windows", "description": "Build Windows app" },
|
|
51
|
+
{ "command": "flutter build linux", "description": "Build Linux app" },
|
|
52
|
+
// flutter test
|
|
53
|
+
{ "command": "flutter test", "description": "Run Flutter tests" },
|
|
54
|
+
{ "command": "flutter test --coverage", "description": "Run tests with coverage" },
|
|
55
|
+
{ "command": "flutter drive", "description": "Run integration tests" },
|
|
56
|
+
// flutter format
|
|
57
|
+
{ "command": "dart format", "description": "Format Dart code" },
|
|
58
|
+
{ "command": "flutter format", "description": "Format Flutter code" },
|
|
59
|
+
// flutter pub get
|
|
60
|
+
{ "command": "flutter pub get", "description": "Get dependencies" },
|
|
61
|
+
{ "command": "dart pub get", "description": "Get Dart dependencies" },
|
|
62
|
+
// flutter gen
|
|
63
|
+
{ "command": "flutter gen-l10n", "description": "Generate localizations" },
|
|
64
|
+
{ "command": "flutter packages pub run build_runner build", "description": "Run build_runner" },
|
|
65
|
+
// dart run
|
|
66
|
+
{ "command": "dart run", "description": "Run Dart program" },
|
|
67
|
+
{ "command": "dart compile", "description": "Compile Dart code" },
|
|
68
|
+
{ "command": "dart test", "description": "Run Dart tests" },
|
|
69
|
+
// emulator launch
|
|
70
|
+
{ "command": "flutter emulators --launch", "description": "Launch emulator" }
|
|
71
|
+
],
|
|
72
|
+
"permissive": [
|
|
73
|
+
// flutter pub upgrade
|
|
74
|
+
{ "command": "flutter pub upgrade", "description": "Upgrade dependencies" },
|
|
75
|
+
{ "command": "flutter pub add", "description": "Add dependency" },
|
|
76
|
+
{ "command": "flutter pub remove", "description": "Remove dependency" },
|
|
77
|
+
{ "command": "flutter pub cache clean", "description": "Clean pub cache" },
|
|
78
|
+
{ "command": "flutter pub cache repair", "description": "Repair pub cache" },
|
|
79
|
+
// dart pub
|
|
80
|
+
{ "command": "dart pub upgrade", "description": "Upgrade Dart dependencies" },
|
|
81
|
+
{ "command": "dart pub add", "description": "Add Dart dependency" },
|
|
82
|
+
{ "command": "dart pub remove", "description": "Remove Dart dependency" },
|
|
83
|
+
{ "command": "dart pub cache clean", "description": "Clean Dart pub cache" },
|
|
84
|
+
// flutter clean
|
|
85
|
+
{ "command": "flutter clean", "description": "Clean Flutter project" },
|
|
86
|
+
// flutter publish
|
|
87
|
+
{ "command": "flutter pub publish", "description": "Publish Flutter package" },
|
|
88
|
+
{ "command": "dart pub publish", "description": "Publish Dart package" },
|
|
89
|
+
// flutter create
|
|
90
|
+
{ "command": "flutter create", "description": "Create new project" },
|
|
91
|
+
// flutter upgrade
|
|
92
|
+
{ "command": "flutter upgrade", "description": "Upgrade Flutter SDK" },
|
|
93
|
+
{ "command": "flutter downgrade", "description": "Downgrade Flutter SDK" },
|
|
94
|
+
{ "command": "flutter channel stable", "description": "Switch to stable channel" },
|
|
95
|
+
{ "command": "flutter channel beta", "description": "Switch to beta channel" },
|
|
96
|
+
{ "command": "flutter channel master", "description": "Switch to master channel" },
|
|
97
|
+
// flutter precache
|
|
98
|
+
{ "command": "flutter precache", "description": "Precache Flutter artifacts" },
|
|
99
|
+
// flutter config set
|
|
100
|
+
{ "command": "flutter config --enable-web", "description": "Enable web support" },
|
|
101
|
+
{ "command": "flutter config --enable-macos-desktop", "description": "Enable macOS support" },
|
|
102
|
+
{ "command": "flutter config --enable-windows-desktop", "description": "Enable Windows support" },
|
|
103
|
+
{ "command": "flutter config --enable-linux-desktop", "description": "Enable Linux support" }
|
|
104
|
+
]
|
|
105
|
+
}
|
|
106
|
+
}
|