hereya-cli 0.45.0 → 0.47.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 +135 -36
- package/dist/backend/cloud/cloud-backend.d.ts +2 -1
- package/dist/backend/cloud/cloud-backend.js +18 -0
- package/dist/backend/common.d.ts +12 -0
- package/dist/backend/file-storage/local.js +10 -2
- package/dist/backend/file.d.ts +2 -1
- package/dist/backend/file.js +17 -0
- package/dist/commands/add/index.d.ts +1 -0
- package/dist/commands/add/index.js +12 -5
- package/dist/commands/delete-state/index.d.ts +10 -0
- package/dist/commands/delete-state/index.js +49 -0
- package/dist/commands/env/set/index.js +4 -2
- package/dist/commands/flow/down/index.d.ts +14 -0
- package/dist/commands/flow/down/index.js +110 -0
- package/dist/commands/flow/up/index.d.ts +14 -0
- package/dist/commands/flow/up/index.js +99 -0
- package/dist/commands/remove/index.d.ts +1 -0
- package/dist/commands/remove/index.js +12 -5
- package/dist/lib/env/index.js +3 -1
- package/dist/lib/git-utils.d.ts +29 -0
- package/dist/lib/git-utils.js +62 -0
- package/oclif.manifest.json +210 -1
- package/package.json +1 -1
package/oclif.manifest.json
CHANGED
|
@@ -36,6 +36,15 @@
|
|
|
36
36
|
"hasDynamicHelp": false,
|
|
37
37
|
"multiple": true,
|
|
38
38
|
"type": "option"
|
|
39
|
+
},
|
|
40
|
+
"workspace": {
|
|
41
|
+
"char": "w",
|
|
42
|
+
"description": "name of the workspace to add the package to (defaults to current workspace)",
|
|
43
|
+
"name": "workspace",
|
|
44
|
+
"required": false,
|
|
45
|
+
"hasDynamicHelp": false,
|
|
46
|
+
"multiple": false,
|
|
47
|
+
"type": "option"
|
|
39
48
|
}
|
|
40
49
|
},
|
|
41
50
|
"hasDynamicHelp": false,
|
|
@@ -93,6 +102,49 @@
|
|
|
93
102
|
"index.js"
|
|
94
103
|
]
|
|
95
104
|
},
|
|
105
|
+
"delete-state": {
|
|
106
|
+
"aliases": [],
|
|
107
|
+
"args": {},
|
|
108
|
+
"description": "Delete the remote state of a project for a given workspace",
|
|
109
|
+
"examples": [
|
|
110
|
+
"<%= config.bin %> <%= command.id %> -w dev",
|
|
111
|
+
"<%= config.bin %> <%= command.id %> --workspace staging"
|
|
112
|
+
],
|
|
113
|
+
"flags": {
|
|
114
|
+
"chdir": {
|
|
115
|
+
"description": "\n Directory where the command will be executed.\n If not specified, it defaults to the current working directory.\n Alternatively, you can define the project root by setting the HEREYA_PROJECT_ROOT_DIR environment variable.\n ",
|
|
116
|
+
"name": "chdir",
|
|
117
|
+
"required": false,
|
|
118
|
+
"hasDynamicHelp": false,
|
|
119
|
+
"multiple": false,
|
|
120
|
+
"type": "option"
|
|
121
|
+
},
|
|
122
|
+
"workspace": {
|
|
123
|
+
"char": "w",
|
|
124
|
+
"description": "workspace name",
|
|
125
|
+
"name": "workspace",
|
|
126
|
+
"required": true,
|
|
127
|
+
"hasDynamicHelp": false,
|
|
128
|
+
"multiple": false,
|
|
129
|
+
"type": "option"
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
"hasDynamicHelp": false,
|
|
133
|
+
"hiddenAliases": [],
|
|
134
|
+
"id": "delete-state",
|
|
135
|
+
"pluginAlias": "hereya-cli",
|
|
136
|
+
"pluginName": "hereya-cli",
|
|
137
|
+
"pluginType": "core",
|
|
138
|
+
"strict": true,
|
|
139
|
+
"enableJsonFlag": false,
|
|
140
|
+
"isESM": true,
|
|
141
|
+
"relativePath": [
|
|
142
|
+
"dist",
|
|
143
|
+
"commands",
|
|
144
|
+
"delete-state",
|
|
145
|
+
"index.js"
|
|
146
|
+
]
|
|
147
|
+
},
|
|
96
148
|
"deploy": {
|
|
97
149
|
"aliases": [],
|
|
98
150
|
"args": {},
|
|
@@ -482,6 +534,15 @@
|
|
|
482
534
|
"name": "debug",
|
|
483
535
|
"allowNo": false,
|
|
484
536
|
"type": "boolean"
|
|
537
|
+
},
|
|
538
|
+
"workspace": {
|
|
539
|
+
"char": "w",
|
|
540
|
+
"description": "name of the workspace to remove the package from (defaults to current workspace)",
|
|
541
|
+
"name": "workspace",
|
|
542
|
+
"required": false,
|
|
543
|
+
"hasDynamicHelp": false,
|
|
544
|
+
"multiple": false,
|
|
545
|
+
"type": "option"
|
|
485
546
|
}
|
|
486
547
|
},
|
|
487
548
|
"hasDynamicHelp": false,
|
|
@@ -878,6 +939,154 @@
|
|
|
878
939
|
"index.js"
|
|
879
940
|
]
|
|
880
941
|
},
|
|
942
|
+
"flow:down": {
|
|
943
|
+
"aliases": [],
|
|
944
|
+
"args": {},
|
|
945
|
+
"description": "Create a git branch-based workspace and destroy all packages",
|
|
946
|
+
"examples": [
|
|
947
|
+
"<%= config.bin %> <%= command.id %>",
|
|
948
|
+
"<%= config.bin %> <%= command.id %> --debug",
|
|
949
|
+
"<%= config.bin %> <%= command.id %> --profile staging",
|
|
950
|
+
"<%= config.bin %> <%= command.id %> --pin"
|
|
951
|
+
],
|
|
952
|
+
"flags": {
|
|
953
|
+
"chdir": {
|
|
954
|
+
"description": "\n Directory where the command will be executed.\n If not specified, it defaults to the current working directory.\n Alternatively, you can define the project root by setting the HEREYA_PROJECT_ROOT_DIR environment variable.\n ",
|
|
955
|
+
"name": "chdir",
|
|
956
|
+
"required": false,
|
|
957
|
+
"hasDynamicHelp": false,
|
|
958
|
+
"multiple": false,
|
|
959
|
+
"type": "option"
|
|
960
|
+
},
|
|
961
|
+
"debug": {
|
|
962
|
+
"description": "enable debug mode",
|
|
963
|
+
"name": "debug",
|
|
964
|
+
"allowNo": false,
|
|
965
|
+
"type": "boolean"
|
|
966
|
+
},
|
|
967
|
+
"deploy": {
|
|
968
|
+
"description": "destroy deployment companion packages",
|
|
969
|
+
"name": "deploy",
|
|
970
|
+
"required": false,
|
|
971
|
+
"allowNo": false,
|
|
972
|
+
"type": "boolean"
|
|
973
|
+
},
|
|
974
|
+
"pin": {
|
|
975
|
+
"description": "append git commit SHA to workspace name for commit-specific isolation",
|
|
976
|
+
"name": "pin",
|
|
977
|
+
"required": false,
|
|
978
|
+
"allowNo": false,
|
|
979
|
+
"type": "boolean"
|
|
980
|
+
},
|
|
981
|
+
"profile": {
|
|
982
|
+
"description": "profile to use for the workspace (will be appended to workspace name)",
|
|
983
|
+
"name": "profile",
|
|
984
|
+
"required": false,
|
|
985
|
+
"hasDynamicHelp": false,
|
|
986
|
+
"multiple": false,
|
|
987
|
+
"type": "option"
|
|
988
|
+
},
|
|
989
|
+
"select": {
|
|
990
|
+
"char": "s",
|
|
991
|
+
"description": "select the packages to destroy",
|
|
992
|
+
"name": "select",
|
|
993
|
+
"default": [],
|
|
994
|
+
"hasDynamicHelp": false,
|
|
995
|
+
"multiple": true,
|
|
996
|
+
"type": "option"
|
|
997
|
+
}
|
|
998
|
+
},
|
|
999
|
+
"hasDynamicHelp": false,
|
|
1000
|
+
"hiddenAliases": [],
|
|
1001
|
+
"id": "flow:down",
|
|
1002
|
+
"pluginAlias": "hereya-cli",
|
|
1003
|
+
"pluginName": "hereya-cli",
|
|
1004
|
+
"pluginType": "core",
|
|
1005
|
+
"strict": true,
|
|
1006
|
+
"enableJsonFlag": false,
|
|
1007
|
+
"isESM": true,
|
|
1008
|
+
"relativePath": [
|
|
1009
|
+
"dist",
|
|
1010
|
+
"commands",
|
|
1011
|
+
"flow",
|
|
1012
|
+
"down",
|
|
1013
|
+
"index.js"
|
|
1014
|
+
]
|
|
1015
|
+
},
|
|
1016
|
+
"flow:up": {
|
|
1017
|
+
"aliases": [],
|
|
1018
|
+
"args": {},
|
|
1019
|
+
"description": "Create a git branch-based workspace and provision all packages",
|
|
1020
|
+
"examples": [
|
|
1021
|
+
"<%= config.bin %> <%= command.id %>",
|
|
1022
|
+
"<%= config.bin %> <%= command.id %> --debug",
|
|
1023
|
+
"<%= config.bin %> <%= command.id %> --profile staging",
|
|
1024
|
+
"<%= config.bin %> <%= command.id %> --pin"
|
|
1025
|
+
],
|
|
1026
|
+
"flags": {
|
|
1027
|
+
"chdir": {
|
|
1028
|
+
"description": "\n Directory where the command will be executed.\n If not specified, it defaults to the current working directory.\n Alternatively, you can define the project root by setting the HEREYA_PROJECT_ROOT_DIR environment variable.\n ",
|
|
1029
|
+
"name": "chdir",
|
|
1030
|
+
"required": false,
|
|
1031
|
+
"hasDynamicHelp": false,
|
|
1032
|
+
"multiple": false,
|
|
1033
|
+
"type": "option"
|
|
1034
|
+
},
|
|
1035
|
+
"debug": {
|
|
1036
|
+
"description": "enable debug mode",
|
|
1037
|
+
"name": "debug",
|
|
1038
|
+
"allowNo": false,
|
|
1039
|
+
"type": "boolean"
|
|
1040
|
+
},
|
|
1041
|
+
"deploy": {
|
|
1042
|
+
"description": "provision deployment companion packages",
|
|
1043
|
+
"name": "deploy",
|
|
1044
|
+
"required": false,
|
|
1045
|
+
"allowNo": false,
|
|
1046
|
+
"type": "boolean"
|
|
1047
|
+
},
|
|
1048
|
+
"pin": {
|
|
1049
|
+
"description": "append git commit SHA to workspace name for commit-specific isolation",
|
|
1050
|
+
"name": "pin",
|
|
1051
|
+
"required": false,
|
|
1052
|
+
"allowNo": false,
|
|
1053
|
+
"type": "boolean"
|
|
1054
|
+
},
|
|
1055
|
+
"profile": {
|
|
1056
|
+
"description": "profile to use for the workspace (will be appended to workspace name)",
|
|
1057
|
+
"name": "profile",
|
|
1058
|
+
"required": false,
|
|
1059
|
+
"hasDynamicHelp": false,
|
|
1060
|
+
"multiple": false,
|
|
1061
|
+
"type": "option"
|
|
1062
|
+
},
|
|
1063
|
+
"select": {
|
|
1064
|
+
"char": "s",
|
|
1065
|
+
"description": "select the packages to provision",
|
|
1066
|
+
"name": "select",
|
|
1067
|
+
"default": [],
|
|
1068
|
+
"hasDynamicHelp": false,
|
|
1069
|
+
"multiple": true,
|
|
1070
|
+
"type": "option"
|
|
1071
|
+
}
|
|
1072
|
+
},
|
|
1073
|
+
"hasDynamicHelp": false,
|
|
1074
|
+
"hiddenAliases": [],
|
|
1075
|
+
"id": "flow:up",
|
|
1076
|
+
"pluginAlias": "hereya-cli",
|
|
1077
|
+
"pluginName": "hereya-cli",
|
|
1078
|
+
"pluginType": "core",
|
|
1079
|
+
"strict": true,
|
|
1080
|
+
"enableJsonFlag": false,
|
|
1081
|
+
"isESM": true,
|
|
1082
|
+
"relativePath": [
|
|
1083
|
+
"dist",
|
|
1084
|
+
"commands",
|
|
1085
|
+
"flow",
|
|
1086
|
+
"up",
|
|
1087
|
+
"index.js"
|
|
1088
|
+
]
|
|
1089
|
+
},
|
|
881
1090
|
"workspace:create": {
|
|
882
1091
|
"aliases": [],
|
|
883
1092
|
"args": {
|
|
@@ -1317,5 +1526,5 @@
|
|
|
1317
1526
|
]
|
|
1318
1527
|
}
|
|
1319
1528
|
},
|
|
1320
|
-
"version": "0.
|
|
1529
|
+
"version": "0.47.0"
|
|
1321
1530
|
}
|