envshed 0.11.0 → 0.12.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.
Files changed (76) hide show
  1. package/dist/api.d.ts +1 -0
  2. package/dist/api.d.ts.map +1 -1
  3. package/dist/api.js +18 -0
  4. package/dist/api.js.map +1 -1
  5. package/dist/commands/completions.d.ts.map +1 -1
  6. package/dist/commands/completions.js +211 -9
  7. package/dist/commands/completions.js.map +1 -1
  8. package/dist/commands/definition.d.ts +3 -0
  9. package/dist/commands/definition.d.ts.map +1 -0
  10. package/dist/commands/definition.js +135 -0
  11. package/dist/commands/definition.js.map +1 -0
  12. package/dist/commands/definition.test.d.ts +2 -0
  13. package/dist/commands/definition.test.d.ts.map +1 -0
  14. package/dist/commands/definition.test.js +233 -0
  15. package/dist/commands/definition.test.js.map +1 -0
  16. package/dist/commands/env.d.ts.map +1 -1
  17. package/dist/commands/env.js +183 -7
  18. package/dist/commands/env.js.map +1 -1
  19. package/dist/commands/env.test.js +218 -2
  20. package/dist/commands/env.test.js.map +1 -1
  21. package/dist/commands/envs.js.map +1 -1
  22. package/dist/commands/member.d.ts +3 -0
  23. package/dist/commands/member.d.ts.map +1 -0
  24. package/dist/commands/member.js +162 -0
  25. package/dist/commands/member.js.map +1 -0
  26. package/dist/commands/member.test.d.ts +2 -0
  27. package/dist/commands/member.test.d.ts.map +1 -0
  28. package/dist/commands/member.test.js +230 -0
  29. package/dist/commands/member.test.js.map +1 -0
  30. package/dist/commands/project.d.ts +3 -0
  31. package/dist/commands/project.d.ts.map +1 -0
  32. package/dist/commands/project.js +129 -0
  33. package/dist/commands/project.js.map +1 -0
  34. package/dist/commands/project.test.d.ts +2 -0
  35. package/dist/commands/project.test.d.ts.map +1 -0
  36. package/dist/commands/project.test.js +243 -0
  37. package/dist/commands/project.test.js.map +1 -0
  38. package/dist/commands/projects.js.map +1 -1
  39. package/dist/commands/rename-env.d.ts.map +1 -1
  40. package/dist/commands/rename-env.js +10 -1
  41. package/dist/commands/rename-env.js.map +1 -1
  42. package/dist/commands/secret.d.ts +3 -0
  43. package/dist/commands/secret.d.ts.map +1 -0
  44. package/dist/commands/secret.js +260 -0
  45. package/dist/commands/secret.js.map +1 -0
  46. package/dist/commands/secret.test.d.ts +2 -0
  47. package/dist/commands/secret.test.d.ts.map +1 -0
  48. package/dist/commands/secret.test.js +201 -0
  49. package/dist/commands/secret.test.js.map +1 -0
  50. package/dist/commands/token.d.ts.map +1 -1
  51. package/dist/commands/token.js +40 -1
  52. package/dist/commands/token.js.map +1 -1
  53. package/dist/commands/token.test.js +72 -2
  54. package/dist/commands/token.test.js.map +1 -1
  55. package/dist/commands/webhook.d.ts +3 -0
  56. package/dist/commands/webhook.d.ts.map +1 -0
  57. package/dist/commands/webhook.js +202 -0
  58. package/dist/commands/webhook.js.map +1 -0
  59. package/dist/commands/webhook.test.d.ts +2 -0
  60. package/dist/commands/webhook.test.d.ts.map +1 -0
  61. package/dist/commands/webhook.test.js +259 -0
  62. package/dist/commands/webhook.test.js.map +1 -0
  63. package/dist/index.js +12 -2
  64. package/dist/index.js.map +1 -1
  65. package/dist/lib/confirm.d.ts +9 -0
  66. package/dist/lib/confirm.d.ts.map +1 -0
  67. package/dist/lib/confirm.js +19 -0
  68. package/dist/lib/confirm.js.map +1 -0
  69. package/dist/lib/output.d.ts +17 -0
  70. package/dist/lib/output.d.ts.map +1 -0
  71. package/dist/lib/output.js +31 -0
  72. package/dist/lib/output.js.map +1 -0
  73. package/dist/locales/en.json +178 -3
  74. package/dist/locales/es.json +178 -3
  75. package/dist/locales/pt-BR.json +178 -3
  76. 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,EAAE,CAAC;QAE9B,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,WAAW,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC;QACjE,MAAM,IAAI,KAAK,CAAC,CAAC,CAAC,WAAW,EAAE,EAAE,MAAM,EAAE,GAAG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"completions.d.ts","sourceRoot":"","sources":["../../src/commands/completions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAiUpC,eAAO,MAAM,kBAAkB,SAW3B,CAAC"}
