23 lines
1.5 KiB
JSON
23 lines
1.5 KiB
JSON
{
|
|
"permissions": {
|
|
"allow": [
|
|
"Bash(xargs cat *)",
|
|
"Bash(python3 -c \"import json,sys; d=json.load\\(sys.stdin\\); print\\(json.dumps\\(d.get\\('exports', {}\\), indent=2\\)\\)\")",
|
|
"Bash(python3 -c \"import json,sys; d=json.load\\(sys.stdin\\); print\\(json.dumps\\({k: v for k, v in d.items\\(\\) if k not in ['dependencies', 'devDependencies', 'peerDependencies']}, indent=2\\)\\)\")",
|
|
"Bash(podman pod *)",
|
|
"Bash(podman ps *)",
|
|
"Bash(podman inspect *)",
|
|
"Bash(python3 -c \"import sys,json; d=json.load\\(sys.stdin\\); print\\(json.dumps\\(d[0].get\\('NetworkSettings',{}\\), indent=2\\)\\)\")",
|
|
"Bash(podman network *)",
|
|
"Bash(psql postgresql://postgres:postgres@175.15.15.90:5432/toptran -c \"\\\\conninfo\")",
|
|
"Bash(pg_isready -h 175.15.15.90 -p 5432 -U postgres)",
|
|
"Bash(nc -zv 175.15.15.90 5432)",
|
|
"Bash(python3 -c \"import sys,json; d=json.load\\(sys.stdin\\); c=d[0]; print\\('Networks:', list\\(c.get\\('NetworkSettings',{}\\).get\\('Networks',{}\\).keys\\(\\)\\)\\); print\\('Env:', [e for e in c.get\\('Config',{}\\).get\\('Env',[]\\) if 'DB' in e or 'PORT' in e or 'DATABASE' in e]\\)\")",
|
|
"Bash(podman exec *)",
|
|
"Bash(python3 -c \"import sys,json; d=json.load\\(sys.stdin\\); print\\('Scripts:', d.get\\('scripts',{}\\)\\); print\\('Deps:', list\\(d.get\\('dependencies',{}\\).keys\\(\\)\\)\\)\")",
|
|
"Bash(podman-compose down *)",
|
|
"Bash(podman-compose up *)",
|
|
"Bash(podman logs *)"
|
|
]
|
|
}
|
|
}
|