hereya-cli 0.62.1 → 0.63.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +49 -42
- package/dist/backend/cloud/cloud-backend.d.ts +2 -2
- package/dist/backend/cloud/cloud-backend.js +6 -2
- package/dist/backend/common.d.ts +4 -1
- package/dist/backend/file.d.ts +2 -2
- package/dist/backend/file.js +1 -1
- package/dist/commands/workspace/list/index.d.ts +3 -0
- package/dist/commands/workspace/list/index.js +15 -4
- package/oclif.manifest.json +15 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -20,7 +20,7 @@ $ npm install -g hereya-cli
|
|
|
20
20
|
$ hereya COMMAND
|
|
21
21
|
running command...
|
|
22
22
|
$ hereya (--version)
|
|
23
|
-
hereya-cli/0.
|
|
23
|
+
hereya-cli/0.63.0 linux-x64 node-v24.13.0
|
|
24
24
|
$ hereya --help [COMMAND]
|
|
25
25
|
USAGE
|
|
26
26
|
$ hereya COMMAND
|
|
@@ -103,7 +103,7 @@ EXAMPLES
|
|
|
103
103
|
$ hereya add cloudy/docker_postgres
|
|
104
104
|
```
|
|
105
105
|
|
|
106
|
-
_See code: [src/commands/add/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
106
|
+
_See code: [src/commands/add/index.ts](https://github.com/hereya/hereya-cli/blob/v0.63.0/src/commands/add/index.ts)_
|
|
107
107
|
|
|
108
108
|
## `hereya bootstrap INFRASTRUCTURETYPE`
|
|
109
109
|
|
|
@@ -128,7 +128,7 @@ EXAMPLES
|
|
|
128
128
|
$ hereya bootstrap local
|
|
129
129
|
```
|
|
130
130
|
|
|
131
|
-
_See code: [src/commands/bootstrap/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
131
|
+
_See code: [src/commands/bootstrap/index.ts](https://github.com/hereya/hereya-cli/blob/v0.63.0/src/commands/bootstrap/index.ts)_
|
|
132
132
|
|
|
133
133
|
## `hereya config export-backend [FILE]`
|
|
134
134
|
|
|
@@ -150,7 +150,7 @@ EXAMPLES
|
|
|
150
150
|
$ hereya config export-backend ./path/to/export.json
|
|
151
151
|
```
|
|
152
152
|
|
|
153
|
-
_See code: [src/commands/config/export-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
153
|
+
_See code: [src/commands/config/export-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.63.0/src/commands/config/export-backend/index.ts)_
|
|
154
154
|
|
|
155
155
|
## `hereya config get-backend`
|
|
156
156
|
|
|
@@ -167,7 +167,7 @@ EXAMPLES
|
|
|
167
167
|
$ hereya config get-backend
|
|
168
168
|
```
|
|
169
169
|
|
|
170
|
-
_See code: [src/commands/config/get-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
170
|
+
_See code: [src/commands/config/get-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.63.0/src/commands/config/get-backend/index.ts)_
|
|
171
171
|
|
|
172
172
|
## `hereya config import-backend FILE`
|
|
173
173
|
|
|
@@ -187,7 +187,7 @@ EXAMPLES
|
|
|
187
187
|
$ hereya config import-backend ./path/to/cloud-backend.json
|
|
188
188
|
```
|
|
189
189
|
|
|
190
|
-
_See code: [src/commands/config/import-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
190
|
+
_See code: [src/commands/config/import-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.63.0/src/commands/config/import-backend/index.ts)_
|
|
191
191
|
|
|
192
192
|
## `hereya config use-backend TYPE`
|
|
193
193
|
|
|
@@ -209,7 +209,7 @@ EXAMPLES
|
|
|
209
209
|
$ hereya config use-backend local
|
|
210
210
|
```
|
|
211
211
|
|
|
212
|
-
_See code: [src/commands/config/use-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
212
|
+
_See code: [src/commands/config/use-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.63.0/src/commands/config/use-backend/index.ts)_
|
|
213
213
|
|
|
214
214
|
## `hereya delete-state`
|
|
215
215
|
|
|
@@ -235,7 +235,7 @@ EXAMPLES
|
|
|
235
235
|
$ hereya delete-state --workspace staging
|
|
236
236
|
```
|
|
237
237
|
|
|
238
|
-
_See code: [src/commands/delete-state/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
238
|
+
_See code: [src/commands/delete-state/index.ts](https://github.com/hereya/hereya-cli/blob/v0.63.0/src/commands/delete-state/index.ts)_
|
|
239
239
|
|
|
240
240
|
## `hereya deploy`
|
|
241
241
|
|
|
@@ -260,7 +260,7 @@ EXAMPLES
|
|
|
260
260
|
$ hereya deploy
|
|
261
261
|
```
|
|
262
262
|
|
|
263
|
-
_See code: [src/commands/deploy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
263
|
+
_See code: [src/commands/deploy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.63.0/src/commands/deploy/index.ts)_
|
|
264
264
|
|
|
265
265
|
## `hereya doc PACKAGE`
|
|
266
266
|
|
|
@@ -293,7 +293,7 @@ EXAMPLES
|
|
|
293
293
|
$ hereya doc my-package --no-doc
|
|
294
294
|
```
|
|
295
295
|
|
|
296
|
-
_See code: [src/commands/doc/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
296
|
+
_See code: [src/commands/doc/index.ts](https://github.com/hereya/hereya-cli/blob/v0.63.0/src/commands/doc/index.ts)_
|
|
297
297
|
|
|
298
298
|
## `hereya down`
|
|
299
299
|
|
|
@@ -320,7 +320,7 @@ EXAMPLES
|
|
|
320
320
|
$ hereya down
|
|
321
321
|
```
|
|
322
322
|
|
|
323
|
-
_See code: [src/commands/down/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
323
|
+
_See code: [src/commands/down/index.ts](https://github.com/hereya/hereya-cli/blob/v0.63.0/src/commands/down/index.ts)_
|
|
324
324
|
|
|
325
325
|
## `hereya env [NAME]`
|
|
326
326
|
|
|
@@ -351,7 +351,7 @@ EXAMPLES
|
|
|
351
351
|
$ hereya env -w dev -l
|
|
352
352
|
```
|
|
353
353
|
|
|
354
|
-
_See code: [src/commands/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
354
|
+
_See code: [src/commands/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.63.0/src/commands/env/index.ts)_
|
|
355
355
|
|
|
356
356
|
## `hereya env set [NAME]`
|
|
357
357
|
|
|
@@ -378,7 +378,7 @@ EXAMPLES
|
|
|
378
378
|
$ hereya env set FOO -v bar -w dev
|
|
379
379
|
```
|
|
380
380
|
|
|
381
|
-
_See code: [src/commands/env/set/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
381
|
+
_See code: [src/commands/env/set/index.ts](https://github.com/hereya/hereya-cli/blob/v0.63.0/src/commands/env/set/index.ts)_
|
|
382
382
|
|
|
383
383
|
## `hereya flow add PACKAGE`
|
|
384
384
|
|
|
@@ -416,7 +416,7 @@ EXAMPLES
|
|
|
416
416
|
$ hereya flow add cloudy/docker_postgres -p DB_NAME=mydb -p DB_USER=admin
|
|
417
417
|
```
|
|
418
418
|
|
|
419
|
-
_See code: [src/commands/flow/add/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
419
|
+
_See code: [src/commands/flow/add/index.ts](https://github.com/hereya/hereya-cli/blob/v0.63.0/src/commands/flow/add/index.ts)_
|
|
420
420
|
|
|
421
421
|
## `hereya flow down`
|
|
422
422
|
|
|
@@ -450,7 +450,7 @@ EXAMPLES
|
|
|
450
450
|
$ hereya flow down --pin
|
|
451
451
|
```
|
|
452
452
|
|
|
453
|
-
_See code: [src/commands/flow/down/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
453
|
+
_See code: [src/commands/flow/down/index.ts](https://github.com/hereya/hereya-cli/blob/v0.63.0/src/commands/flow/down/index.ts)_
|
|
454
454
|
|
|
455
455
|
## `hereya flow env [NAME]`
|
|
456
456
|
|
|
@@ -484,7 +484,7 @@ EXAMPLES
|
|
|
484
484
|
$ hereya flow env -l
|
|
485
485
|
```
|
|
486
486
|
|
|
487
|
-
_See code: [src/commands/flow/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
487
|
+
_See code: [src/commands/flow/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.63.0/src/commands/flow/env/index.ts)_
|
|
488
488
|
|
|
489
489
|
## `hereya flow provid PACKAGE`
|
|
490
490
|
|
|
@@ -513,7 +513,7 @@ EXAMPLES
|
|
|
513
513
|
$ hereya flow provid hereya/postgres --pin
|
|
514
514
|
```
|
|
515
515
|
|
|
516
|
-
_See code: [src/commands/flow/provid/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
516
|
+
_See code: [src/commands/flow/provid/index.ts](https://github.com/hereya/hereya-cli/blob/v0.63.0/src/commands/flow/provid/index.ts)_
|
|
517
517
|
|
|
518
518
|
## `hereya flow remove PACKAGE`
|
|
519
519
|
|
|
@@ -543,7 +543,7 @@ EXAMPLES
|
|
|
543
543
|
$ hereya flow remove cloudy/docker_postgres --profile staging
|
|
544
544
|
```
|
|
545
545
|
|
|
546
|
-
_See code: [src/commands/flow/remove/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
546
|
+
_See code: [src/commands/flow/remove/index.ts](https://github.com/hereya/hereya-cli/blob/v0.63.0/src/commands/flow/remove/index.ts)_
|
|
547
547
|
|
|
548
548
|
## `hereya flow run CMD`
|
|
549
549
|
|
|
@@ -572,7 +572,7 @@ EXAMPLES
|
|
|
572
572
|
$ hereya flow run --pin -- npm test
|
|
573
573
|
```
|
|
574
574
|
|
|
575
|
-
_See code: [src/commands/flow/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
575
|
+
_See code: [src/commands/flow/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.63.0/src/commands/flow/run/index.ts)_
|
|
576
576
|
|
|
577
577
|
## `hereya flow up`
|
|
578
578
|
|
|
@@ -606,7 +606,7 @@ EXAMPLES
|
|
|
606
606
|
$ hereya flow up --pin
|
|
607
607
|
```
|
|
608
608
|
|
|
609
|
-
_See code: [src/commands/flow/up/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
609
|
+
_See code: [src/commands/flow/up/index.ts](https://github.com/hereya/hereya-cli/blob/v0.63.0/src/commands/flow/up/index.ts)_
|
|
610
610
|
|
|
611
611
|
## `hereya help [COMMAND]`
|
|
612
612
|
|
|
@@ -663,7 +663,7 @@ EXAMPLES
|
|
|
663
663
|
$ hereya import org/my-package -f state.tfstate -w my-workspace
|
|
664
664
|
```
|
|
665
665
|
|
|
666
|
-
_See code: [src/commands/import/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
666
|
+
_See code: [src/commands/import/index.ts](https://github.com/hereya/hereya-cli/blob/v0.63.0/src/commands/import/index.ts)_
|
|
667
667
|
|
|
668
668
|
## `hereya init PROJECT`
|
|
669
669
|
|
|
@@ -689,7 +689,7 @@ EXAMPLES
|
|
|
689
689
|
$ hereya init myProject -w=defaultWorkspace --chdir=./myProject
|
|
690
690
|
```
|
|
691
691
|
|
|
692
|
-
_See code: [src/commands/init/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
692
|
+
_See code: [src/commands/init/index.ts](https://github.com/hereya/hereya-cli/blob/v0.63.0/src/commands/init/index.ts)_
|
|
693
693
|
|
|
694
694
|
## `hereya login [URL]`
|
|
695
695
|
|
|
@@ -718,7 +718,7 @@ EXAMPLES
|
|
|
718
718
|
$ hereya login --token=your-token https://cloud.hereya.dev
|
|
719
719
|
```
|
|
720
720
|
|
|
721
|
-
_See code: [src/commands/login/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
721
|
+
_See code: [src/commands/login/index.ts](https://github.com/hereya/hereya-cli/blob/v0.63.0/src/commands/login/index.ts)_
|
|
722
722
|
|
|
723
723
|
## `hereya logout`
|
|
724
724
|
|
|
@@ -735,7 +735,7 @@ EXAMPLES
|
|
|
735
735
|
$ hereya logout
|
|
736
736
|
```
|
|
737
737
|
|
|
738
|
-
_See code: [src/commands/logout/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
738
|
+
_See code: [src/commands/logout/index.ts](https://github.com/hereya/hereya-cli/blob/v0.63.0/src/commands/logout/index.ts)_
|
|
739
739
|
|
|
740
740
|
## `hereya provid PACKAGE`
|
|
741
741
|
|
|
@@ -763,7 +763,7 @@ EXAMPLES
|
|
|
763
763
|
$ hereya provid hereya/postgres --workspace staging
|
|
764
764
|
```
|
|
765
765
|
|
|
766
|
-
_See code: [src/commands/provid/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
766
|
+
_See code: [src/commands/provid/index.ts](https://github.com/hereya/hereya-cli/blob/v0.63.0/src/commands/provid/index.ts)_
|
|
767
767
|
|
|
768
768
|
## `hereya publish`
|
|
769
769
|
|
|
@@ -786,7 +786,7 @@ EXAMPLES
|
|
|
786
786
|
$ hereya publish --chdir=/path/to/package
|
|
787
787
|
```
|
|
788
788
|
|
|
789
|
-
_See code: [src/commands/publish/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
789
|
+
_See code: [src/commands/publish/index.ts](https://github.com/hereya/hereya-cli/blob/v0.63.0/src/commands/publish/index.ts)_
|
|
790
790
|
|
|
791
791
|
## `hereya remove PACKAGE`
|
|
792
792
|
|
|
@@ -814,7 +814,7 @@ EXAMPLES
|
|
|
814
814
|
$ hereya remove cloudy/docker_postgres
|
|
815
815
|
```
|
|
816
816
|
|
|
817
|
-
_See code: [src/commands/remove/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
817
|
+
_See code: [src/commands/remove/index.ts](https://github.com/hereya/hereya-cli/blob/v0.63.0/src/commands/remove/index.ts)_
|
|
818
818
|
|
|
819
819
|
## `hereya run CMD`
|
|
820
820
|
|
|
@@ -840,7 +840,7 @@ EXAMPLES
|
|
|
840
840
|
$ hereya run -w uat -- node index.js
|
|
841
841
|
```
|
|
842
842
|
|
|
843
|
-
_See code: [src/commands/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
843
|
+
_See code: [src/commands/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.63.0/src/commands/run/index.ts)_
|
|
844
844
|
|
|
845
845
|
## `hereya search QUERY`
|
|
846
846
|
|
|
@@ -871,7 +871,7 @@ EXAMPLES
|
|
|
871
871
|
$ hereya search database --json
|
|
872
872
|
```
|
|
873
873
|
|
|
874
|
-
_See code: [src/commands/search/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
874
|
+
_See code: [src/commands/search/index.ts](https://github.com/hereya/hereya-cli/blob/v0.63.0/src/commands/search/index.ts)_
|
|
875
875
|
|
|
876
876
|
## `hereya unbootstrap INFRASTRUCTURETYPE`
|
|
877
877
|
|
|
@@ -896,7 +896,7 @@ EXAMPLES
|
|
|
896
896
|
$ hereya unbootstrap local
|
|
897
897
|
```
|
|
898
898
|
|
|
899
|
-
_See code: [src/commands/unbootstrap/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
899
|
+
_See code: [src/commands/unbootstrap/index.ts](https://github.com/hereya/hereya-cli/blob/v0.63.0/src/commands/unbootstrap/index.ts)_
|
|
900
900
|
|
|
901
901
|
## `hereya undeploy`
|
|
902
902
|
|
|
@@ -921,7 +921,7 @@ EXAMPLES
|
|
|
921
921
|
$ hereya undeploy
|
|
922
922
|
```
|
|
923
923
|
|
|
924
|
-
_See code: [src/commands/undeploy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
924
|
+
_See code: [src/commands/undeploy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.63.0/src/commands/undeploy/index.ts)_
|
|
925
925
|
|
|
926
926
|
## `hereya up`
|
|
927
927
|
|
|
@@ -948,7 +948,7 @@ EXAMPLES
|
|
|
948
948
|
$ hereya up
|
|
949
949
|
```
|
|
950
950
|
|
|
951
|
-
_See code: [src/commands/up/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
951
|
+
_See code: [src/commands/up/index.ts](https://github.com/hereya/hereya-cli/blob/v0.63.0/src/commands/up/index.ts)_
|
|
952
952
|
|
|
953
953
|
## `hereya workspace create NAME`
|
|
954
954
|
|
|
@@ -973,7 +973,7 @@ EXAMPLES
|
|
|
973
973
|
$ hereya workspace create dev
|
|
974
974
|
```
|
|
975
975
|
|
|
976
|
-
_See code: [src/commands/workspace/create/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
976
|
+
_See code: [src/commands/workspace/create/index.ts](https://github.com/hereya/hereya-cli/blob/v0.63.0/src/commands/workspace/create/index.ts)_
|
|
977
977
|
|
|
978
978
|
## `hereya workspace delete NAME`
|
|
979
979
|
|
|
@@ -993,7 +993,7 @@ EXAMPLES
|
|
|
993
993
|
$ hereya workspace delete dev
|
|
994
994
|
```
|
|
995
995
|
|
|
996
|
-
_See code: [src/commands/workspace/delete/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
996
|
+
_See code: [src/commands/workspace/delete/index.ts](https://github.com/hereya/hereya-cli/blob/v0.63.0/src/commands/workspace/delete/index.ts)_
|
|
997
997
|
|
|
998
998
|
## `hereya workspace env [NAME]`
|
|
999
999
|
|
|
@@ -1019,7 +1019,7 @@ EXAMPLES
|
|
|
1019
1019
|
$ hereya workspace env myEnv -w dev
|
|
1020
1020
|
```
|
|
1021
1021
|
|
|
1022
|
-
_See code: [src/commands/workspace/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
1022
|
+
_See code: [src/commands/workspace/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.63.0/src/commands/workspace/env/index.ts)_
|
|
1023
1023
|
|
|
1024
1024
|
## `hereya workspace env set`
|
|
1025
1025
|
|
|
@@ -1043,7 +1043,7 @@ EXAMPLES
|
|
|
1043
1043
|
$ hereya workspace env set -w my-workspace -n myVar -v my-value -i aws -s
|
|
1044
1044
|
```
|
|
1045
1045
|
|
|
1046
|
-
_See code: [src/commands/workspace/env/set/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
1046
|
+
_See code: [src/commands/workspace/env/set/index.ts](https://github.com/hereya/hereya-cli/blob/v0.63.0/src/commands/workspace/env/set/index.ts)_
|
|
1047
1047
|
|
|
1048
1048
|
## `hereya workspace env unset`
|
|
1049
1049
|
|
|
@@ -1064,7 +1064,7 @@ EXAMPLES
|
|
|
1064
1064
|
$ hereya workspace env unset -w my-workspace -n myVar
|
|
1065
1065
|
```
|
|
1066
1066
|
|
|
1067
|
-
_See code: [src/commands/workspace/env/unset/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
1067
|
+
_See code: [src/commands/workspace/env/unset/index.ts](https://github.com/hereya/hereya-cli/blob/v0.63.0/src/commands/workspace/env/unset/index.ts)_
|
|
1068
1068
|
|
|
1069
1069
|
## `hereya workspace install PACKAGE`
|
|
1070
1070
|
|
|
@@ -1091,7 +1091,7 @@ EXAMPLES
|
|
|
1091
1091
|
$ hereya workspace install hereya/aws-cognito
|
|
1092
1092
|
```
|
|
1093
1093
|
|
|
1094
|
-
_See code: [src/commands/workspace/install/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
1094
|
+
_See code: [src/commands/workspace/install/index.ts](https://github.com/hereya/hereya-cli/blob/v0.63.0/src/commands/workspace/install/index.ts)_
|
|
1095
1095
|
|
|
1096
1096
|
## `hereya workspace list`
|
|
1097
1097
|
|
|
@@ -1099,16 +1099,23 @@ List workspaces.
|
|
|
1099
1099
|
|
|
1100
1100
|
```
|
|
1101
1101
|
USAGE
|
|
1102
|
-
$ hereya workspace list
|
|
1102
|
+
$ hereya workspace list [-o <value>]
|
|
1103
|
+
|
|
1104
|
+
FLAGS
|
|
1105
|
+
-o, --org=<value> Filter workspaces by organization name. Use "personal" to show only your personal workspaces.
|
|
1103
1106
|
|
|
1104
1107
|
DESCRIPTION
|
|
1105
1108
|
List workspaces.
|
|
1106
1109
|
|
|
1107
1110
|
EXAMPLES
|
|
1108
1111
|
$ hereya workspace list
|
|
1112
|
+
|
|
1113
|
+
$ hereya workspace list --org my-org
|
|
1114
|
+
|
|
1115
|
+
$ hereya workspace list --org personal
|
|
1109
1116
|
```
|
|
1110
1117
|
|
|
1111
|
-
_See code: [src/commands/workspace/list/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
1118
|
+
_See code: [src/commands/workspace/list/index.ts](https://github.com/hereya/hereya-cli/blob/v0.63.0/src/commands/workspace/list/index.ts)_
|
|
1112
1119
|
|
|
1113
1120
|
## `hereya workspace set-profile PROFILE`
|
|
1114
1121
|
|
|
@@ -1132,7 +1139,7 @@ EXAMPLES
|
|
|
1132
1139
|
$ hereya workspace set-profile prod-profile -w production
|
|
1133
1140
|
```
|
|
1134
1141
|
|
|
1135
|
-
_See code: [src/commands/workspace/set-profile/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
1142
|
+
_See code: [src/commands/workspace/set-profile/index.ts](https://github.com/hereya/hereya-cli/blob/v0.63.0/src/commands/workspace/set-profile/index.ts)_
|
|
1136
1143
|
|
|
1137
1144
|
## `hereya workspace uninstall PACKAGE`
|
|
1138
1145
|
|
|
@@ -1159,5 +1166,5 @@ EXAMPLES
|
|
|
1159
1166
|
$ hereya workspace uninstall hereya/aws-cognito
|
|
1160
1167
|
```
|
|
1161
1168
|
|
|
1162
|
-
_See code: [src/commands/workspace/uninstall/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
1169
|
+
_See code: [src/commands/workspace/uninstall/index.ts](https://github.com/hereya/hereya-cli/blob/v0.63.0/src/commands/workspace/uninstall/index.ts)_
|
|
1163
1170
|
<!-- commandsstop -->
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Config } from '../../lib/config/common.js';
|
|
2
|
-
import { AddPackageToWorkspaceInput, AddPackageToWorkspaceOutput, Backend, CreateWorkspaceInput, CreateWorkspaceOutput, DeleteStateInput, DeleteStateOutput, DeleteWorkspaceInput, DeleteWorkspaceOutput, ExportBackendOutput, GetPackageOutput, GetProvisioningIdInput, GetProvisioningIdOutput, GetStateInput, GetStateOutput, GetWorkspaceEnvInput, GetWorkspaceEnvOutput, GetWorkspaceOutput, ImportBackendInput, ImportBackendOutput, InitProjectInput, InitProjectOutput, ListPackageVersionsOutput, PublishPackageInput, PublishPackageOutput, RemovePackageFromWorkspaceInput, RemovePackageFromWorkspaceOutput, SearchPackagesInput, SearchPackagesOutput, SetEnvVarInput, SetEnvVarOutput, UnsetEnvVarInput, UnsetEnvVarOutput, UpdateWorkspaceInput, UpdateWorkspaceOutput } from '../common.js';
|
|
2
|
+
import { AddPackageToWorkspaceInput, AddPackageToWorkspaceOutput, Backend, CreateWorkspaceInput, CreateWorkspaceOutput, DeleteStateInput, DeleteStateOutput, DeleteWorkspaceInput, DeleteWorkspaceOutput, ExportBackendOutput, GetPackageOutput, GetProvisioningIdInput, GetProvisioningIdOutput, GetStateInput, GetStateOutput, GetWorkspaceEnvInput, GetWorkspaceEnvOutput, GetWorkspaceOutput, ImportBackendInput, ImportBackendOutput, InitProjectInput, InitProjectOutput, ListPackageVersionsOutput, ListWorkspacesInput, PublishPackageInput, PublishPackageOutput, RemovePackageFromWorkspaceInput, RemovePackageFromWorkspaceOutput, SearchPackagesInput, SearchPackagesOutput, SetEnvVarInput, SetEnvVarOutput, UnsetEnvVarInput, UnsetEnvVarOutput, UpdateWorkspaceInput, UpdateWorkspaceOutput } from '../common.js';
|
|
3
3
|
interface CloudBackendConfig {
|
|
4
4
|
accessToken: string;
|
|
5
5
|
clientId: string;
|
|
@@ -23,7 +23,7 @@ export declare class CloudBackend implements Backend {
|
|
|
23
23
|
importBackend(input: ImportBackendInput): Promise<ImportBackendOutput>;
|
|
24
24
|
init(input: InitProjectInput): Promise<InitProjectOutput>;
|
|
25
25
|
listPackageVersions(name: string): Promise<ListPackageVersionsOutput>;
|
|
26
|
-
listWorkspaces(): Promise<string[]>;
|
|
26
|
+
listWorkspaces(input?: ListWorkspacesInput): Promise<string[]>;
|
|
27
27
|
publishPackage(input: PublishPackageInput): Promise<PublishPackageOutput>;
|
|
28
28
|
removePackageFromWorkspace(input: RemovePackageFromWorkspaceInput): Promise<RemovePackageFromWorkspaceOutput>;
|
|
29
29
|
saveState(config: Config, workspace?: string): Promise<void>;
|
|
@@ -391,8 +391,12 @@ export class CloudBackend {
|
|
|
391
391
|
success: true,
|
|
392
392
|
};
|
|
393
393
|
}
|
|
394
|
-
async listWorkspaces() {
|
|
395
|
-
const
|
|
394
|
+
async listWorkspaces(input) {
|
|
395
|
+
const url = new URL(`${this.config.url}/api/workspaces`);
|
|
396
|
+
if (input?.org) {
|
|
397
|
+
url.searchParams.set('org', input.org);
|
|
398
|
+
}
|
|
399
|
+
const response = await fetch(url.toString(), {
|
|
396
400
|
headers: {
|
|
397
401
|
'Authorization': `Bearer ${this.config.accessToken}`,
|
|
398
402
|
},
|
package/dist/backend/common.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export interface Backend {
|
|
|
16
16
|
importBackend(input: ImportBackendInput): Promise<ImportBackendOutput>;
|
|
17
17
|
init(options: InitProjectInput): Promise<InitProjectOutput>;
|
|
18
18
|
listPackageVersions?(name: string): Promise<ListPackageVersionsOutput>;
|
|
19
|
-
listWorkspaces(): Promise<string[]>;
|
|
19
|
+
listWorkspaces(input?: ListWorkspacesInput): Promise<string[]>;
|
|
20
20
|
publishPackage?(input: PublishPackageInput): Promise<PublishPackageOutput>;
|
|
21
21
|
removePackageFromWorkspace(input: RemovePackageFromWorkspaceInput): Promise<RemovePackageFromWorkspaceOutput>;
|
|
22
22
|
saveState(config: Config, workspace?: string): Promise<void>;
|
|
@@ -290,6 +290,9 @@ export type ListPackageVersionsOutput = {
|
|
|
290
290
|
reason: string;
|
|
291
291
|
success: false;
|
|
292
292
|
};
|
|
293
|
+
export type ListWorkspacesInput = {
|
|
294
|
+
org?: string;
|
|
295
|
+
};
|
|
293
296
|
export type SearchPackagesInput = {
|
|
294
297
|
limit?: number;
|
|
295
298
|
offset?: number;
|
package/dist/backend/file.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Config } from '../lib/config/common.js';
|
|
2
|
-
import { AddPackageToWorkspaceInput, AddPackageToWorkspaceOutput, Backend, CreateWorkspaceInput, CreateWorkspaceOutput, DeleteStateInput, DeleteStateOutput, DeleteWorkspaceInput, DeleteWorkspaceOutput, ExportBackendOutput, GetPackageOutput, GetProvisioningIdInput, GetProvisioningIdOutput, GetStateInput, GetStateOutput, GetWorkspaceEnvInput, GetWorkspaceEnvOutput, GetWorkspaceOutput, ImportBackendInput, ImportBackendOutput, InitProjectInput, InitProjectOutput, ListPackageVersionsOutput, PublishPackageInput, PublishPackageOutput, RemovePackageFromWorkspaceInput, RemovePackageFromWorkspaceOutput, SetEnvVarInput, SetEnvVarOutput, UnsetEnvVarInput, UnsetEnvVarOutput, UpdateWorkspaceInput, UpdateWorkspaceOutput } from './common.js';
|
|
2
|
+
import { AddPackageToWorkspaceInput, AddPackageToWorkspaceOutput, Backend, CreateWorkspaceInput, CreateWorkspaceOutput, DeleteStateInput, DeleteStateOutput, DeleteWorkspaceInput, DeleteWorkspaceOutput, ExportBackendOutput, GetPackageOutput, GetProvisioningIdInput, GetProvisioningIdOutput, GetStateInput, GetStateOutput, GetWorkspaceEnvInput, GetWorkspaceEnvOutput, GetWorkspaceOutput, ImportBackendInput, ImportBackendOutput, InitProjectInput, InitProjectOutput, ListPackageVersionsOutput, ListWorkspacesInput, PublishPackageInput, PublishPackageOutput, RemovePackageFromWorkspaceInput, RemovePackageFromWorkspaceOutput, SetEnvVarInput, SetEnvVarOutput, UnsetEnvVarInput, UnsetEnvVarOutput, UpdateWorkspaceInput, UpdateWorkspaceOutput } from './common.js';
|
|
3
3
|
import { FileStorage } from './file-storage/common.js';
|
|
4
4
|
export declare class FileBackend implements Backend {
|
|
5
5
|
private readonly fileStorage;
|
|
@@ -18,7 +18,7 @@ export declare class FileBackend implements Backend {
|
|
|
18
18
|
importBackend(_: ImportBackendInput): Promise<ImportBackendOutput>;
|
|
19
19
|
init(options: InitProjectInput): Promise<InitProjectOutput>;
|
|
20
20
|
listPackageVersions(_: string): Promise<ListPackageVersionsOutput>;
|
|
21
|
-
listWorkspaces(): Promise<string[]>;
|
|
21
|
+
listWorkspaces(_input?: ListWorkspacesInput): Promise<string[]>;
|
|
22
22
|
publishPackage(_: PublishPackageInput): Promise<PublishPackageOutput>;
|
|
23
23
|
removePackageFromWorkspace(input: RemovePackageFromWorkspaceInput): Promise<RemovePackageFromWorkspaceOutput>;
|
|
24
24
|
saveState(config: Config, workspace?: string): Promise<void>;
|
package/dist/backend/file.js
CHANGED
|
@@ -349,7 +349,7 @@ export class FileBackend {
|
|
|
349
349
|
success: false,
|
|
350
350
|
};
|
|
351
351
|
}
|
|
352
|
-
async listWorkspaces() {
|
|
352
|
+
async listWorkspaces(_input) {
|
|
353
353
|
const workspaces$ = await this.fileStorage.listFileNames({ directory: 'state/workspaces' });
|
|
354
354
|
if (workspaces$.success) {
|
|
355
355
|
return workspaces$.files
|
|
@@ -2,5 +2,8 @@ import { Command } from '@oclif/core';
|
|
|
2
2
|
export default class WorkspaceList extends Command {
|
|
3
3
|
static description: string;
|
|
4
4
|
static examples: string[];
|
|
5
|
+
static flags: {
|
|
6
|
+
org: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
7
|
+
};
|
|
5
8
|
run(): Promise<void>;
|
|
6
9
|
}
|
|
@@ -1,13 +1,24 @@
|
|
|
1
|
-
import { Command } from '@oclif/core';
|
|
1
|
+
import { Command, Flags } from '@oclif/core';
|
|
2
2
|
import { getBackend } from '../../../backend/index.js';
|
|
3
3
|
export default class WorkspaceList extends Command {
|
|
4
4
|
static description = 'List workspaces.';
|
|
5
|
-
static examples = [
|
|
5
|
+
static examples = [
|
|
6
|
+
'<%= config.bin %> <%= command.id %>',
|
|
7
|
+
'<%= config.bin %> <%= command.id %> --org my-org',
|
|
8
|
+
'<%= config.bin %> <%= command.id %> --org personal',
|
|
9
|
+
];
|
|
10
|
+
static flags = {
|
|
11
|
+
org: Flags.string({
|
|
12
|
+
char: 'o',
|
|
13
|
+
description: 'Filter workspaces by organization name. Use "personal" to show only your personal workspaces.',
|
|
14
|
+
required: false,
|
|
15
|
+
}),
|
|
16
|
+
};
|
|
6
17
|
async run() {
|
|
7
|
-
await this.parse(WorkspaceList);
|
|
18
|
+
const { flags } = await this.parse(WorkspaceList);
|
|
8
19
|
try {
|
|
9
20
|
const backend = await getBackend();
|
|
10
|
-
const workspaceNames = await backend.listWorkspaces();
|
|
21
|
+
const workspaceNames = await backend.listWorkspaces(flags.org ? { org: flags.org } : undefined);
|
|
11
22
|
// If no workspaces, show a message
|
|
12
23
|
if (workspaceNames.length === 0) {
|
|
13
24
|
this.log('No workspaces found.');
|
package/oclif.manifest.json
CHANGED
|
@@ -1796,9 +1796,21 @@
|
|
|
1796
1796
|
"args": {},
|
|
1797
1797
|
"description": "List workspaces.",
|
|
1798
1798
|
"examples": [
|
|
1799
|
-
"<%= config.bin %> <%= command.id %>"
|
|
1799
|
+
"<%= config.bin %> <%= command.id %>",
|
|
1800
|
+
"<%= config.bin %> <%= command.id %> --org my-org",
|
|
1801
|
+
"<%= config.bin %> <%= command.id %> --org personal"
|
|
1800
1802
|
],
|
|
1801
|
-
"flags": {
|
|
1803
|
+
"flags": {
|
|
1804
|
+
"org": {
|
|
1805
|
+
"char": "o",
|
|
1806
|
+
"description": "Filter workspaces by organization name. Use \"personal\" to show only your personal workspaces.",
|
|
1807
|
+
"name": "org",
|
|
1808
|
+
"required": false,
|
|
1809
|
+
"hasDynamicHelp": false,
|
|
1810
|
+
"multiple": false,
|
|
1811
|
+
"type": "option"
|
|
1812
|
+
}
|
|
1813
|
+
},
|
|
1802
1814
|
"hasDynamicHelp": false,
|
|
1803
1815
|
"hiddenAliases": [],
|
|
1804
1816
|
"id": "workspace:list",
|
|
@@ -2045,5 +2057,5 @@
|
|
|
2045
2057
|
]
|
|
2046
2058
|
}
|
|
2047
2059
|
},
|
|
2048
|
-
"version": "0.
|
|
2060
|
+
"version": "0.63.0"
|
|
2049
2061
|
}
|