1
+ {"version":3,"file":"completions.d.ts","sourceRoot":"","sources":["../../src/commands/completions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA2gBpC,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 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
@@ -22,16 +22,121 @@ function generateBashScript() {
22
22
  COMPREPLY=( $(compgen -W "--org --project --env --watch --interval --locale --workspace --all" -- "$cur") ) ;;
23
23
  orgs)
24
24
  COMPREPLY=( $(compgen -W "--locale --workspace --all" -- "$cur") ) ;;
25
+ project)
26
+ if [ $COMP_CWORD -eq 2 ]; then
27
+ COMPREPLY=( $(compgen -W "list create update delete" -- "$cur") )
28
+ else
29
+ case "\${COMP_WORDS[2]}" in
30
+ list)
31
+ COMPREPLY=( $(compgen -W "--org --output --locale --workspace --all" -- "$cur") ) ;;
32
+ create)
33
+ COMPREPLY=( $(compgen -W "--name --description --org --output --locale --workspace --all" -- "$cur") ) ;;
34
+ update)
35
+ COMPREPLY=( $(compgen -W "--name --description --org --output --locale --workspace --all" -- "$cur") ) ;;
36
+ delete)
37
+ COMPREPLY=( $(compgen -W "--org --yes --output --locale --workspace --all" -- "$cur") ) ;;
38
+ esac
39
+ fi ;;
25
40
  projects)
26
41
  COMPREPLY=( $(compgen -W "--org --locale --workspace --all" -- "$cur") ) ;;
27
42
  envs)
28
43
  COMPREPLY=( $(compgen -W "--org --project --locale --workspace --all" -- "$cur") ) ;;
29
44
  token)
30
- COMPREPLY=( $(compgen -W "set clear show create-service list-service revoke-service" -- "$cur") ) ;;
45
+ if [ $COMP_CWORD -eq 2 ]; then
46
+ COMPREPLY=( $(compgen -W "set clear show create-service list-service revoke-service update-service" -- "$cur") )
47
+ else
48
+ case "\${COMP_WORDS[2]}" in
49
+ update-service)
50
+ COMPREPLY=( $(compgen -W "--org --name --description --active --no-active --output --locale" -- "$cur") ) ;;
51
+ esac
52
+ fi ;;
31
53
  init)
32
54
  COMPREPLY=( $(compgen -W "--workspace --locale --all" -- "$cur") ) ;;
33
55
  env)
