hereya-cli 0.93.1 → 0.94.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 +69 -67
- package/dist/commands/devenv/install/index.d.ts +1 -0
- package/dist/commands/devenv/install/index.js +13 -3
- package/dist/commands/devenv/project/init/index.js +12 -5
- package/dist/commands/devenv/project/uninit/index.js +12 -5
- package/dist/commands/devenv/ssh/index.d.ts +0 -3
- package/dist/commands/devenv/ssh/index.js +10 -146
- package/dist/commands/init/index.js +1 -1
- package/dist/lib/devenv-wake.d.ts +13 -0
- package/dist/lib/devenv-wake.js +153 -0
- package/dist/lib/hereya-token.d.ts +25 -1
- package/dist/lib/hereya-token.js +58 -2
- package/oclif.manifest.json +146 -138
- package/package.json +1 -1
package/oclif.manifest.json
CHANGED
|
@@ -1750,6 +1750,14 @@
|
|
|
1750
1750
|
"allowNo": false,
|
|
1751
1751
|
"type": "boolean"
|
|
1752
1752
|
},
|
|
1753
|
+
"on-behalf-of": {
|
|
1754
|
+
"description": "email of an org member to install the devenv for; the baked Hereya token will carry their identity (requires OWNER or ADMIN role)",
|
|
1755
|
+
"name": "on-behalf-of",
|
|
1756
|
+
"required": false,
|
|
1757
|
+
"hasDynamicHelp": false,
|
|
1758
|
+
"multiple": false,
|
|
1759
|
+
"type": "option"
|
|
1760
|
+
},
|
|
1753
1761
|
"parameter": {
|
|
1754
1762
|
"char": "p",
|
|
1755
1763
|
"description": "parameter for the package, in the form of 'key=value'. Can be specified multiple times.",
|
|
@@ -2162,34 +2170,36 @@
|
|
|
2162
2170
|
"index.js"
|
|
2163
2171
|
]
|
|
2164
2172
|
},
|
|
2165
|
-
"flow:
|
|
2173
|
+
"flow:env": {
|
|
2166
2174
|
"aliases": [],
|
|
2167
|
-
"args": {
|
|
2168
|
-
|
|
2175
|
+
"args": {
|
|
2176
|
+
"name": {
|
|
2177
|
+
"description": "name of the env to display",
|
|
2178
|
+
"name": "name",
|
|
2179
|
+
"required": false
|
|
2180
|
+
}
|
|
2181
|
+
},
|
|
2182
|
+
"description": "Print project environment variables for a git branch-based workspace",
|
|
2169
2183
|
"examples": [
|
|
2170
2184
|
"<%= config.bin %> <%= command.id %>",
|
|
2171
|
-
"<%= config.bin %> <%= command.id %>
|
|
2185
|
+
"<%= config.bin %> <%= command.id %> myEnv",
|
|
2172
2186
|
"<%= config.bin %> <%= command.id %> --profile staging",
|
|
2173
|
-
"<%= config.bin %> <%= command.id %> --pin"
|
|
2187
|
+
"<%= config.bin %> <%= command.id %> --pin",
|
|
2188
|
+
"<%= config.bin %> <%= command.id %> -l"
|
|
2174
2189
|
],
|
|
2175
2190
|
"flags": {
|
|
2176
2191
|
"chdir": {
|
|
2177
|
-
"description": "
|
|
2192
|
+
"description": "project root directory",
|
|
2178
2193
|
"name": "chdir",
|
|
2179
2194
|
"required": false,
|
|
2180
2195
|
"hasDynamicHelp": false,
|
|
2181
2196
|
"multiple": false,
|
|
2182
2197
|
"type": "option"
|
|
2183
2198
|
},
|
|
2184
|
-
"
|
|
2185
|
-
"
|
|
2186
|
-
"
|
|
2187
|
-
"
|
|
2188
|
-
"type": "boolean"
|
|
2189
|
-
},
|
|
2190
|
-
"deploy": {
|
|
2191
|
-
"description": "destroy deployment companion packages",
|
|
2192
|
-
"name": "deploy",
|
|
2199
|
+
"list": {
|
|
2200
|
+
"char": "l",
|
|
2201
|
+
"description": "list only the env vars without values",
|
|
2202
|
+
"name": "list",
|
|
2193
2203
|
"required": false,
|
|
2194
2204
|
"allowNo": false,
|
|
2195
2205
|
"type": "boolean"
|
|
@@ -2208,20 +2218,11 @@
|
|
|
2208
2218
|
"hasDynamicHelp": false,
|
|
2209
2219
|
"multiple": false,
|
|
2210
2220
|
"type": "option"
|
|
2211
|
-
},
|
|
2212
|
-
"select": {
|
|
2213
|
-
"char": "s",
|
|
2214
|
-
"description": "select the packages to destroy",
|
|
2215
|
-
"name": "select",
|
|
2216
|
-
"default": [],
|
|
2217
|
-
"hasDynamicHelp": false,
|
|
2218
|
-
"multiple": true,
|
|
2219
|
-
"type": "option"
|
|
2220
2221
|
}
|
|
2221
2222
|
},
|
|
2222
2223
|
"hasDynamicHelp": false,
|
|
2223
2224
|
"hiddenAliases": [],
|
|
2224
|
-
"id": "flow:
|
|
2225
|
+
"id": "flow:env",
|
|
2225
2226
|
"pluginAlias": "hereya-cli",
|
|
2226
2227
|
"pluginName": "hereya-cli",
|
|
2227
2228
|
"pluginType": "core",
|
|
@@ -2232,40 +2233,38 @@
|
|
|
2232
2233
|
"dist",
|
|
2233
2234
|
"commands",
|
|
2234
2235
|
"flow",
|
|
2235
|
-
"
|
|
2236
|
+
"env",
|
|
2236
2237
|
"index.js"
|
|
2237
2238
|
]
|
|
2238
2239
|
},
|
|
2239
|
-
"flow:
|
|
2240
|
+
"flow:down": {
|
|
2240
2241
|
"aliases": [],
|
|
2241
|
-
"args": {
|
|
2242
|
-
|
|
2243
|
-
"description": "name of the env to display",
|
|
2244
|
-
"name": "name",
|
|
2245
|
-
"required": false
|
|
2246
|
-
}
|
|
2247
|
-
},
|
|
2248
|
-
"description": "Print project environment variables for a git branch-based workspace",
|
|
2242
|
+
"args": {},
|
|
2243
|
+
"description": "Create a git branch-based workspace and destroy all packages",
|
|
2249
2244
|
"examples": [
|
|
2250
2245
|
"<%= config.bin %> <%= command.id %>",
|
|
2251
|
-
"<%= config.bin %> <%= command.id %>
|
|
2246
|
+
"<%= config.bin %> <%= command.id %> --debug",
|
|
2252
2247
|
"<%= config.bin %> <%= command.id %> --profile staging",
|
|
2253
|
-
"<%= config.bin %> <%= command.id %> --pin"
|
|
2254
|
-
"<%= config.bin %> <%= command.id %> -l"
|
|
2248
|
+
"<%= config.bin %> <%= command.id %> --pin"
|
|
2255
2249
|
],
|
|
2256
2250
|
"flags": {
|
|
2257
2251
|
"chdir": {
|
|
2258
|
-
"description": "project root
|
|
2252
|
+
"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 ",
|
|
2259
2253
|
"name": "chdir",
|
|
2260
2254
|
"required": false,
|
|
2261
2255
|
"hasDynamicHelp": false,
|
|
2262
2256
|
"multiple": false,
|
|
2263
2257
|
"type": "option"
|
|
2264
2258
|
},
|
|
2265
|
-
"
|
|
2266
|
-
"
|
|
2267
|
-
"
|
|
2268
|
-
"
|
|
2259
|
+
"debug": {
|
|
2260
|
+
"description": "enable debug mode",
|
|
2261
|
+
"name": "debug",
|
|
2262
|
+
"allowNo": false,
|
|
2263
|
+
"type": "boolean"
|
|
2264
|
+
},
|
|
2265
|
+
"deploy": {
|
|
2266
|
+
"description": "destroy deployment companion packages",
|
|
2267
|
+
"name": "deploy",
|
|
2269
2268
|
"required": false,
|
|
2270
2269
|
"allowNo": false,
|
|
2271
2270
|
"type": "boolean"
|
|
@@ -2284,11 +2283,20 @@
|
|
|
2284
2283
|
"hasDynamicHelp": false,
|
|
2285
2284
|
"multiple": false,
|
|
2286
2285
|
"type": "option"
|
|
2286
|
+
},
|
|
2287
|
+
"select": {
|
|
2288
|
+
"char": "s",
|
|
2289
|
+
"description": "select the packages to destroy",
|
|
2290
|
+
"name": "select",
|
|
2291
|
+
"default": [],
|
|
2292
|
+
"hasDynamicHelp": false,
|
|
2293
|
+
"multiple": true,
|
|
2294
|
+
"type": "option"
|
|
2287
2295
|
}
|
|
2288
2296
|
},
|
|
2289
2297
|
"hasDynamicHelp": false,
|
|
2290
2298
|
"hiddenAliases": [],
|
|
2291
|
-
"id": "flow:
|
|
2299
|
+
"id": "flow:down",
|
|
2292
2300
|
"pluginAlias": "hereya-cli",
|
|
2293
2301
|
"pluginName": "hereya-cli",
|
|
2294
2302
|
"pluginType": "core",
|
|
@@ -2299,7 +2307,7 @@
|
|
|
2299
2307
|
"dist",
|
|
2300
2308
|
"commands",
|
|
2301
2309
|
"flow",
|
|
2302
|
-
"
|
|
2310
|
+
"down",
|
|
2303
2311
|
"index.js"
|
|
2304
2312
|
]
|
|
2305
2313
|
},
|
|
@@ -2361,34 +2369,32 @@
|
|
|
2361
2369
|
"index.js"
|
|
2362
2370
|
]
|
|
2363
2371
|
},
|
|
2364
|
-
"flow:
|
|
2372
|
+
"flow:remove": {
|
|
2365
2373
|
"aliases": [],
|
|
2366
2374
|
"args": {
|
|
2367
|
-
"
|
|
2368
|
-
"description": "
|
|
2369
|
-
"name": "
|
|
2375
|
+
"package": {
|
|
2376
|
+
"description": "Remove a previously added package.",
|
|
2377
|
+
"name": "package",
|
|
2370
2378
|
"required": true
|
|
2371
2379
|
}
|
|
2372
2380
|
},
|
|
2373
|
-
"description": "
|
|
2381
|
+
"description": "Remove a package from the project in a git branch-based workspace",
|
|
2374
2382
|
"examples": [
|
|
2375
|
-
"<%= config.bin %> <%= command.id %>
|
|
2376
|
-
"<%= config.bin %> <%= command.id %> --profile staging
|
|
2377
|
-
"<%= config.bin %> <%= command.id %> --pin -- npm test"
|
|
2383
|
+
"<%= config.bin %> <%= command.id %> cloudy/docker_postgres",
|
|
2384
|
+
"<%= config.bin %> <%= command.id %> cloudy/docker_postgres --profile staging"
|
|
2378
2385
|
],
|
|
2379
2386
|
"flags": {
|
|
2380
2387
|
"chdir": {
|
|
2381
|
-
"description": "
|
|
2388
|
+
"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 ",
|
|
2382
2389
|
"name": "chdir",
|
|
2383
2390
|
"required": false,
|
|
2384
2391
|
"hasDynamicHelp": false,
|
|
2385
2392
|
"multiple": false,
|
|
2386
2393
|
"type": "option"
|
|
2387
2394
|
},
|
|
2388
|
-
"
|
|
2389
|
-
"description": "
|
|
2390
|
-
"name": "
|
|
2391
|
-
"required": false,
|
|
2395
|
+
"debug": {
|
|
2396
|
+
"description": "enable debug mode",
|
|
2397
|
+
"name": "debug",
|
|
2392
2398
|
"allowNo": false,
|
|
2393
2399
|
"type": "boolean"
|
|
2394
2400
|
},
|
|
@@ -2403,47 +2409,49 @@
|
|
|
2403
2409
|
},
|
|
2404
2410
|
"hasDynamicHelp": false,
|
|
2405
2411
|
"hiddenAliases": [],
|
|
2406
|
-
"id": "flow:
|
|
2412
|
+
"id": "flow:remove",
|
|
2407
2413
|
"pluginAlias": "hereya-cli",
|
|
2408
2414
|
"pluginName": "hereya-cli",
|
|
2409
2415
|
"pluginType": "core",
|
|
2410
|
-
"strict":
|
|
2416
|
+
"strict": true,
|
|
2411
2417
|
"enableJsonFlag": false,
|
|
2412
2418
|
"isESM": true,
|
|
2413
2419
|
"relativePath": [
|
|
2414
2420
|
"dist",
|
|
2415
2421
|
"commands",
|
|
2416
2422
|
"flow",
|
|
2417
|
-
"
|
|
2423
|
+
"remove",
|
|
2418
2424
|
"index.js"
|
|
2419
2425
|
]
|
|
2420
2426
|
},
|
|
2421
|
-
"flow:
|
|
2427
|
+
"flow:run": {
|
|
2422
2428
|
"aliases": [],
|
|
2423
2429
|
"args": {
|
|
2424
|
-
"
|
|
2425
|
-
"description": "
|
|
2426
|
-
"name": "
|
|
2430
|
+
"cmd": {
|
|
2431
|
+
"description": "command to run",
|
|
2432
|
+
"name": "cmd",
|
|
2427
2433
|
"required": true
|
|
2428
2434
|
}
|
|
2429
2435
|
},
|
|
2430
|
-
"description": "
|
|
2436
|
+
"description": "Run a command with hereya env vars in a git branch-based workspace",
|
|
2431
2437
|
"examples": [
|
|
2432
|
-
"<%= config.bin %> <%= command.id %>
|
|
2433
|
-
"<%= config.bin %> <%= command.id %>
|
|
2438
|
+
"<%= config.bin %> <%= command.id %> -- npm run dev",
|
|
2439
|
+
"<%= config.bin %> <%= command.id %> --profile staging -- node index.js",
|
|
2440
|
+
"<%= config.bin %> <%= command.id %> --pin -- npm test"
|
|
2434
2441
|
],
|
|
2435
2442
|
"flags": {
|
|
2436
2443
|
"chdir": {
|
|
2437
|
-
"description": "
|
|
2444
|
+
"description": "directory to run command in",
|
|
2438
2445
|
"name": "chdir",
|
|
2439
2446
|
"required": false,
|
|
2440
2447
|
"hasDynamicHelp": false,
|
|
2441
2448
|
"multiple": false,
|
|
2442
2449
|
"type": "option"
|
|
2443
2450
|
},
|
|
2444
|
-
"
|
|
2445
|
-
"description": "
|
|
2446
|
-
"name": "
|
|
2451
|
+
"pin": {
|
|
2452
|
+
"description": "append git commit SHA to workspace name for commit-specific isolation",
|
|
2453
|
+
"name": "pin",
|
|
2454
|
+
"required": false,
|
|
2447
2455
|
"allowNo": false,
|
|
2448
2456
|
"type": "boolean"
|
|
2449
2457
|
},
|
|
@@ -2458,18 +2466,18 @@
|
|
|
2458
2466
|
},
|
|
2459
2467
|
"hasDynamicHelp": false,
|
|
2460
2468
|
"hiddenAliases": [],
|
|
2461
|
-
"id": "flow:
|
|
2469
|
+
"id": "flow:run",
|
|
2462
2470
|
"pluginAlias": "hereya-cli",
|
|
2463
2471
|
"pluginName": "hereya-cli",
|
|
2464
2472
|
"pluginType": "core",
|
|
2465
|
-
"strict":
|
|
2473
|
+
"strict": false,
|
|
2466
2474
|
"enableJsonFlag": false,
|
|
2467
2475
|
"isESM": true,
|
|
2468
2476
|
"relativePath": [
|
|
2469
2477
|
"dist",
|
|
2470
2478
|
"commands",
|
|
2471
2479
|
"flow",
|
|
2472
|
-
"
|
|
2480
|
+
"run",
|
|
2473
2481
|
"index.js"
|
|
2474
2482
|
]
|
|
2475
2483
|
},
|
|
@@ -2603,56 +2611,6 @@
|
|
|
2603
2611
|
"index.js"
|
|
2604
2612
|
]
|
|
2605
2613
|
},
|
|
2606
|
-
"workspace:env": {
|
|
2607
|
-
"aliases": [],
|
|
2608
|
-
"args": {
|
|
2609
|
-
"name": {
|
|
2610
|
-
"description": "name of the env to display",
|
|
2611
|
-
"name": "name",
|
|
2612
|
-
"required": false
|
|
2613
|
-
}
|
|
2614
|
-
},
|
|
2615
|
-
"description": "Print workspace env vars.",
|
|
2616
|
-
"examples": [
|
|
2617
|
-
"<%= config.bin %> <%= command.id %> -w dev",
|
|
2618
|
-
"<%= config.bin %> <%= command.id %> myEnv -w dev"
|
|
2619
|
-
],
|
|
2620
|
-
"flags": {
|
|
2621
|
-
"list": {
|
|
2622
|
-
"char": "l",
|
|
2623
|
-
"description": "list only the env vars without values",
|
|
2624
|
-
"name": "list",
|
|
2625
|
-
"required": false,
|
|
2626
|
-
"allowNo": false,
|
|
2627
|
-
"type": "boolean"
|
|
2628
|
-
},
|
|
2629
|
-
"workspace": {
|
|
2630
|
-
"char": "w",
|
|
2631
|
-
"description": "name of the workspace to print env vars for",
|
|
2632
|
-
"name": "workspace",
|
|
2633
|
-
"required": true,
|
|
2634
|
-
"hasDynamicHelp": false,
|
|
2635
|
-
"multiple": false,
|
|
2636
|
-
"type": "option"
|
|
2637
|
-
}
|
|
2638
|
-
},
|
|
2639
|
-
"hasDynamicHelp": false,
|
|
2640
|
-
"hiddenAliases": [],
|
|
2641
|
-
"id": "workspace:env",
|
|
2642
|
-
"pluginAlias": "hereya-cli",
|
|
2643
|
-
"pluginName": "hereya-cli",
|
|
2644
|
-
"pluginType": "core",
|
|
2645
|
-
"strict": true,
|
|
2646
|
-
"enableJsonFlag": false,
|
|
2647
|
-
"isESM": true,
|
|
2648
|
-
"relativePath": [
|
|
2649
|
-
"dist",
|
|
2650
|
-
"commands",
|
|
2651
|
-
"workspace",
|
|
2652
|
-
"env",
|
|
2653
|
-
"index.js"
|
|
2654
|
-
]
|
|
2655
|
-
},
|
|
2656
2614
|
"workspace:delete": {
|
|
2657
2615
|
"aliases": [],
|
|
2658
2616
|
"args": {
|
|
@@ -2684,21 +2642,34 @@
|
|
|
2684
2642
|
"index.js"
|
|
2685
2643
|
]
|
|
2686
2644
|
},
|
|
2687
|
-
"workspace:
|
|
2645
|
+
"workspace:env": {
|
|
2688
2646
|
"aliases": [],
|
|
2689
|
-
"args": {
|
|
2690
|
-
|
|
2647
|
+
"args": {
|
|
2648
|
+
"name": {
|
|
2649
|
+
"description": "name of the env to display",
|
|
2650
|
+
"name": "name",
|
|
2651
|
+
"required": false
|
|
2652
|
+
}
|
|
2653
|
+
},
|
|
2654
|
+
"description": "Print workspace env vars.",
|
|
2691
2655
|
"examples": [
|
|
2692
|
-
"<%= config.bin %> <%= command.id %>",
|
|
2693
|
-
"<%= config.bin %> <%= command.id %>
|
|
2694
|
-
"<%= config.bin %> <%= command.id %> --org personal"
|
|
2656
|
+
"<%= config.bin %> <%= command.id %> -w dev",
|
|
2657
|
+
"<%= config.bin %> <%= command.id %> myEnv -w dev"
|
|
2695
2658
|
],
|
|
2696
2659
|
"flags": {
|
|
2697
|
-
"
|
|
2698
|
-
"char": "
|
|
2699
|
-
"description": "
|
|
2700
|
-
"name": "
|
|
2660
|
+
"list": {
|
|
2661
|
+
"char": "l",
|
|
2662
|
+
"description": "list only the env vars without values",
|
|
2663
|
+
"name": "list",
|
|
2701
2664
|
"required": false,
|
|
2665
|
+
"allowNo": false,
|
|
2666
|
+
"type": "boolean"
|
|
2667
|
+
},
|
|
2668
|
+
"workspace": {
|
|
2669
|
+
"char": "w",
|
|
2670
|
+
"description": "name of the workspace to print env vars for",
|
|
2671
|
+
"name": "workspace",
|
|
2672
|
+
"required": true,
|
|
2702
2673
|
"hasDynamicHelp": false,
|
|
2703
2674
|
"multiple": false,
|
|
2704
2675
|
"type": "option"
|
|
@@ -2706,7 +2677,7 @@
|
|
|
2706
2677
|
},
|
|
2707
2678
|
"hasDynamicHelp": false,
|
|
2708
2679
|
"hiddenAliases": [],
|
|
2709
|
-
"id": "workspace:
|
|
2680
|
+
"id": "workspace:env",
|
|
2710
2681
|
"pluginAlias": "hereya-cli",
|
|
2711
2682
|
"pluginName": "hereya-cli",
|
|
2712
2683
|
"pluginType": "core",
|
|
@@ -2717,7 +2688,7 @@
|
|
|
2717
2688
|
"dist",
|
|
2718
2689
|
"commands",
|
|
2719
2690
|
"workspace",
|
|
2720
|
-
"
|
|
2691
|
+
"env",
|
|
2721
2692
|
"index.js"
|
|
2722
2693
|
]
|
|
2723
2694
|
},
|
|
@@ -2785,6 +2756,43 @@
|
|
|
2785
2756
|
"index.js"
|
|
2786
2757
|
]
|
|
2787
2758
|
},
|
|
2759
|
+
"workspace:list": {
|
|
2760
|
+
"aliases": [],
|
|
2761
|
+
"args": {},
|
|
2762
|
+
"description": "List workspaces.",
|
|
2763
|
+
"examples": [
|
|
2764
|
+
"<%= config.bin %> <%= command.id %>",
|
|
2765
|
+
"<%= config.bin %> <%= command.id %> --org my-org",
|
|
2766
|
+
"<%= config.bin %> <%= command.id %> --org personal"
|
|
2767
|
+
],
|
|
2768
|
+
"flags": {
|
|
2769
|
+
"org": {
|
|
2770
|
+
"char": "o",
|
|
2771
|
+
"description": "Filter workspaces by organization name. Use \"personal\" to show only your personal workspaces.",
|
|
2772
|
+
"name": "org",
|
|
2773
|
+
"required": false,
|
|
2774
|
+
"hasDynamicHelp": false,
|
|
2775
|
+
"multiple": false,
|
|
2776
|
+
"type": "option"
|
|
2777
|
+
}
|
|
2778
|
+
},
|
|
2779
|
+
"hasDynamicHelp": false,
|
|
2780
|
+
"hiddenAliases": [],
|
|
2781
|
+
"id": "workspace:list",
|
|
2782
|
+
"pluginAlias": "hereya-cli",
|
|
2783
|
+
"pluginName": "hereya-cli",
|
|
2784
|
+
"pluginType": "core",
|
|
2785
|
+
"strict": true,
|
|
2786
|
+
"enableJsonFlag": false,
|
|
2787
|
+
"isESM": true,
|
|
2788
|
+
"relativePath": [
|
|
2789
|
+
"dist",
|
|
2790
|
+
"commands",
|
|
2791
|
+
"workspace",
|
|
2792
|
+
"list",
|
|
2793
|
+
"index.js"
|
|
2794
|
+
]
|
|
2795
|
+
},
|
|
2788
2796
|
"workspace:set-profile": {
|
|
2789
2797
|
"aliases": [],
|
|
2790
2798
|
"args": {
|
|
@@ -3361,5 +3369,5 @@
|
|
|
3361
3369
|
]
|
|
3362
3370
|
}
|
|
3363
3371
|
},
|
|
3364
|
-
"version": "0.
|
|
3372
|
+
"version": "0.94.0"
|
|
3365
3373
|
}
|