hereya-cli 0.50.0 → 0.51.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 +36 -36
- package/dist/commands/flow/add/index.js +5 -1
- package/dist/commands/flow/down/index.js +5 -1
- package/dist/commands/flow/remove/index.js +5 -1
- package/dist/commands/flow/up/index.js +5 -1
- package/dist/lib/flow-utils.js +8 -3
- package/oclif.manifest.json +1 -1
- 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.51.0 linux-x64 node-v22.17.1
|
|
24
24
|
$ hereya --help [COMMAND]
|
|
25
25
|
USAGE
|
|
26
26
|
$ hereya COMMAND
|
|
@@ -98,7 +98,7 @@ EXAMPLES
|
|
|
98
98
|
$ hereya add cloudy/docker_postgres
|
|
99
99
|
```
|
|
100
100
|
|
|
101
|
-
_See code: [src/commands/add/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
101
|
+
_See code: [src/commands/add/index.ts](https://github.com/hereya/hereya-cli/blob/v0.51.0/src/commands/add/index.ts)_
|
|
102
102
|
|
|
103
103
|
## `hereya bootstrap INFRASTRUCTURETYPE`
|
|
104
104
|
|
|
@@ -123,7 +123,7 @@ EXAMPLES
|
|
|
123
123
|
$ hereya bootstrap local
|
|
124
124
|
```
|
|
125
125
|
|
|
126
|
-
_See code: [src/commands/bootstrap/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
126
|
+
_See code: [src/commands/bootstrap/index.ts](https://github.com/hereya/hereya-cli/blob/v0.51.0/src/commands/bootstrap/index.ts)_
|
|
127
127
|
|
|
128
128
|
## `hereya config export-backend [FILE]`
|
|
129
129
|
|
|
@@ -145,7 +145,7 @@ EXAMPLES
|
|
|
145
145
|
$ hereya config export-backend ./path/to/export.json
|
|
146
146
|
```
|
|
147
147
|
|
|
148
|
-
_See code: [src/commands/config/export-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
148
|
+
_See code: [src/commands/config/export-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.51.0/src/commands/config/export-backend/index.ts)_
|
|
149
149
|
|
|
150
150
|
## `hereya config get-backend`
|
|
151
151
|
|
|
@@ -162,7 +162,7 @@ EXAMPLES
|
|
|
162
162
|
$ hereya config get-backend
|
|
163
163
|
```
|
|
164
164
|
|
|
165
|
-
_See code: [src/commands/config/get-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
165
|
+
_See code: [src/commands/config/get-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.51.0/src/commands/config/get-backend/index.ts)_
|
|
166
166
|
|
|
167
167
|
## `hereya config import-backend FILE`
|
|
168
168
|
|
|
@@ -182,7 +182,7 @@ EXAMPLES
|
|
|
182
182
|
$ hereya config import-backend ./path/to/cloud-backend.json
|
|
183
183
|
```
|
|
184
184
|
|
|
185
|
-
_See code: [src/commands/config/import-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
185
|
+
_See code: [src/commands/config/import-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.51.0/src/commands/config/import-backend/index.ts)_
|
|
186
186
|
|
|
187
187
|
## `hereya config use-backend TYPE`
|
|
188
188
|
|
|
@@ -204,7 +204,7 @@ EXAMPLES
|
|
|
204
204
|
$ hereya config use-backend local
|
|
205
205
|
```
|
|
206
206
|
|
|
207
|
-
_See code: [src/commands/config/use-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
207
|
+
_See code: [src/commands/config/use-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.51.0/src/commands/config/use-backend/index.ts)_
|
|
208
208
|
|
|
209
209
|
## `hereya delete-state`
|
|
210
210
|
|
|
@@ -230,7 +230,7 @@ EXAMPLES
|
|
|
230
230
|
$ hereya delete-state --workspace staging
|
|
231
231
|
```
|
|
232
232
|
|
|
233
|
-
_See code: [src/commands/delete-state/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
233
|
+
_See code: [src/commands/delete-state/index.ts](https://github.com/hereya/hereya-cli/blob/v0.51.0/src/commands/delete-state/index.ts)_
|
|
234
234
|
|
|
235
235
|
## `hereya deploy`
|
|
236
236
|
|
|
@@ -255,7 +255,7 @@ EXAMPLES
|
|
|
255
255
|
$ hereya deploy
|
|
256
256
|
```
|
|
257
257
|
|
|
258
|
-
_See code: [src/commands/deploy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
258
|
+
_See code: [src/commands/deploy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.51.0/src/commands/deploy/index.ts)_
|
|
259
259
|
|
|
260
260
|
## `hereya down`
|
|
261
261
|
|
|
@@ -282,7 +282,7 @@ EXAMPLES
|
|
|
282
282
|
$ hereya down
|
|
283
283
|
```
|
|
284
284
|
|
|
285
|
-
_See code: [src/commands/down/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
285
|
+
_See code: [src/commands/down/index.ts](https://github.com/hereya/hereya-cli/blob/v0.51.0/src/commands/down/index.ts)_
|
|
286
286
|
|
|
287
287
|
## `hereya env [NAME]`
|
|
288
288
|
|
|
@@ -313,7 +313,7 @@ EXAMPLES
|
|
|
313
313
|
$ hereya env -w dev -l
|
|
314
314
|
```
|
|
315
315
|
|
|
316
|
-
_See code: [src/commands/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
316
|
+
_See code: [src/commands/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.51.0/src/commands/env/index.ts)_
|
|
317
317
|
|
|
318
318
|
## `hereya env set [NAME]`
|
|
319
319
|
|
|
@@ -340,7 +340,7 @@ EXAMPLES
|
|
|
340
340
|
$ hereya env set FOO -v bar -w dev
|
|
341
341
|
```
|
|
342
342
|
|
|
343
|
-
_See code: [src/commands/env/set/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
343
|
+
_See code: [src/commands/env/set/index.ts](https://github.com/hereya/hereya-cli/blob/v0.51.0/src/commands/env/set/index.ts)_
|
|
344
344
|
|
|
345
345
|
## `hereya flow add PACKAGE`
|
|
346
346
|
|
|
@@ -378,7 +378,7 @@ EXAMPLES
|
|
|
378
378
|
$ hereya flow add cloudy/docker_postgres -p DB_NAME=mydb -p DB_USER=admin
|
|
379
379
|
```
|
|
380
380
|
|
|
381
|
-
_See code: [src/commands/flow/add/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
381
|
+
_See code: [src/commands/flow/add/index.ts](https://github.com/hereya/hereya-cli/blob/v0.51.0/src/commands/flow/add/index.ts)_
|
|
382
382
|
|
|
383
383
|
## `hereya flow down`
|
|
384
384
|
|
|
@@ -412,7 +412,7 @@ EXAMPLES
|
|
|
412
412
|
$ hereya flow down --pin
|
|
413
413
|
```
|
|
414
414
|
|
|
415
|
-
_See code: [src/commands/flow/down/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
415
|
+
_See code: [src/commands/flow/down/index.ts](https://github.com/hereya/hereya-cli/blob/v0.51.0/src/commands/flow/down/index.ts)_
|
|
416
416
|
|
|
417
417
|
## `hereya flow env [NAME]`
|
|
418
418
|
|
|
@@ -446,7 +446,7 @@ EXAMPLES
|
|
|
446
446
|
$ hereya flow env -l
|
|
447
447
|
```
|
|
448
448
|
|
|
449
|
-
_See code: [src/commands/flow/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
449
|
+
_See code: [src/commands/flow/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.51.0/src/commands/flow/env/index.ts)_
|
|
450
450
|
|
|
451
451
|
## `hereya flow remove PACKAGE`
|
|
452
452
|
|
|
@@ -476,7 +476,7 @@ EXAMPLES
|
|
|
476
476
|
$ hereya flow remove cloudy/docker_postgres --profile staging
|
|
477
477
|
```
|
|
478
478
|
|
|
479
|
-
_See code: [src/commands/flow/remove/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
479
|
+
_See code: [src/commands/flow/remove/index.ts](https://github.com/hereya/hereya-cli/blob/v0.51.0/src/commands/flow/remove/index.ts)_
|
|
480
480
|
|
|
481
481
|
## `hereya flow run CMD`
|
|
482
482
|
|
|
@@ -505,7 +505,7 @@ EXAMPLES
|
|
|
505
505
|
$ hereya flow run --pin -- npm test
|
|
506
506
|
```
|
|
507
507
|
|
|
508
|
-
_See code: [src/commands/flow/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
508
|
+
_See code: [src/commands/flow/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.51.0/src/commands/flow/run/index.ts)_
|
|
509
509
|
|
|
510
510
|
## `hereya flow up`
|
|
511
511
|
|
|
@@ -539,7 +539,7 @@ EXAMPLES
|
|
|
539
539
|
$ hereya flow up --pin
|
|
540
540
|
```
|
|
541
541
|
|
|
542
|
-
_See code: [src/commands/flow/up/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
542
|
+
_See code: [src/commands/flow/up/index.ts](https://github.com/hereya/hereya-cli/blob/v0.51.0/src/commands/flow/up/index.ts)_
|
|
543
543
|
|
|
544
544
|
## `hereya help [COMMAND]`
|
|
545
545
|
|
|
@@ -596,7 +596,7 @@ EXAMPLES
|
|
|
596
596
|
$ hereya import org/my-package -f state.tfstate -w my-workspace
|
|
597
597
|
```
|
|
598
598
|
|
|
599
|
-
_See code: [src/commands/import/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
599
|
+
_See code: [src/commands/import/index.ts](https://github.com/hereya/hereya-cli/blob/v0.51.0/src/commands/import/index.ts)_
|
|
600
600
|
|
|
601
601
|
## `hereya init PROJECT`
|
|
602
602
|
|
|
@@ -622,7 +622,7 @@ EXAMPLES
|
|
|
622
622
|
$ hereya init myProject -w=defaultWorkspace --chdir=./myProject
|
|
623
623
|
```
|
|
624
624
|
|
|
625
|
-
_See code: [src/commands/init/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
625
|
+
_See code: [src/commands/init/index.ts](https://github.com/hereya/hereya-cli/blob/v0.51.0/src/commands/init/index.ts)_
|
|
626
626
|
|
|
627
627
|
## `hereya login [URL]`
|
|
628
628
|
|
|
@@ -651,7 +651,7 @@ EXAMPLES
|
|
|
651
651
|
$ hereya login --token=your-token https://cloud.hereya.dev
|
|
652
652
|
```
|
|
653
653
|
|
|
654
|
-
_See code: [src/commands/login/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
654
|
+
_See code: [src/commands/login/index.ts](https://github.com/hereya/hereya-cli/blob/v0.51.0/src/commands/login/index.ts)_
|
|
655
655
|
|
|
656
656
|
## `hereya logout`
|
|
657
657
|
|
|
@@ -668,7 +668,7 @@ EXAMPLES
|
|
|
668
668
|
$ hereya logout
|
|
669
669
|
```
|
|
670
670
|
|
|
671
|
-
_See code: [src/commands/logout/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
671
|
+
_See code: [src/commands/logout/index.ts](https://github.com/hereya/hereya-cli/blob/v0.51.0/src/commands/logout/index.ts)_
|
|
672
672
|
|
|
673
673
|
## `hereya remove PACKAGE`
|
|
674
674
|
|
|
@@ -696,7 +696,7 @@ EXAMPLES
|
|
|
696
696
|
$ hereya remove cloudy/docker_postgres
|
|
697
697
|
```
|
|
698
698
|
|
|
699
|
-
_See code: [src/commands/remove/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
699
|
+
_See code: [src/commands/remove/index.ts](https://github.com/hereya/hereya-cli/blob/v0.51.0/src/commands/remove/index.ts)_
|
|
700
700
|
|
|
701
701
|
## `hereya run CMD`
|
|
702
702
|
|
|
@@ -722,7 +722,7 @@ EXAMPLES
|
|
|
722
722
|
$ hereya run -w uat -- node index.js
|
|
723
723
|
```
|
|
724
724
|
|
|
725
|
-
_See code: [src/commands/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
725
|
+
_See code: [src/commands/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.51.0/src/commands/run/index.ts)_
|
|
726
726
|
|
|
727
727
|
## `hereya unbootstrap INFRASTRUCTURETYPE`
|
|
728
728
|
|
|
@@ -747,7 +747,7 @@ EXAMPLES
|
|
|
747
747
|
$ hereya unbootstrap local
|
|
748
748
|
```
|
|
749
749
|
|
|
750
|
-
_See code: [src/commands/unbootstrap/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
750
|
+
_See code: [src/commands/unbootstrap/index.ts](https://github.com/hereya/hereya-cli/blob/v0.51.0/src/commands/unbootstrap/index.ts)_
|
|
751
751
|
|
|
752
752
|
## `hereya undeploy`
|
|
753
753
|
|
|
@@ -772,7 +772,7 @@ EXAMPLES
|
|
|
772
772
|
$ hereya undeploy
|
|
773
773
|
```
|
|
774
774
|
|
|
775
|
-
_See code: [src/commands/undeploy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
775
|
+
_See code: [src/commands/undeploy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.51.0/src/commands/undeploy/index.ts)_
|
|
776
776
|
|
|
777
777
|
## `hereya up`
|
|
778
778
|
|
|
@@ -799,7 +799,7 @@ EXAMPLES
|
|
|
799
799
|
$ hereya up
|
|
800
800
|
```
|
|
801
801
|
|
|
802
|
-
_See code: [src/commands/up/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
802
|
+
_See code: [src/commands/up/index.ts](https://github.com/hereya/hereya-cli/blob/v0.51.0/src/commands/up/index.ts)_
|
|
803
803
|
|
|
804
804
|
## `hereya workspace create NAME`
|
|
805
805
|
|
|
@@ -823,7 +823,7 @@ EXAMPLES
|
|
|
823
823
|
$ hereya workspace create dev
|
|
824
824
|
```
|
|
825
825
|
|
|
826
|
-
_See code: [src/commands/workspace/create/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
826
|
+
_See code: [src/commands/workspace/create/index.ts](https://github.com/hereya/hereya-cli/blob/v0.51.0/src/commands/workspace/create/index.ts)_
|
|
827
827
|
|
|
828
828
|
## `hereya workspace delete NAME`
|
|
829
829
|
|
|
@@ -843,7 +843,7 @@ EXAMPLES
|
|
|
843
843
|
$ hereya workspace delete dev
|
|
844
844
|
```
|
|
845
845
|
|
|
846
|
-
_See code: [src/commands/workspace/delete/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
846
|
+
_See code: [src/commands/workspace/delete/index.ts](https://github.com/hereya/hereya-cli/blob/v0.51.0/src/commands/workspace/delete/index.ts)_
|
|
847
847
|
|
|
848
848
|
## `hereya workspace env [NAME]`
|
|
849
849
|
|
|
@@ -869,7 +869,7 @@ EXAMPLES
|
|
|
869
869
|
$ hereya workspace env myEnv -w dev
|
|
870
870
|
```
|
|
871
871
|
|
|
872
|
-
_See code: [src/commands/workspace/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
872
|
+
_See code: [src/commands/workspace/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.51.0/src/commands/workspace/env/index.ts)_
|
|
873
873
|
|
|
874
874
|
## `hereya workspace env set`
|
|
875
875
|
|
|
@@ -893,7 +893,7 @@ EXAMPLES
|
|
|
893
893
|
$ hereya workspace env set -w my-workspace -n myVar -v my-value -i aws -s
|
|
894
894
|
```
|
|
895
895
|
|
|
896
|
-
_See code: [src/commands/workspace/env/set/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
896
|
+
_See code: [src/commands/workspace/env/set/index.ts](https://github.com/hereya/hereya-cli/blob/v0.51.0/src/commands/workspace/env/set/index.ts)_
|
|
897
897
|
|
|
898
898
|
## `hereya workspace env unset`
|
|
899
899
|
|
|
@@ -914,7 +914,7 @@ EXAMPLES
|
|
|
914
914
|
$ hereya workspace env unset -w my-workspace -n myVar
|
|
915
915
|
```
|
|
916
916
|
|
|
917
|
-
_See code: [src/commands/workspace/env/unset/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
917
|
+
_See code: [src/commands/workspace/env/unset/index.ts](https://github.com/hereya/hereya-cli/blob/v0.51.0/src/commands/workspace/env/unset/index.ts)_
|
|
918
918
|
|
|
919
919
|
## `hereya workspace install PACKAGE`
|
|
920
920
|
|
|
@@ -941,7 +941,7 @@ EXAMPLES
|
|
|
941
941
|
$ hereya workspace install hereya/aws-cognito
|
|
942
942
|
```
|
|
943
943
|
|
|
944
|
-
_See code: [src/commands/workspace/install/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
944
|
+
_See code: [src/commands/workspace/install/index.ts](https://github.com/hereya/hereya-cli/blob/v0.51.0/src/commands/workspace/install/index.ts)_
|
|
945
945
|
|
|
946
946
|
## `hereya workspace list`
|
|
947
947
|
|
|
@@ -958,7 +958,7 @@ EXAMPLES
|
|
|
958
958
|
$ hereya workspace list
|
|
959
959
|
```
|
|
960
960
|
|
|
961
|
-
_See code: [src/commands/workspace/list/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
961
|
+
_See code: [src/commands/workspace/list/index.ts](https://github.com/hereya/hereya-cli/blob/v0.51.0/src/commands/workspace/list/index.ts)_
|
|
962
962
|
|
|
963
963
|
## `hereya workspace set-profile PROFILE`
|
|
964
964
|
|
|
@@ -981,7 +981,7 @@ EXAMPLES
|
|
|
981
981
|
$ hereya workspace set-profile prod-profile -w production
|
|
982
982
|
```
|
|
983
983
|
|
|
984
|
-
_See code: [src/commands/workspace/set-profile/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
984
|
+
_See code: [src/commands/workspace/set-profile/index.ts](https://github.com/hereya/hereya-cli/blob/v0.51.0/src/commands/workspace/set-profile/index.ts)_
|
|
985
985
|
|
|
986
986
|
## `hereya workspace uninstall PACKAGE`
|
|
987
987
|
|
|
@@ -1008,5 +1008,5 @@ EXAMPLES
|
|
|
1008
1008
|
$ hereya workspace uninstall hereya/aws-cognito
|
|
1009
1009
|
```
|
|
1010
1010
|
|
|
1011
|
-
_See code: [src/commands/workspace/uninstall/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
1011
|
+
_See code: [src/commands/workspace/uninstall/index.ts](https://github.com/hereya/hereya-cli/blob/v0.51.0/src/commands/workspace/uninstall/index.ts)_
|
|
1012
1012
|
<!-- commandsstop -->
|
|
@@ -62,8 +62,12 @@ export default class FlowAdd extends Command {
|
|
|
62
62
|
project: loadConfigOutput.config.project,
|
|
63
63
|
projectRootDir,
|
|
64
64
|
});
|
|
65
|
+
// Import workspace resolution utility
|
|
66
|
+
const { resolveWorkspaceName } = await import('../../../lib/workspace-utils.js');
|
|
67
|
+
// Resolve mirror workspace name with org prefix
|
|
68
|
+
const mirrorWorkspace = resolveWorkspaceName(loadConfigOutput.config.workspace, loadConfigOutput.config.project);
|
|
65
69
|
// Create workspace with mirror
|
|
66
|
-
const createArgs = [workspaceName, '--mirror',
|
|
70
|
+
const createArgs = [workspaceName, '--mirror', mirrorWorkspace];
|
|
67
71
|
if (projectRootDir) {
|
|
68
72
|
createArgs.push('--chdir', projectRootDir);
|
|
69
73
|
}
|
|
@@ -63,8 +63,12 @@ export default class FlowDown extends Command {
|
|
|
63
63
|
project: loadConfigOutput.config.project,
|
|
64
64
|
projectRootDir,
|
|
65
65
|
});
|
|
66
|
+
// Import workspace resolution utility
|
|
67
|
+
const { resolveWorkspaceName } = await import('../../../lib/workspace-utils.js');
|
|
68
|
+
// Resolve mirror workspace name with org prefix
|
|
69
|
+
const mirrorWorkspace = resolveWorkspaceName(loadConfigOutput.config.workspace, loadConfigOutput.config.project);
|
|
66
70
|
// Create workspace with mirror
|
|
67
|
-
const createArgs = [workspaceName, '--mirror',
|
|
71
|
+
const createArgs = [workspaceName, '--mirror', mirrorWorkspace];
|
|
68
72
|
if (projectRootDir) {
|
|
69
73
|
createArgs.push('--chdir', projectRootDir);
|
|
70
74
|
}
|
|
@@ -51,8 +51,12 @@ export default class FlowRemove extends Command {
|
|
|
51
51
|
project: loadConfigOutput.config.project,
|
|
52
52
|
projectRootDir,
|
|
53
53
|
});
|
|
54
|
+
// Import workspace resolution utility
|
|
55
|
+
const { resolveWorkspaceName } = await import('../../../lib/workspace-utils.js');
|
|
56
|
+
// Resolve mirror workspace name with org prefix
|
|
57
|
+
const mirrorWorkspace = resolveWorkspaceName(loadConfigOutput.config.workspace, loadConfigOutput.config.project);
|
|
54
58
|
// Create workspace with mirror
|
|
55
|
-
const createArgs = [workspaceName, '--mirror',
|
|
59
|
+
const createArgs = [workspaceName, '--mirror', mirrorWorkspace];
|
|
56
60
|
if (projectRootDir) {
|
|
57
61
|
createArgs.push('--chdir', projectRootDir);
|
|
58
62
|
}
|
|
@@ -61,8 +61,12 @@ export default class FlowUp extends Command {
|
|
|
61
61
|
project: loadConfigOutput.config.project,
|
|
62
62
|
projectRootDir,
|
|
63
63
|
});
|
|
64
|
+
// Import workspace resolution utility
|
|
65
|
+
const { resolveWorkspaceName } = await import('../../../lib/workspace-utils.js');
|
|
66
|
+
// Resolve mirror workspace name with org prefix
|
|
67
|
+
const mirrorWorkspace = resolveWorkspaceName(loadConfigOutput.config.workspace, loadConfigOutput.config.project);
|
|
64
68
|
// Create workspace with mirror
|
|
65
|
-
const createArgs = [workspaceName, '--mirror',
|
|
69
|
+
const createArgs = [workspaceName, '--mirror', mirrorWorkspace];
|
|
66
70
|
if (projectRootDir) {
|
|
67
71
|
createArgs.push('--chdir', projectRootDir);
|
|
68
72
|
}
|
package/dist/lib/flow-utils.js
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { gitUtils } from './git-utils.js';
|
|
2
|
+
import { addOrgPrefix, extractOrgPrefix } from './org-utils.js';
|
|
2
3
|
export async function buildFlowWorkspaceName(options) {
|
|
3
4
|
const { pin, profile, project, projectRootDir } = options;
|
|
5
|
+
// Extract org prefix from project
|
|
6
|
+
const { name: projectName, org } = extractOrgPrefix(project);
|
|
4
7
|
// Get current git branch
|
|
5
8
|
const gitBranch = await gitUtils.getCurrentGitBranch(projectRootDir);
|
|
6
9
|
// Sanitize branch name
|
|
@@ -10,13 +13,15 @@ export async function buildFlowWorkspaceName(options) {
|
|
|
10
13
|
}
|
|
11
14
|
// Get commit SHA if pin is enabled
|
|
12
15
|
const commitSHA = pin ? await gitUtils.getShortCommitSHA(projectRootDir) : null;
|
|
13
|
-
// Build workspace name parts
|
|
14
|
-
const parts = [
|
|
16
|
+
// Build workspace name parts (without org prefix)
|
|
17
|
+
const parts = [projectName, sanitizedBranch];
|
|
15
18
|
if (profile) {
|
|
16
19
|
parts.push(profile);
|
|
17
20
|
}
|
|
18
21
|
if (commitSHA) {
|
|
19
22
|
parts.push(commitSHA);
|
|
20
23
|
}
|
|
21
|
-
|
|
24
|
+
// Join parts and add org prefix if present
|
|
25
|
+
const workspaceName = parts.join('---');
|
|
26
|
+
return addOrgPrefix(org, workspaceName);
|
|
22
27
|
}
|
package/oclif.manifest.json
CHANGED