34
- COMPREPLY=( $(compgen -W "--org --project --locale --workspace --all" -- "$cur") ) ;;
56
+ if [ $COMP_CWORD -eq 2 ]; then
57
+ COMPREPLY=( $(compgen -W "list create update delete duplicate checkout" -- "$cur") )
58
+ else
59
+ case "\${COMP_WORDS[2]}" in
60
+ list)
61
+ COMPREPLY=( $(compgen -W "--org --project --output --locale --workspace --all" -- "$cur") ) ;;
62
+ create)
63
+ COMPREPLY=( $(compgen -W "--name --description --org --project --output --locale --workspace --all" -- "$cur") ) ;;
64
+ update)
65
+ COMPREPLY=( $(compgen -W "--name --description --org --project --output --locale --workspace --all" -- "$cur") ) ;;
66
+ delete)
67
+ COMPREPLY=( $(compgen -W "--org --project --yes --output --locale --workspace --all" -- "$cur") ) ;;
68
+ duplicate)
69
+ COMPREPLY=( $(compgen -W "--name --org --project --output --locale" -- "$cur") ) ;;
70
+ checkout)
71
+ COMPREPLY=( $(compgen -W "--locale --workspace --all" -- "$cur") ) ;;
72
+ esac
73
+ fi ;;
74
+ secret)
75
+ if [ $COMP_CWORD -eq 2 ]; then
76
+ COMPREPLY=( $(compgen -W "get set delete override" -- "$cur") )
77
+ else
78
+ case "\${COMP_WORDS[2]}" in
79
+ get)
80
+ COMPREPLY=( $(compgen -W "--org --project --env --output --locale" -- "$cur") ) ;;
81
+ set)
82
+ COMPREPLY=( $(compgen -W "--org --project --env --placeholder --yes --output --locale" -- "$cur") ) ;;
83
+ delete)
84
+ COMPREPLY=( $(compgen -W "--org --project --env --yes --output --locale" -- "$cur") ) ;;
85
+ override)
86
+ if [ $COMP_CWORD -eq 3 ]; then
87
+ COMPREPLY=( $(compgen -W "set remove" -- "$cur") )
88
+ else
89
+ COMPREPLY=( $(compgen -W "--org --project --env --yes --output --locale" -- "$cur") )
90
+ fi ;;
91
+ esac
92
+ fi ;;
93
+ definition)
94
+ if [ $COMP_CWORD -eq 2 ]; then
95
+ COMPREPLY=( $(compgen -W "list create update delete" -- "$cur") )
96
+ else
97
+ case "\${COMP_WORDS[2]}" in
98
+ list)
99
+ COMPREPLY=( $(compgen -W "--org --project --output --locale" -- "$cur") ) ;;
100
+ create)
101
+ COMPREPLY=( $(compgen -W "--description --required --org --project --output --locale" -- "$cur") ) ;;
102
+ update)
103
+ COMPREPLY=( $(compgen -W "--description --required --org --project --output --locale" -- "$cur") ) ;;
104
+ delete)
105
+ COMPREPLY=( $(compgen -W "--org --project --yes --output --locale" -- "$cur") ) ;;
106
+ esac
107
+ fi ;;
108
+ member)
109
+ if [ $COMP_CWORD -eq 2 ]; then
110
+ COMPREPLY=( $(compgen -W "list invite role remove" -- "$cur") )
111
+ else
112
+ case "\${COMP_WORDS[2]}" in
113
+ list)
114
+ COMPREPLY=( $(compgen -W "--org --output --locale" -- "$cur") ) ;;
115
+ invite)
116
+ COMPREPLY=( $(compgen -W "--role --org --output --locale" -- "$cur") ) ;;
117
+ role)
118
+ COMPREPLY=( $(compgen -W "--role --org --output --locale" -- "$cur") ) ;;
119
+ remove)
120
+ COMPREPLY=( $(compgen -W "--org --yes --output --locale" -- "$cur") ) ;;
121
+ esac
122
+ fi ;;
123
+ webhook)
124
+ if [ $COMP_CWORD -eq 2 ]; then
125
+ COMPREPLY=( $(compgen -W "list create update delete test" -- "$cur") )
126
+ else
127
+ case "\${COMP_WORDS[2]}" in
128
+ list)
129
+ COMPREPLY=( $(compgen -W "--org --output --locale" -- "$cur") ) ;;
130
+ create)
131
+ COMPREPLY=( $(compgen -W "--name --url --events --type --org --output --locale" -- "$cur") ) ;;
132
+ update)
133
+ COMPREPLY=( $(compgen -W "--name --url --events --active --no-active --org --output --locale" -- "$cur") ) ;;
134
+ delete)
135
+ COMPREPLY=( $(compgen -W "--org --yes --output --locale" -- "$cur") ) ;;
136
+ test)
137
+ COMPREPLY=( $(compgen -W "--org --output --locale" -- "$cur") ) ;;
138
+ esac
139
+ fi ;;
35
140
  branch)
