envshed 0.11.0 → 0.14.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/dist/api.d.ts +1 -0
- package/dist/api.d.ts.map +1 -1
- package/dist/api.js +18 -0
- package/dist/api.js.map +1 -1
- package/dist/commands/completions.d.ts.map +1 -1
- package/dist/commands/completions.js +238 -9
- package/dist/commands/completions.js.map +1 -1
- package/dist/commands/definition.d.ts +3 -0
- package/dist/commands/definition.d.ts.map +1 -0
- package/dist/commands/definition.js +135 -0
- package/dist/commands/definition.js.map +1 -0
- package/dist/commands/definition.test.d.ts +2 -0
- package/dist/commands/definition.test.d.ts.map +1 -0
- package/dist/commands/definition.test.js +233 -0
- package/dist/commands/definition.test.js.map +1 -0
- package/dist/commands/env.d.ts.map +1 -1
- package/dist/commands/env.js +183 -7
- package/dist/commands/env.js.map +1 -1
- package/dist/commands/env.test.js +218 -2
- package/dist/commands/env.test.js.map +1 -1
- package/dist/commands/envs.js.map +1 -1
- package/dist/commands/member.d.ts +3 -0
- package/dist/commands/member.d.ts.map +1 -0
- package/dist/commands/member.js +162 -0
- package/dist/commands/member.js.map +1 -0
- package/dist/commands/member.test.d.ts +2 -0
- package/dist/commands/member.test.d.ts.map +1 -0
- package/dist/commands/member.test.js +230 -0
- package/dist/commands/member.test.js.map +1 -0
- package/dist/commands/orgs.d.ts +1 -0
- package/dist/commands/orgs.d.ts.map +1 -1
- package/dist/commands/orgs.js +60 -0
- package/dist/commands/orgs.js.map +1 -1
- package/dist/commands/orgs.test.js +64 -0
- package/dist/commands/orgs.test.js.map +1 -1
- package/dist/commands/project.d.ts +3 -0
- package/dist/commands/project.d.ts.map +1 -0
- package/dist/commands/project.js +129 -0
- package/dist/commands/project.js.map +1 -0
- package/dist/commands/project.test.d.ts +2 -0
- package/dist/commands/project.test.d.ts.map +1 -0
- package/dist/commands/project.test.js +243 -0
- package/dist/commands/project.test.js.map +1 -0
- package/dist/commands/projects.js.map +1 -1
- package/dist/commands/rename-env.d.ts.map +1 -1
- package/dist/commands/rename-env.js +10 -1
- package/dist/commands/rename-env.js.map +1 -1
- package/dist/commands/secret.d.ts +3 -0
- package/dist/commands/secret.d.ts.map +1 -0
- package/dist/commands/secret.js +260 -0
- package/dist/commands/secret.js.map +1 -0
- package/dist/commands/secret.test.d.ts +2 -0
- package/dist/commands/secret.test.d.ts.map +1 -0
- package/dist/commands/secret.test.js +201 -0
- package/dist/commands/secret.test.js.map +1 -0
- package/dist/commands/token.d.ts.map +1 -1
- package/dist/commands/token.js +40 -1
- package/dist/commands/token.js.map +1 -1
- package/dist/commands/token.test.js +72 -2
- package/dist/commands/token.test.js.map +1 -1
- package/dist/commands/webhook.d.ts +3 -0
- package/dist/commands/webhook.d.ts.map +1 -0
- package/dist/commands/webhook.js +202 -0
- package/dist/commands/webhook.js.map +1 -0
- package/dist/commands/webhook.test.d.ts +2 -0
- package/dist/commands/webhook.test.d.ts.map +1 -0
- package/dist/commands/webhook.test.js +259 -0
- package/dist/commands/webhook.test.js.map +1 -0
- package/dist/index.js +15 -4
- package/dist/index.js.map +1 -1
- package/dist/lib/confirm.d.ts +9 -0
- package/dist/lib/confirm.d.ts.map +1 -0
- package/dist/lib/confirm.js +19 -0
- package/dist/lib/confirm.js.map +1 -0
- package/dist/lib/output.d.ts +17 -0
- package/dist/lib/output.d.ts.map +1 -0
- package/dist/lib/output.js +31 -0
- package/dist/lib/output.js.map +1 -0
- package/dist/locales/en.json +194 -3
- package/dist/locales/es.json +194 -3
- package/dist/locales/pt-BR.json +194 -3
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -3,5 +3,6 @@ export declare function apiGet(path: string, options?: {
|
|
|
3
3
|
}): Promise<Response>;
|
|
4
4
|
export declare function apiPut(path: string, body: unknown): Promise<unknown>;
|
|
5
5
|
export declare function apiDelete(path: string, body?: unknown): Promise<unknown>;
|
|
6
|
+
export declare function apiPatch(path: string, body: unknown): Promise<unknown>;
|
|
6
7
|
export declare function apiPost(path: string, body?: unknown): Promise<unknown>;
|
|
7
8
|
//# sourceMappingURL=api.d.ts.map
|
package/dist/api.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../src/api.ts"],"names":[],"mappings":"AAGA,wBAAsB,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;IAAE,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,qBAgBvE;AAED,wBAAsB,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,oBAmBvD;AAED,wBAAsB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,OAAO,oBAmB3D;AAED,wBAAsB,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,OAAO,oBAqBzD"}
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../src/api.ts"],"names":[],"mappings":"AAGA,wBAAsB,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;IAAE,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,qBAgBvE;AAED,wBAAsB,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,oBAmBvD;AAED,wBAAsB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,OAAO,oBAmB3D;AAED,wBAAsB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,oBAmBzD;AAED,wBAAsB,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,OAAO,oBAqBzD"}
|
package/dist/api.js
CHANGED
|
@@ -52,6 +52,24 @@ export async function apiDelete(path, body) {
|
|
|
52
52
|
}
|
|
53
53
|
return res.json();
|
|
54
54
|
}
|
|
55
|
+
export async function apiPatch(path, body) {
|
|
56
|
+
const token = getToken();
|
|
57
|
+
const url = `${getApiUrl()}/api/v1${path}`;
|
|
58
|
+
const res = await fetch(url, {
|
|
59
|
+
method: "PATCH",
|
|
60
|
+
headers: {
|
|
61
|
+
Authorization: `Bearer ${token}`,
|
|
62
|
+
"Content-Type": "application/json",
|
|
63
|
+
},
|
|
64
|
+
body: JSON.stringify(body),
|
|
65
|
+
});
|
|
66
|
+
if (!res.ok) {
|
|
67
|
+
const text = await res.text();
|
|
68
|
+
console.error(t("api.error", { status: res.status, text }), res);
|
|
69
|
+
throw new Error(t("api.error", { status: res.status, text }));
|
|
70
|
+
}
|
|
71
|
+
return res.json();
|
|
72
|
+
}
|
|
55
73
|
export async function apiPost(path, body) {
|
|
56
74
|
const url = `${getApiUrl()}/api/v1${path}`;
|
|
57
75
|
const headers = {
|
package/dist/api.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.js","sourceRoot":"","sources":["../src/api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,CAAC,EAAE,MAAM,WAAW,CAAC;AAE9B,MAAM,CAAC,KAAK,UAAU,MAAM,CAAC,IAAY,EAAE,OAA6B;IACtE,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAC;IACzB,MAAM,GAAG,GAAG,GAAG,SAAS,EAAE,UAAU,IAAI,EAAE,CAAC;IAC3C,MAAM,OAAO,GAA2B;QACtC,aAAa,EAAE,UAAU,KAAK,EAAE;KACjC,CAAC;IACF,IAAI,OAAO,EAAE,MAAM;QAAE,OAAO,CAAC,QAAQ,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC;IAExD,MAAM,GAAG,GAAG,MAAM,KAAK,CAAC,GAAG,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC;IAC1C,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC;QACZ,MAAM,IAAI,GAAG,MAAM,GAAG,CAAC,IAAI,EA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AAC,CAAC;QACjE,MAAM,IAAI,KAAK,CAAC,CAAC,CAAC,WAAW,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;IAChE,CAAC;IACD,OAAO,GAAG,CAAC,IAAI,EAAE,CAAC;AACpB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"completions.d.ts","sourceRoot":"","sources":["../../src/commands/completions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"completions.d.ts","sourceRoot":"","sources":["../../src/commands/completions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAsiBpC,eAAO,MAAM,kBAAkB,SAW3B,CAAC"}
|
|
@@ -3,7 +3,7 @@ import { t } from "../i18n.js";
|
|
|
3
3
|
function generateBashScript() {
|
|
4
4
|
return `_envshed() {
|
|
5
5
|
local cur="\${COMP_WORDS[COMP_CWORD]}"
|
|
6
|
-
local commands="login pull push diff import run orgs projects envs token init env branch whoami workspace link unlink env-version versions rollback snapshot rename-env completions"
|
|
6
|
+
local commands="login pull push diff import run org orgs project projects envs token init env secret definition member webhook branch whoami workspace link unlink env-version versions rollback snapshot rename-env completions"
|
|
7
7
|
if [ $COMP_CWORD -eq 1 ]; then
|
|
8
8
|
COMPREPLY=( $(compgen -W "$commands" -- "$cur") )
|
|
9
9
|
else
|
|
@@ -20,18 +20,134 @@ function generateBashScript() {
|
|
|
20
20
|
COMPREPLY=( $(compgen -W "--org --project --env --format --force --locale --workspace --all" -- "$cur") ) ;;
|
|
21
21
|
run)
|
|
22
22
|
COMPREPLY=( $(compgen -W "--org --project --env --watch --interval --locale --workspace --all" -- "$cur") ) ;;
|
|
23
|
+
org)
|
|
24
|
+
if [ $COMP_CWORD -eq 2 ]; then
|
|
25
|
+
COMPREPLY=( $(compgen -W "list create" -- "$cur") )
|
|
26
|
+
else
|
|
27
|
+
case "\${COMP_WORDS[2]}" in
|
|
28
|
+
list)
|
|
29
|
+
COMPREPLY=( $(compgen -W "--output --locale --workspace --all" -- "$cur") ) ;;
|
|
30
|
+
create)
|
|
31
|
+
COMPREPLY=( $(compgen -W "--name --description --slug --output --locale" -- "$cur") ) ;;
|
|
32
|
+
esac
|
|
33
|
+
fi ;;
|
|
23
34
|
orgs)
|
|
24
35
|
COMPREPLY=( $(compgen -W "--locale --workspace --all" -- "$cur") ) ;;
|
|
36
|
+
project)
|
|
37
|
+
if [ $COMP_CWORD -eq 2 ]; then
|
|
38
|
+
COMPREPLY=( $(compgen -W "list create update delete" -- "$cur") )
|
|
39
|
+
else
|
|
40
|
+
case "\${COMP_WORDS[2]}" in
|
|
41
|
+
list)
|
|
42
|
+
COMPREPLY=( $(compgen -W "--org --output --locale --workspace --all" -- "$cur") ) ;;
|
|
43
|
+
create)
|
|
44
|
+
COMPREPLY=( $(compgen -W "--name --description --org --output --locale --workspace --all" -- "$cur") ) ;;
|
|
45
|
+
update)
|
|
46
|
+
COMPREPLY=( $(compgen -W "--name --description --org --output --locale --workspace --all" -- "$cur") ) ;;
|
|
47
|
+
delete)
|
|
48
|
+
COMPREPLY=( $(compgen -W "--org --yes --output --locale --workspace --all" -- "$cur") ) ;;
|
|
49
|
+
esac
|
|
50
|
+
fi ;;
|
|
25
51
|
projects)
|
|
26
52
|
COMPREPLY=( $(compgen -W "--org --locale --workspace --all" -- "$cur") ) ;;
|
|
27
53
|
envs)
|
|
28
54
|
COMPREPLY=( $(compgen -W "--org --project --locale --workspace --all" -- "$cur") ) ;;
|
|
29
55
|
token)
|
|
30
|
-
|
|
56
|
+
if [ $COMP_CWORD -eq 2 ]; then
|
|
57
|
+
COMPREPLY=( $(compgen -W "set clear show create-service list-service revoke-service update-service" -- "$cur") )
|
|
58
|
+
else
|
|
59
|
+
case "\${COMP_WORDS[2]}" in
|
|
60
|
+
update-service)
|
|
61
|
+
COMPREPLY=( $(compgen -W "--org --name --description --active --no-active --output --locale" -- "$cur") ) ;;
|
|
62
|
+
esac
|
|
63
|
+
fi ;;
|
|
31
64
|
init)
|
|
32
65
|
COMPREPLY=( $(compgen -W "--workspace --locale --all" -- "$cur") ) ;;
|
|
33
66
|
env)
|
|
34
|
-
|
|
67
|
+
if [ $COMP_CWORD -eq 2 ]; then
|
|
68
|
+
COMPREPLY=( $(compgen -W "list create update delete duplicate checkout" -- "$cur") )
|
|
69
|
+
else
|
|
70
|
+
case "\${COMP_WORDS[2]}" in
|
|
71
|
+
list)
|
|
72
|
+
COMPREPLY=( $(compgen -W "--org --project --output --locale --workspace --all" -- "$cur") ) ;;
|
|
73
|
+
create)
|
|
74
|
+
COMPREPLY=( $(compgen -W "--name --description --org --project --output --locale --workspace --all" -- "$cur") ) ;;
|
|
75
|
+
update)
|
|
76
|
+
COMPREPLY=( $(compgen -W "--name --description --org --project --output --locale --workspace --all" -- "$cur") ) ;;
|
|
77
|
+
delete)
|
|
78
|
+
COMPREPLY=( $(compgen -W "--org --project --yes --output --locale --workspace --all" -- "$cur") ) ;;
|
|
79
|
+
duplicate)
|
|
80
|
+
COMPREPLY=( $(compgen -W "--name --org --project --output --locale" -- "$cur") ) ;;
|
|
81
|
+
checkout)
|
|
82
|
+
COMPREPLY=( $(compgen -W "--locale --workspace --all" -- "$cur") ) ;;
|
|
83
|
+
esac
|
|
84
|
+
fi ;;
|
|
85
|
+
secret)
|
|
86
|
+
if [ $COMP_CWORD -eq 2 ]; then
|
|
87
|
+
COMPREPLY=( $(compgen -W "get set delete override" -- "$cur") )
|
|
88
|
+
else
|
|
89
|
+
case "\${COMP_WORDS[2]}" in
|
|
90
|
+
get)
|
|
91
|
+
COMPREPLY=( $(compgen -W "--org --project --env --output --locale" -- "$cur") ) ;;
|
|
92
|
+
set)
|
|
93
|
+
COMPREPLY=( $(compgen -W "--org --project --env --placeholder --yes --output --locale" -- "$cur") ) ;;
|
|
94
|
+
delete)
|
|
95
|
+
COMPREPLY=( $(compgen -W "--org --project --env --yes --output --locale" -- "$cur") ) ;;
|
|
96
|
+
override)
|
|
97
|
+
if [ $COMP_CWORD -eq 3 ]; then
|
|
98
|
+
COMPREPLY=( $(compgen -W "set remove" -- "$cur") )
|
|
99
|
+
else
|
|
100
|
+
COMPREPLY=( $(compgen -W "--org --project --env --yes --output --locale" -- "$cur") )
|
|
101
|
+
fi ;;
|
|
102
|
+
esac
|
|
103
|
+
fi ;;
|
|
104
|
+
definition)
|
|
105
|
+
if [ $COMP_CWORD -eq 2 ]; then
|
|
106
|
+
COMPREPLY=( $(compgen -W "list create update delete" -- "$cur") )
|
|
107
|
+
else
|
|
108
|
+
case "\${COMP_WORDS[2]}" in
|
|
109
|
+
list)
|
|
110
|
+
COMPREPLY=( $(compgen -W "--org --project --output --locale" -- "$cur") ) ;;
|
|
111
|
+
create)
|
|
112
|
+
COMPREPLY=( $(compgen -W "--description --required --org --project --output --locale" -- "$cur") ) ;;
|
|
113
|
+
update)
|
|
114
|
+
COMPREPLY=( $(compgen -W "--description --required --org --project --output --locale" -- "$cur") ) ;;
|
|
115
|
+
delete)
|
|
116
|
+
COMPREPLY=( $(compgen -W "--org --project --yes --output --locale" -- "$cur") ) ;;
|
|
117
|
+
esac
|
|
118
|
+
fi ;;
|
|
119
|
+
member)
|
|
120
|
+
if [ $COMP_CWORD -eq 2 ]; then
|
|
121
|
+
COMPREPLY=( $(compgen -W "list invite role remove" -- "$cur") )
|
|
122
|
+
else
|
|
123
|
+
case "\${COMP_WORDS[2]}" in
|
|
124
|
+
list)
|
|
125
|
+
COMPREPLY=( $(compgen -W "--org --output --locale" -- "$cur") ) ;;
|
|
126
|
+
invite)
|
|
127
|
+
COMPREPLY=( $(compgen -W "--role --org --output --locale" -- "$cur") ) ;;
|
|
128
|
+
role)
|
|
129
|
+
COMPREPLY=( $(compgen -W "--role --org --output --locale" -- "$cur") ) ;;
|
|
130
|
+
remove)
|
|
131
|
+
COMPREPLY=( $(compgen -W "--org --yes --output --locale" -- "$cur") ) ;;
|
|
132
|
+
esac
|
|
133
|
+
fi ;;
|
|
134
|
+
webhook)
|
|
135
|
+
if [ $COMP_CWORD -eq 2 ]; then
|
|
136
|
+
COMPREPLY=( $(compgen -W "list create update delete test" -- "$cur") )
|
|
137
|
+
else
|
|
138
|
+
case "\${COMP_WORDS[2]}" in
|
|
139
|
+
list)
|
|
140
|
+
COMPREPLY=( $(compgen -W "--org --output --locale" -- "$cur") ) ;;
|
|
141
|
+
create)
|
|
142
|
+
COMPREPLY=( $(compgen -W "--name --url --events --type --org --output --locale" -- "$cur") ) ;;
|
|
143
|
+
update)
|
|
144
|
+
COMPREPLY=( $(compgen -W "--name --url --events --active --no-active --org --output --locale" -- "$cur") ) ;;
|
|
145
|
+
delete)
|
|
146
|
+
COMPREPLY=( $(compgen -W "--org --yes --output --locale" -- "$cur") ) ;;
|
|
147
|
+
test)
|
|
148
|
+
COMPREPLY=( $(compgen -W "--org --output --locale" -- "$cur") ) ;;
|
|
149
|
+
esac
|
|
150
|
+
fi ;;
|
|
35
151
|
branch)
|
|
36
152
|
COMPREPLY=( $(compgen -W "--locale --workspace --all" -- "$cur") ) ;;
|
|
37
153
|
whoami)
|
|
@@ -73,12 +189,14 @@ _envshed() {
|
|
|
73
189
|
'diff:Compare secrets between two environments'
|
|
74
190
|
'import:Import secrets from a file (.env, JSON, YAML, CSV)'
|
|
75
191
|
'run:Run a command with secrets injected as env vars'
|
|
192
|
+
'org:Manage organizations'
|
|
76
193
|
'orgs:List organizations'
|
|
194
|
+
'project:Manage projects'
|
|
77
195
|
'projects:List projects in an organization'
|
|
78
196
|
'envs:List environments in a project'
|
|
79
197
|
'token:Manage authentication token'
|
|
80
198
|
'init:Create a .envshed.json project config'
|
|
81
|
-
'env:
|
|
199
|
+
'env:Manage environments'
|
|
82
200
|
'branch:Show the current environment context'
|
|
83
201
|
'whoami:Show the currently logged-in user'
|
|
84
202
|
'workspace:Manage monorepo workspaces'
|
|
@@ -90,6 +208,10 @@ _envshed() {
|
|
|
90
208
|
'snapshot:Manage environment snapshots'
|
|
91
209
|
'rename-env:Rename an environment'
|
|
92
210
|
'completions:Generate shell completion scripts'
|
|
211
|
+
'secret:Manage individual secrets'
|
|
212
|
+
'definition:Manage secret definitions'
|
|
213
|
+
'member:Manage org members'
|
|
214
|
+
'webhook:Manage webhooks'
|
|
93
215
|
)
|
|
94
216
|
if (( CURRENT == 2 )); then
|
|
95
217
|
_describe 'command' commands
|
|
@@ -107,20 +229,30 @@ _envshed() {
|
|
|
107
229
|
_arguments '--org[Organization slug]:slug:' '--project[Project slug]:slug:' '--env[Environment slug]:slug:' '--format[File format]:format:(env json yaml csv)' '--force[Overwrite without confirmation]' '--locale[Locale for CLI output]:locale:(en es pt-BR)' '-w[Target workspace]:path:_files' '--workspace[Target workspace]:path:_files' '-a[All workspaces]' '--all[All workspaces]' ;;
|
|
108
230
|
run)
|
|
109
231
|
_arguments '--org[Organization slug]:slug:' '--project[Project slug]:slug:' '--env[Environment slug]:slug:' '--watch[Auto-restart on secret changes]' '--interval[Poll interval in seconds]:seconds:' '--locale[Locale for CLI output]:locale:(en es pt-BR)' '-w[Target workspace]:path:_files' '--workspace[Target workspace]:path:_files' '-a[All workspaces]' '--all[All workspaces]' ;;
|
|
232
|
+
org)
|
|
233
|
+
local -a org_cmds
|
|
234
|
+
org_cmds=('list:List all organizations' 'create:Create a new organization')
|
|
235
|
+
_describe 'org command' org_cmds ;;
|
|
110
236
|
orgs)
|
|
111
237
|
_arguments '--locale[Locale for CLI output]:locale:(en es pt-BR)' '-w[Target workspace]:path:_files' '--workspace[Target workspace]:path:_files' '-a[All workspaces]' '--all[All workspaces]' ;;
|
|
238
|
+
project)
|
|
239
|
+
local -a project_cmds
|
|
240
|
+
project_cmds=('list:List all projects in an organization' 'create:Create a new project' 'update:Update a project' 'delete:Delete a project')
|
|
241
|
+
_describe 'project command' project_cmds ;;
|
|
112
242
|
projects)
|
|
113
243
|
_arguments '--org[Organization slug]:slug:' '--locale[Locale for CLI output]:locale:(en es pt-BR)' '-w[Target workspace]:path:_files' '--workspace[Target workspace]:path:_files' '-a[All workspaces]' '--all[All workspaces]' ;;
|
|
114
244
|
envs)
|
|
115
245
|
_arguments '--org[Organization slug]:slug:' '--project[Project slug]:slug:' '--locale[Locale for CLI output]:locale:(en es pt-BR)' '-w[Target workspace]:path:_files' '--workspace[Target workspace]:path:_files' '-a[All workspaces]' '--all[All workspaces]' ;;
|
|
116
246
|
token)
|
|
117
247
|
local -a token_cmds
|
|
118
|
-
token_cmds=('set:Set API token' 'clear:Clear saved token' 'show:Show current token' 'create-service:Create a service token' 'list-service:List service tokens' 'revoke-service:Revoke a service token')
|
|
248
|
+
token_cmds=('set:Set API token' 'clear:Clear saved token' 'show:Show current token' 'create-service:Create a service token' 'list-service:List service tokens' 'revoke-service:Revoke a service token' 'update-service:Update a service token name, description, or active status')
|
|
119
249
|
_describe 'token command' token_cmds ;;
|
|
120
250
|
init)
|
|
121
251
|
_arguments '--workspace[Set up a workspace at the given path]:path:_files' '--locale[Locale for CLI output]:locale:(en es pt-BR)' '-a[All workspaces]' '--all[All workspaces]' ;;
|
|
122
252
|
env)
|
|
123
|
-
|
|
253
|
+
local -a env_cmds
|
|
254
|
+
env_cmds=('list:List environments in a project' 'create:Create a new environment' 'update:Update an environment' 'delete:Delete an environment' 'duplicate:Duplicate an environment with all its secrets' 'checkout:Switch to a different environment')
|
|
255
|
+
_describe 'env command' env_cmds ;;
|
|
124
256
|
branch)
|
|
125
257
|
_arguments '--locale[Locale for CLI output]:locale:(en es pt-BR)' '-w[Target workspace]:path:_files' '--workspace[Target workspace]:path:_files' '-a[All workspaces]' '--all[All workspaces]' ;;
|
|
126
258
|
whoami)
|
|
@@ -149,6 +281,22 @@ _envshed() {
|
|
|
149
281
|
local -a shells
|
|
150
282
|
shells=('bash:Bash completion script' 'zsh:Zsh completion script' 'fish:Fish completion script')
|
|
151
283
|
_describe 'shell' shells ;;
|
|
284
|
+
secret)
|
|
285
|
+
local -a secret_cmds
|
|
286
|
+
secret_cmds=('get:Get the value of a secret by key' 'set:Set or update a secret value' 'delete:Delete a secret by key' 'override:Manage personal secret overrides')
|
|
287
|
+
_describe 'secret command' secret_cmds ;;
|
|
288
|
+
definition)
|
|
289
|
+
local -a definition_cmds
|
|
290
|
+
definition_cmds=('list:List secret definitions' 'create:Create a secret definition' 'update:Update a secret definition' 'delete:Delete a secret definition')
|
|
291
|
+
_describe 'definition command' definition_cmds ;;
|
|
292
|
+
member)
|
|
293
|
+
local -a member_cmds
|
|
294
|
+
member_cmds=('list:List all members in an organization' 'invite:Invite a new member' 'role:Change a member'"'"'s role' 'remove:Remove a member from the organization')
|
|
295
|
+
_describe 'member command' member_cmds ;;
|
|
296
|
+
webhook)
|
|
297
|
+
local -a webhook_cmds
|
|
298
|
+
webhook_cmds=('list:List all webhooks for the org' 'create:Create a webhook' 'update:Update a webhook' 'delete:Delete a webhook' 'test:Test a webhook')
|
|
299
|
+
_describe 'webhook command' webhook_cmds ;;
|
|
152
300
|
esac
|
|
153
301
|
fi
|
|
154
302
|
}
|
|
@@ -166,12 +314,14 @@ complete -c envshed -n '__fish_use_subcommand' -a push -d 'Push secrets from a .
|
|
|
166
314
|
complete -c envshed -n '__fish_use_subcommand' -a diff -d 'Compare secrets between two environments'
|
|
167
315
|
complete -c envshed -n '__fish_use_subcommand' -a import -d 'Import secrets from a file (.env, JSON, YAML, CSV)'
|
|
168
316
|
complete -c envshed -n '__fish_use_subcommand' -a run -d 'Run a command with secrets injected as env vars'
|
|
317
|
+
complete -c envshed -n '__fish_use_subcommand' -a org -d 'Manage organizations'
|
|
169
318
|
complete -c envshed -n '__fish_use_subcommand' -a orgs -d 'List organizations'
|
|
319
|
+
complete -c envshed -n '__fish_use_subcommand' -a project -d 'Manage projects'
|
|
170
320
|
complete -c envshed -n '__fish_use_subcommand' -a projects -d 'List projects in an organization'
|
|
171
321
|
complete -c envshed -n '__fish_use_subcommand' -a envs -d 'List environments in a project'
|
|
172
322
|
complete -c envshed -n '__fish_use_subcommand' -a token -d 'Manage authentication token'
|
|
173
323
|
complete -c envshed -n '__fish_use_subcommand' -a init -d 'Create a .envshed.json project config'
|
|
174
|
-
complete -c envshed -n '__fish_use_subcommand' -a env -d '
|
|
324
|
+
complete -c envshed -n '__fish_use_subcommand' -a env -d 'Manage environments'
|
|
175
325
|
complete -c envshed -n '__fish_use_subcommand' -a branch -d 'Show the current environment context'
|
|
176
326
|
complete -c envshed -n '__fish_use_subcommand' -a whoami -d 'Show the currently logged-in user'
|
|
177
327
|
complete -c envshed -n '__fish_use_subcommand' -a workspace -d 'Manage monorepo workspaces'
|
|
@@ -183,6 +333,10 @@ complete -c envshed -n '__fish_use_subcommand' -a rollback -d 'Rollback a secret
|
|
|
183
333
|
complete -c envshed -n '__fish_use_subcommand' -a snapshot -d 'Manage environment snapshots'
|
|
184
334
|
complete -c envshed -n '__fish_use_subcommand' -a rename-env -d 'Rename an environment'
|
|
185
335
|
complete -c envshed -n '__fish_use_subcommand' -a completions -d 'Generate shell completion scripts'
|
|
336
|
+
complete -c envshed -n '__fish_use_subcommand' -a secret -d 'Manage individual secrets'
|
|
337
|
+
complete -c envshed -n '__fish_use_subcommand' -a definition -d 'Manage secret definitions'
|
|
338
|
+
complete -c envshed -n '__fish_use_subcommand' -a member -d 'Manage org members'
|
|
339
|
+
complete -c envshed -n '__fish_use_subcommand' -a webhook -d 'Manage webhooks'
|
|
186
340
|
|
|
187
341
|
# Global flags
|
|
188
342
|
complete -c envshed -l locale -d 'Locale for CLI output' -r -a 'en es pt-BR'
|
|
@@ -230,6 +384,22 @@ complete -c envshed -n '__fish_seen_subcommand_from run' -l interval -d 'Poll in
|
|
|
230
384
|
# Flags per command: orgs
|
|
231
385
|
# (global flags only)
|
|
232
386
|
|
|
387
|
+
# Subcommands for org
|
|
388
|
+
complete -c envshed -n '__fish_seen_subcommand_from org' -a list -d 'List all organizations'
|
|
389
|
+
complete -c envshed -n '__fish_seen_subcommand_from org' -a create -d 'Create a new organization'
|
|
390
|
+
|
|
391
|
+
# Flags for org create
|
|
392
|
+
complete -c envshed -n '__fish_seen_subcommand_from org' -l name -d 'Organization name' -r
|
|
393
|
+
complete -c envshed -n '__fish_seen_subcommand_from org' -l description -d 'Organization description' -r
|
|
394
|
+
complete -c envshed -n '__fish_seen_subcommand_from org' -l slug -d 'Custom slug' -r
|
|
395
|
+
complete -c envshed -n '__fish_seen_subcommand_from org' -l output -d 'Output format' -r -a 'json'
|
|
396
|
+
|
|
397
|
+
# Flags per command: project (subcommands)
|
|
398
|
+
complete -c envshed -n '__fish_seen_subcommand_from project' -a list -d 'List all projects in an organization'
|
|
399
|
+
complete -c envshed -n '__fish_seen_subcommand_from project' -a create -d 'Create a new project'
|
|
400
|
+
complete -c envshed -n '__fish_seen_subcommand_from project' -a update -d 'Update a project'
|
|
401
|
+
complete -c envshed -n '__fish_seen_subcommand_from project' -a delete -d 'Delete a project'
|
|
402
|
+
|
|
233
403
|
# Flags per command: projects
|
|
234
404
|
complete -c envshed -n '__fish_seen_subcommand_from projects' -l org -d 'Organization slug' -r
|
|
235
405
|
|
|
@@ -244,13 +414,28 @@ complete -c envshed -n '__fish_seen_subcommand_from token' -a show -d 'Show curr
|
|
|
244
414
|
complete -c envshed -n '__fish_seen_subcommand_from token' -a create-service -d 'Create a service token'
|
|
245
415
|
complete -c envshed -n '__fish_seen_subcommand_from token' -a list-service -d 'List service tokens'
|
|
246
416
|
complete -c envshed -n '__fish_seen_subcommand_from token' -a revoke-service -d 'Revoke a service token'
|
|
417
|
+
complete -c envshed -n '__fish_seen_subcommand_from token' -a update-service -d 'Update a service token'
|
|
418
|
+
complete -c envshed -n '__fish_seen_subcommand_from token' -l org -d 'Organization slug' -r
|
|
419
|
+
complete -c envshed -n '__fish_seen_subcommand_from token' -l name -d 'Token name' -r
|
|
420
|
+
complete -c envshed -n '__fish_seen_subcommand_from token' -l description -d 'Token description' -r
|
|
421
|
+
complete -c envshed -n '__fish_seen_subcommand_from token' -l active -d 'Activate the token'
|
|
422
|
+
complete -c envshed -n '__fish_seen_subcommand_from token' -l no-active -d 'Deactivate the token'
|
|
423
|
+
complete -c envshed -n '__fish_seen_subcommand_from token' -l output -d 'Output format' -r -a 'json'
|
|
247
424
|
|
|
248
425
|
# Flags per command: init
|
|
249
426
|
complete -c envshed -n '__fish_seen_subcommand_from init' -l workspace -d 'Set up a workspace at the given path' -r -F
|
|
250
427
|
|
|
251
|
-
# Flags per command: env
|
|
428
|
+
# Flags per command: env (subcommands)
|
|
429
|
+
complete -c envshed -n '__fish_seen_subcommand_from env' -a list -d 'List environments in a project'
|
|
430
|
+
complete -c envshed -n '__fish_seen_subcommand_from env' -a create -d 'Create a new environment'
|
|
431
|
+
complete -c envshed -n '__fish_seen_subcommand_from env' -a update -d 'Update an environment'
|
|
432
|
+
complete -c envshed -n '__fish_seen_subcommand_from env' -a delete -d 'Delete an environment'
|
|
433
|
+
complete -c envshed -n '__fish_seen_subcommand_from env' -a duplicate -d 'Duplicate an environment with all its secrets'
|
|
434
|
+
complete -c envshed -n '__fish_seen_subcommand_from env' -a checkout -d 'Switch to a different environment'
|
|
435
|
+
complete -c envshed -n '__fish_seen_subcommand_from env' -l name -d 'New environment name' -r
|
|
252
436
|
complete -c envshed -n '__fish_seen_subcommand_from env' -l org -d 'Organization slug' -r
|
|
253
437
|
complete -c envshed -n '__fish_seen_subcommand_from env' -l project -d 'Project slug' -r
|
|
438
|
+
complete -c envshed -n '__fish_seen_subcommand_from env' -l output -d 'Output format' -r -a 'json'
|
|
254
439
|
|
|
255
440
|
# Flags per command: workspace (subcommands)
|
|
256
441
|
complete -c envshed -n '__fish_seen_subcommand_from workspace' -a add -d 'Add a workspace'
|
|
@@ -300,7 +485,51 @@ complete -c envshed -n '__fish_seen_subcommand_from rename-env' -l slug -d 'New
|
|
|
300
485
|
# Flags per command: completions
|
|
301
486
|
complete -c envshed -n '__fish_seen_subcommand_from completions' -a bash -d 'Bash completion script'
|
|
302
487
|
complete -c envshed -n '__fish_seen_subcommand_from completions' -a zsh -d 'Zsh completion script'
|
|
303
|
-
complete -c envshed -n '__fish_seen_subcommand_from completions' -a fish -d 'Fish completion script'
|
|
488
|
+
complete -c envshed -n '__fish_seen_subcommand_from completions' -a fish -d 'Fish completion script'
|
|
489
|
+
|
|
490
|
+
# Flags per command: secret (subcommands)
|
|
491
|
+
complete -c envshed -n '__fish_seen_subcommand_from secret' -a get -d 'Get the value of a secret by key'
|
|
492
|
+
complete -c envshed -n '__fish_seen_subcommand_from secret' -a set -d 'Set or update a secret value'
|
|
493
|
+
complete -c envshed -n '__fish_seen_subcommand_from secret' -a delete -d 'Delete a secret by key'
|
|
494
|
+
complete -c envshed -n '__fish_seen_subcommand_from secret' -a override -d 'Manage personal secret overrides'
|
|
495
|
+
|
|
496
|
+
# Flags per command: definition (subcommands)
|
|
497
|
+
complete -c envshed -n '__fish_seen_subcommand_from definition' -a list -d 'List secret definitions'
|
|
498
|
+
complete -c envshed -n '__fish_seen_subcommand_from definition' -a create -d 'Create a secret definition'
|
|
499
|
+
complete -c envshed -n '__fish_seen_subcommand_from definition' -a update -d 'Update a secret definition'
|
|
500
|
+
complete -c envshed -n '__fish_seen_subcommand_from definition' -a delete -d 'Delete a secret definition'
|
|
501
|
+
complete -c envshed -n '__fish_seen_subcommand_from definition' -l org -d 'Organization slug' -r
|
|
502
|
+
complete -c envshed -n '__fish_seen_subcommand_from definition' -l project -d 'Project slug' -r
|
|
503
|
+
complete -c envshed -n '__fish_seen_subcommand_from definition' -l description -d 'Definition description' -r
|
|
504
|
+
complete -c envshed -n '__fish_seen_subcommand_from definition' -l required -d 'Mark as required'
|
|
505
|
+
complete -c envshed -n '__fish_seen_subcommand_from definition' -l output -d 'Output format' -r -a 'json'
|
|
506
|
+
complete -c envshed -n '__fish_seen_subcommand_from definition' -s y -l yes -d 'Skip confirmation'
|
|
507
|
+
|
|
508
|
+
# Flags per command: member (subcommands)
|
|
509
|
+
complete -c envshed -n '__fish_seen_subcommand_from member' -a list -d 'List all members in an organization'
|
|
510
|
+
complete -c envshed -n '__fish_seen_subcommand_from member' -a invite -d 'Invite a new member'
|
|
511
|
+
complete -c envshed -n '__fish_seen_subcommand_from member' -a role -d "Change a member's role"
|
|
512
|
+
complete -c envshed -n '__fish_seen_subcommand_from member' -a remove -d 'Remove a member from the organization'
|
|
513
|
+
complete -c envshed -n '__fish_seen_subcommand_from member' -l org -d 'Organization slug' -r
|
|
514
|
+
complete -c envshed -n '__fish_seen_subcommand_from member' -l role -d 'Member role' -r -a 'owner admin member viewer'
|
|
515
|
+
complete -c envshed -n '__fish_seen_subcommand_from member' -l output -d 'Output format' -r -a 'json'
|
|
516
|
+
complete -c envshed -n '__fish_seen_subcommand_from member' -s y -l yes -d 'Skip confirmation'
|
|
517
|
+
|
|
518
|
+
# Flags per command: webhook (subcommands)
|
|
519
|
+
complete -c envshed -n '__fish_seen_subcommand_from webhook' -a list -d 'List all webhooks for the org'
|
|
520
|
+
complete -c envshed -n '__fish_seen_subcommand_from webhook' -a create -d 'Create a webhook'
|
|
521
|
+
complete -c envshed -n '__fish_seen_subcommand_from webhook' -a update -d 'Update a webhook'
|
|
522
|
+
complete -c envshed -n '__fish_seen_subcommand_from webhook' -a delete -d 'Delete a webhook'
|
|
523
|
+
complete -c envshed -n '__fish_seen_subcommand_from webhook' -a test -d 'Test a webhook'
|
|
524
|
+
complete -c envshed -n '__fish_seen_subcommand_from webhook' -l org -d 'Organization slug' -r
|
|
525
|
+
complete -c envshed -n '__fish_seen_subcommand_from webhook' -l name -d 'Webhook name' -r
|
|
526
|
+
complete -c envshed -n '__fish_seen_subcommand_from webhook' -l url -d 'Webhook URL' -r
|
|
527
|
+
complete -c envshed -n '__fish_seen_subcommand_from webhook' -l events -d 'Comma-separated events (e.g. push,delete)' -r
|
|
528
|
+
complete -c envshed -n '__fish_seen_subcommand_from webhook' -l type -d 'Webhook type (default: http)' -r
|
|
529
|
+
complete -c envshed -n '__fish_seen_subcommand_from webhook' -l active -d 'Enable the webhook'
|
|
530
|
+
complete -c envshed -n '__fish_seen_subcommand_from webhook' -l no-active -d 'Disable the webhook'
|
|
531
|
+
complete -c envshed -n '__fish_seen_subcommand_from webhook' -l output -d 'Output format' -r -a 'json'
|
|
532
|
+
complete -c envshed -n '__fish_seen_subcommand_from webhook' -s y -l yes -d 'Skip confirmation'`;
|
|
304
533
|
}
|
|
305
534
|
function generateCompletionScript(shell) {
|
|
306
535
|
switch (shell.toLowerCase()) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"completions.js","sourceRoot":"","sources":["../../src/commands/completions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,CAAC,EAAE,MAAM,YAAY,CAAC;AAE/B,SAAS,kBAAkB;IACzB,OAAO
|
|
1
|
+
{"version":3,"file":"completions.js","sourceRoot":"","sources":["../../src/commands/completions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,CAAC,EAAE,MAAM,YAAY,CAAC;AAE/B,SAAS,kBAAkB;IACzB,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BA8KoB,CAAC;AAC9B,CAAC;AAED,SAAS,iBAAiB;IACxB,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA2HK,CAAC;AACf,CAAC;AAED,SAAS,kBAAkB;IACzB,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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../../src/commands/definition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AASpC,eAAO,MAAM,iBAAiB,SAuK3B,CAAC"}
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import { Command } from "commander";
|
|
2
|
+
import chalk from "chalk";
|
|
3
|
+
import ora from "ora";
|
|
4
|
+
import { apiGet, apiPost, apiPut, apiDelete } from "../api.js";
|
|
5
|
+
import { resolveOpts, logContext } from "../config.js";
|
|
6
|
+
import { t } from "../i18n.js";
|
|
7
|
+
import { formatOutput, formatResult } from "../lib/output.js";
|
|
8
|
+
import { confirmAction } from "../lib/confirm.js";
|
|
9
|
+
export const definitionCommand = new Command("definition")
|
|
10
|
+
.description(t("definition.description"))
|
|
11
|
+
.addCommand(new Command("list")
|
|
12
|
+
.description(t("definition.listDescription"))
|
|
13
|
+
.option("-o, --org <slug>", t("common.orgOption"))
|
|
14
|
+
.option("-p, --project <slug>", t("common.projectOption"))
|
|
15
|
+
.option("--output <format>", t("output.jsonOption"))
|
|
16
|
+
.action(async (opts) => {
|
|
17
|
+
const { org, project } = resolveOpts(opts);
|
|
18
|
+
if (!org || !project) {
|
|
19
|
+
console.error(chalk.red(t("common.missingOrgProject")));
|
|
20
|
+
process.exit(1);
|
|
21
|
+
}
|
|
22
|
+
logContext({ org, project });
|
|
23
|
+
const spinner = ora(t("definition.fetching")).start();
|
|
24
|
+
try {
|
|
25
|
+
const res = await apiGet(`/secret-definitions/${org}/${project}`);
|
|
26
|
+
const data = (await res.json());
|
|
27
|
+
spinner.stop();
|
|
28
|
+
if (!data.definitions?.length) {
|
|
29
|
+
console.log(chalk.dim(t("definition.none")));
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
formatOutput([t("definition.headKey"), t("definition.headDescription"), t("definition.headRequired")], data.definitions.map((d) => [d.key, d.description || "", d.isRequired ? "yes" : "no"]), data.definitions, opts);
|
|
33
|
+
}
|
|
34
|
+
catch (err) {
|
|
35
|
+
spinner.fail(t("definition.failed", { message: err.message }));
|
|
36
|
+
}
|
|
37
|
+
}))
|
|
38
|
+
.addCommand(new Command("create")
|
|
39
|
+
.description(t("definition.createDescription"))
|
|
40
|
+
.argument("<key>", t("definition.keyArg"))
|
|
41
|
+
.option("-d, --description <text>", t("definition.descriptionOption"))
|
|
42
|
+
.option("--required", t("definition.requiredOption"))
|
|
43
|
+
.option("-o, --org <slug>", t("common.orgOption"))
|
|
44
|
+
.option("-p, --project <slug>", t("common.projectOption"))
|
|
45
|
+
.option("--output <format>", t("output.jsonOption"))
|
|
46
|
+
.action(async (key, opts) => {
|
|
47
|
+
const { org, project } = resolveOpts(opts);
|
|
48
|
+
if (!org || !project) {
|
|
49
|
+
console.error(chalk.red(t("common.missingOrgProject")));
|
|
50
|
+
process.exit(1);
|
|
51
|
+
}
|
|
52
|
+
logContext({ org, project });
|
|
53
|
+
const spinner = ora(t("definition.creating_cmd")).start();
|
|
54
|
+
try {
|
|
55
|
+
const body = { key };
|
|
56
|
+
if (opts.description)
|
|
57
|
+
body.description = opts.description;
|
|
58
|
+
if (opts.required !== undefined)
|
|
59
|
+
body.isRequired = opts.required;
|
|
60
|
+
const result = await apiPost(`/secret-definitions/${org}/${project}`, body);
|
|
61
|
+
spinner.stop();
|
|
62
|
+
formatResult(chalk.green(t("definition.created", { key: result.definition.key })), result, opts);
|
|
63
|
+
}
|
|
64
|
+
catch (err) {
|
|
65
|
+
spinner.fail(t("definition.failed", { message: err.message }));
|
|
66
|
+
}
|
|
67
|
+
}))
|
|
68
|
+
.addCommand(new Command("update")
|
|
69
|
+
.description(t("definition.updateDescription"))
|
|
70
|
+
.argument("<key>", t("definition.keyArg"))
|
|
71
|
+
.option("-d, --description <text>", t("definition.descriptionOption"))
|
|
72
|
+
.option("--required", t("definition.requiredOption"))
|
|
73
|
+
.option("--no-required", t("definition.requiredOption"))
|
|
74
|
+
.option("-o, --org <slug>", t("common.orgOption"))
|
|
75
|
+
.option("-p, --project <slug>", t("common.projectOption"))
|
|
76
|
+
.option("--output <format>", t("output.jsonOption"))
|
|
77
|
+
.action(async (key, opts) => {
|
|
78
|
+
const { org, project } = resolveOpts(opts);
|
|
79
|
+
if (!org || !project) {
|
|
80
|
+
console.error(chalk.red(t("common.missingOrgProject")));
|
|
81
|
+
process.exit(1);
|
|
82
|
+
}
|
|
83
|
+
if (opts.description === undefined && opts.required === undefined) {
|
|
84
|
+
console.error(chalk.red(t("definition.noChanges")));
|
|
85
|
+
process.exit(1);
|
|
86
|
+
}
|
|
87
|
+
logContext({ org, project });
|
|
88
|
+
const spinner = ora(t("definition.updating_cmd")).start();
|
|
89
|
+
try {
|
|
90
|
+
const body = {};
|
|
91
|
+
if (opts.description !== undefined)
|
|
92
|
+
body.description = opts.description;
|
|
93
|
+
if (opts.required !== undefined)
|
|
94
|
+
body.isRequired = opts.required;
|
|
95
|
+
const result = await apiPut(`/secret-definitions/${org}/${project}/${key}`, body);
|
|
96
|
+
spinner.stop();
|
|
97
|
+
formatResult(chalk.green(t("definition.updated", { key })), result, opts);
|
|
98
|
+
}
|
|
99
|
+
catch (err) {
|
|
100
|
+
spinner.fail(t("definition.failed", { message: err.message }));
|
|
101
|
+
}
|
|
102
|
+
}))
|
|
103
|
+
.addCommand(new Command("delete")
|
|
104
|
+
.description(t("definition.deleteDescription"))
|
|
105
|
+
.argument("<key>", t("definition.keyArg"))
|
|
106
|
+
.option("-o, --org <slug>", t("common.orgOption"))
|
|
107
|
+
.option("-p, --project <slug>", t("common.projectOption"))
|
|
108
|
+
.option("-y, --yes", t("output.yesOption"))
|
|
109
|
+
.option("--output <format>", t("output.jsonOption"))
|
|
110
|
+
.action(async (key, opts) => {
|
|
111
|
+
const { org, project } = resolveOpts(opts);
|
|
112
|
+
if (!org || !project) {
|
|
113
|
+
console.error(chalk.red(t("common.missingOrgProject")));
|
|
114
|
+
process.exit(1);
|
|
115
|
+
}
|
|
116
|
+
logContext({ org, project });
|
|
117
|
+
// Confirm existence first by calling GET
|
|
118
|
+
await apiGet(`/secret-definitions/${org}/${project}/${key}`);
|
|
119
|
+
console.warn(chalk.yellow(t("definition.deleteWarning", { key })));
|
|
120
|
+
const confirmed = await confirmAction(t("definition.deleteConfirm", { key }), opts);
|
|
121
|
+
if (!confirmed) {
|
|
122
|
+
console.log(t("definition.deleteCancelled"));
|
|
123
|
+
return;
|
|
124
|
+
}
|
|
125
|
+
const spinner = ora(t("definition.deleting_cmd")).start();
|
|
126
|
+
try {
|
|
127
|
+
const result = await apiDelete(`/secret-definitions/${org}/${project}/${key}`);
|
|
128
|
+
spinner.stop();
|
|
129
|
+
formatResult(chalk.green(t("definition.deleted", { key })), result, opts);
|
|
130
|
+
}
|
|
131
|
+
catch (err) {
|
|
132
|
+
spinner.fail(t("definition.failed", { message: err.message }));
|
|
133
|
+
}
|
|
134
|
+
}));
|
|
135
|
+
//# sourceMappingURL=definition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"definition.js","sourceRoot":"","sources":["../../src/commands/definition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,GAAG,MAAM,KAAK,CAAC;AACtB,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,UAAU,EAAoB,MAAM,cAAc,CAAC;AACzE,OAAO,EAAE,CAAC,EAAE,MAAM,YAAY,CAAC;AAC/B,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD,MAAM,CAAC,MAAM,iBAAiB,GAAG,IAAI,OAAO,CAAC,YAAY,CAAC;KACvD,WAAW,CAAC,CAAC,CAAC,wBAAwB,CAAC,CAAC;KACxC,UAAU,CACT,IAAI,OAAO,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