36
141
  COMPREPLY=( $(compgen -W "--locale --workspace --all" -- "$cur") ) ;;
37
142
  whoami)
@@ -74,11 +179,12 @@ _envshed() {
74
179
  'import:Import secrets from a file (.env, JSON, YAML, CSV)'
75
180
  'run:Run a command with secrets injected as env vars'
76
181
  'orgs:List organizations'
182
+ 'project:Manage projects'
77
183
  'projects:List projects in an organization'
78
184
  'envs:List environments in a project'
79
185
  'token:Manage authentication token'
80
186
  'init:Create a .envshed.json project config'
81
- 'env:Switch the active environment'
187
+ 'env:Manage environments'
82
188
  'branch:Show the current environment context'
83
189
  'whoami:Show the currently logged-in user'
84
190
  'workspace:Manage monorepo workspaces'
@@ -90,6 +196,10 @@ _envshed() {
90
196
  'snapshot:Manage environment snapshots'
91
197
  'rename-env:Rename an environment'
92
198
  'completions:Generate shell completion scripts'
199
+ 'secret:Manage individual secrets'
200
+ 'definition:Manage secret definitions'
201
+ 'member:Manage org members'
202
+ 'webhook:Manage webhooks'
93
203
  )
94
204
  if (( CURRENT == 2 )); then
95
205
  _describe 'command' commands
@@ -109,18 +219,24 @@ _envshed() {
109
219
  _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]' ;;
110
220
  orgs)
111
221
  _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]' ;;
222
+ project)
223
+ local -a project_cmds
224
+ project_cmds=('list:List all projects in an organization' 'create:Create a new project' 'update:Update a project' 'delete:Delete a project')
225
+ _describe 'project command' project_cmds ;;
112
226
  projects)
113
227
  _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
228
  envs)
115
229
  _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
230
  token)
117
231
  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')
232
+ 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
233
  _describe 'token command' token_cmds ;;
120
234
  init)
121
235
  _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
236
  env)
123
- _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]' ;;
237
+ local -a env_cmds
238
+ 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')
239
+ _describe 'env command' env_cmds ;;
124
240
  branch)
125
241
  _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
242
  whoami)
@@ -149,6 +265,22 @@ _envshed() {
149
265
  local -a shells
150
266
  shells=('bash:Bash completion script' 'zsh:Zsh completion script' 'fish:Fish completion script')
151
267
  _describe 'shell' shells ;;
268
+ secret)
269
+ local -a secret_cmds
270
+ 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')
271
+ _describe 'secret command' secret_cmds ;;
272
+ definition)
273
+ local -a definition_cmds
274
+ definition_cmds=('list:List secret definitions' 'create:Create a secret definition' 'update:Update a secret definition' 'delete:Delete a secret definition')
275
+ _describe 'definition command' definition_cmds ;;
276
+ member)
277
+ local -a member_cmds
278
+ 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')
279
+ _describe 'member command' member_cmds ;;
280
+ webhook)
281
+ local -a webhook_cmds
282
+ 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')
283
+ _describe 'webhook command' webhook_cmds ;;
152
284
  esac
153
285
  fi
154
286
  }
@@ -167,11 +299,12 @@ complete -c envshed -n '__fish_use_subcommand' -a diff -d 'Compare secrets betwe
167
299
  complete -c envshed -n '__fish_use_subcommand' -a import -d 'Import secrets from a file (.env, JSON, YAML, CSV)'
168
300
  complete -c envshed -n '__fish_use_subcommand' -a run -d 'Run a command with secrets injected as env vars'
169
301
  complete -c envshed -n '__fish_use_subcommand' -a orgs -d 'List organizations'
302
+ complete -c envshed -n '__fish_use_subcommand' -a project -d 'Manage projects'
170
303
  complete -c envshed -n '__fish_use_subcommand' -a projects -d 'List projects in an organization'
171
304
  complete -c envshed -n '__fish_use_subcommand' -a envs -d 'List environments in a project'
172
305
  complete -c envshed -n '__fish_use_subcommand' -a token -d 'Manage authentication token'
173
306
  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 'Switch the active environment'
307
+ complete -c envshed -n '__fish_use_subcommand' -a env -d 'Manage environments'
175
308
  complete -c envshed -n '__fish_use_subcommand' -a branch -d 'Show the current environment context'
176
309
  complete -c envshed -n '__fish_use_subcommand' -a whoami -d 'Show the currently logged-in user'
177
310
  complete -c envshed -n '__fish_use_subcommand' -a workspace -d 'Manage monorepo workspaces'
@@ -183,6 +316,10 @@ complete -c envshed -n '__fish_use_subcommand' -a rollback -d 'Rollback a secret
183
316
  complete -c envshed -n '__fish_use_subcommand' -a snapshot -d 'Manage environment snapshots'
184
317
  complete -c envshed -n '__fish_use_subcommand' -a rename-env -d 'Rename an environment'
185
318
  complete -c envshed -n '__fish_use_subcommand' -a completions -d 'Generate shell completion scripts'
319
+ complete -c envshed -n '__fish_use_subcommand' -a secret -d 'Manage individual secrets'
320
+ complete -c envshed -n '__fish_use_subcommand' -a definition -d 'Manage secret definitions'
321
+ complete -c envshed -n '__fish_use_subcommand' -a member -d 'Manage org members'
322
+ complete -c envshed -n '__fish_use_subcommand' -a webhook -d 'Manage webhooks'
186
323
 
187
324
  # Global flags
188
325
  complete -c envshed -l locale -d 'Locale for CLI output' -r -a 'en es pt-BR'
@@ -230,6 +367,12 @@ complete -c envshed -n '__fish_seen_subcommand_from run' -l interval -d 'Poll in
230
367
  # Flags per command: orgs
231
368
  # (global flags only)
232
369
 
370
+ # Flags per command: project (subcommands)
371
+ complete -c envshed -n '__fish_seen_subcommand_from project' -a list -d 'List all projects in an organization'
372
+ complete -c envshed -n '__fish_seen_subcommand_from project' -a create -d 'Create a new project'
373
+ complete -c envshed -n '__fish_seen_subcommand_from project' -a update -d 'Update a project'
374
+ complete -c envshed -n '__fish_seen_subcommand_from project' -a delete -d 'Delete a project'
375
+
233
376
  # Flags per command: projects
234
377
  complete -c envshed -n '__fish_seen_subcommand_from projects' -l org -d 'Organization slug' -r
235
378
 
@@ -244,13 +387,28 @@ complete -c envshed -n '__fish_seen_subcommand_from token' -a show -d 'Show curr
244
387
  complete -c envshed -n '__fish_seen_subcommand_from token' -a create-service -d 'Create a service token'
245
388
  complete -c envshed -n '__fish_seen_subcommand_from token' -a list-service -d 'List service tokens'
246
389
  complete -c envshed -n '__fish_seen_subcommand_from token' -a revoke-service -d 'Revoke a service token'
390
+ complete -c envshed -n '__fish_seen_subcommand_from token' -a update-service -d 'Update a service token'
391
+ complete -c envshed -n '__fish_seen_subcommand_from token' -l org -d 'Organization slug' -r
392
+ complete -c envshed -n '__fish_seen_subcommand_from token' -l name -d 'Token name' -r
393
+ complete -c envshed -n '__fish_seen_subcommand_from token' -l description -d 'Token description' -r
394
+ complete -c envshed -n '__fish_seen_subcommand_from token' -l active -d 'Activate the token'
395
+ complete -c envshed -n '__fish_seen_subcommand_from token' -l no-active -d 'Deactivate the token'
396
+ complete -c envshed -n '__fish_seen_subcommand_from token' -l output -d 'Output format' -r -a 'json'
247
397
 
248
398
  # Flags per command: init
249
399
  complete -c envshed -n '__fish_seen_subcommand_from init' -l workspace -d 'Set up a workspace at the given path' -r -F
250
400
 
251
- # Flags per command: env
401
+ # Flags per command: env (subcommands)
402
+ complete -c envshed -n '__fish_seen_subcommand_from env' -a list -d 'List environments in a project'
403
+ complete -c envshed -n '__fish_seen_subcommand_from env' -a create -d 'Create a new environment'
404
+ complete -c envshed -n '__fish_seen_subcommand_from env' -a update -d 'Update an environment'
405
+ complete -c envshed -n '__fish_seen_subcommand_from env' -a delete -d 'Delete an environment'
406
+ complete -c envshed -n '__fish_seen_subcommand_from env' -a duplicate -d 'Duplicate an environment with all its secrets'
407
+ complete -c envshed -n '__fish_seen_subcommand_from env' -a checkout -d 'Switch to a different environment'
408
+ complete -c envshed -n '__fish_seen_subcommand_from env' -l name -d 'New environment name' -r
252
409
  complete -c envshed -n '__fish_seen_subcommand_from env' -l org -d 'Organization slug' -r
253
410
  complete -c envshed -n '__fish_seen_subcommand_from env' -l project -d 'Project slug' -r
411
+ complete -c envshed -n '__fish_seen_subcommand_from env' -l output -d 'Output format' -r -a 'json'
254
412
 
255
413
  # Flags per command: workspace (subcommands)
256
414
  complete -c envshed -n '__fish_seen_subcommand_from workspace' -a add -d 'Add a workspace'
@@ -300,7 +458,51 @@ complete -c envshed -n '__fish_seen_subcommand_from rename-env' -l slug -d 'New
300
458
  # Flags per command: completions
301
459
  complete -c envshed -n '__fish_seen_subcommand_from completions' -a bash -d 'Bash completion script'
302
460
  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'`;
461
+ complete -c envshed -n '__fish_seen_subcommand_from completions' -a fish -d 'Fish completion script'
462
+
463
+ # Flags per command: secret (subcommands)
464
+ complete -c envshed -n '__fish_seen_subcommand_from secret' -a get -d 'Get the value of a secret by key'
465
+ complete -c envshed -n '__fish_seen_subcommand_from secret' -a set -d 'Set or update a secret value'
466
+ complete -c envshed -n '__fish_seen_subcommand_from secret' -a delete -d 'Delete a secret by key'
467
+ complete -c envshed -n '__fish_seen_subcommand_from secret' -a override -d 'Manage personal secret overrides'
468
+
469
+ # Flags per command: definition (subcommands)
470
+ complete -c envshed -n '__fish_seen_subcommand_from definition' -a list -d 'List secret definitions'
471
+ complete -c envshed -n '__fish_seen_subcommand_from definition' -a create -d 'Create a secret definition'
472
+ complete -c envshed -n '__fish_seen_subcommand_from definition' -a update -d 'Update a secret definition'
473
+ complete -c envshed -n '__fish_seen_subcommand_from definition' -a delete -d 'Delete a secret definition'
474
+ complete -c envshed -n '__fish_seen_subcommand_from definition' -l org -d 'Organization slug' -r
475
+ complete -c envshed -n '__fish_seen_subcommand_from definition' -l project -d 'Project slug' -r
476
+ complete -c envshed -n '__fish_seen_subcommand_from definition' -l description -d 'Definition description' -r
477
+ complete -c envshed -n '__fish_seen_subcommand_from definition' -l required -d 'Mark as required'
478
+ complete -c envshed -n '__fish_seen_subcommand_from definition' -l output -d 'Output format' -r -a 'json'
479
+ complete -c envshed -n '__fish_seen_subcommand_from definition' -s y -l yes -d 'Skip confirmation'
480
+
481
+ # Flags per command: member (subcommands)
482
+ complete -c envshed -n '__fish_seen_subcommand_from member' -a list -d 'List all members in an organization'
483
+ complete -c envshed -n '__fish_seen_subcommand_from member' -a invite -d 'Invite a new member'
484
+ complete -c envshed -n '__fish_seen_subcommand_from member' -a role -d "Change a member's role"
485
+ complete -c envshed -n '__fish_seen_subcommand_from member' -a remove -d 'Remove a member from the organization'
486
+ complete -c envshed -n '__fish_seen_subcommand_from member' -l org -d 'Organization slug' -r
487
+ complete -c envshed -n '__fish_seen_subcommand_from member' -l role -d 'Member role' -r -a 'owner admin member viewer'
488
+ complete -c envshed -n '__fish_seen_subcommand_from member' -l output -d 'Output format' -r -a 'json'
489
+ complete -c envshed -n '__fish_seen_subcommand_from member' -s y -l yes -d 'Skip confirmation'
490
+
491
+ # Flags per command: webhook (subcommands)
492
+ complete -c envshed -n '__fish_seen_subcommand_from webhook' -a list -d 'List all webhooks for the org'
493
+ complete -c envshed -n '__fish_seen_subcommand_from webhook' -a create -d 'Create a webhook'
494
+ complete -c envshed -n '__fish_seen_subcommand_from webhook' -a update -d 'Update a webhook'
495
+ complete -c envshed -n '__fish_seen_subcommand_from webhook' -a delete -d 'Delete a webhook'
496
+ complete -c envshed -n '__fish_seen_subcommand_from webhook' -a test -d 'Test a webhook'
497
+ complete -c envshed -n '__fish_seen_subcommand_from webhook' -l org -d 'Organization slug' -r
498
+ complete -c envshed -n '__fish_seen_subcommand_from webhook' -l name -d 'Webhook name' -r
499
+ complete -c envshed -n '__fish_seen_subcommand_from webhook' -l url -d 'Webhook URL' -r
500
+ complete -c envshed -n '__fish_seen_subcommand_from webhook' -l events -d 'Comma-separated events (e.g. push,delete)' -r
501
+ complete -c envshed -n '__fish_seen_subcommand_from webhook' -l type -d 'Webhook type (default: http)' -r
502
+ complete -c envshed -n '__fish_seen_subcommand_from webhook' -l active -d 'Enable the webhook'
503
+ complete -c envshed -n '__fish_seen_subcommand_from webhook' -l no-active -d 'Disable the webhook'
504
+ complete -c envshed -n '__fish_seen_subcommand_from webhook' -l output -d 'Output format' -r -a 'json'
505
+ complete -c envshed -n '__fish_seen_subcommand_from webhook' -s y -l yes -d 'Skip confirmation'`;
304
506
  }
305
507
  function generateCompletionScript(shell) {
306
508
  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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BA0DoB,CAAC;AAC9B,CAAC;AAED,SAAS,iBAAiB;IACxB,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA2FK,CAAC;AACf,CAAC;AAED,SAAS,kBAAkB;IACzB,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qGAgJ4F,CAAC;AACtG,CAAC;AAED,SAAS,wBAAwB,CAAC,KAAa;IAC7C,QAAQ,KAAK,CAAC,WAAW,EAAE,EAAE,CAAC;QAC5B,KAAK,MAAM;YACT,OAAO,kBAAkB,E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AC,CAAC,CAAC;QAC1C,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;IACD,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Command } from "commander";
2
+ export declare const definitionCommand: Command;
3
+ //# sourceMappingURL=definition.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"definition.d.ts","sourceRoot":"","sources":["../../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,CA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B,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC;IAE1D,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,SAAS,CAAC,uBAAuB,GAAG,IAAI,OAAO,IAAI,GAAG,EAAE,CAAC,CAAC;QAE/E,OAAO,CAAC,IAAI,EAAE,CAAC;QACf,YAAY,CACV,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,oBAAoB,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC,EAC7C,MAAM,EACN,IAAI,CACL,CAAC;IACJ,CAAC;IAAC,OAAO,GAAQ,EAAE,CAAC;QAClB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,mBAAmB,EAAE,EAAE,OAAO,EAAE,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;IACjE,CAAC;AACH,CAAC,CAAC,CACL,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=definition.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"definition.test.d.ts","sourceRoot":"","sources":["../../src/commands/definition.test.ts"],"names":[],"mappings":""}