@faable/faable 4.1.0 → 4.2.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.
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { apps_list } from '../inspect/list.js';
|
|
2
|
+
|
|
3
|
+
// `faable deploy apps list` — same shape as `secrets list`, `domains list` and
|
|
4
|
+
// `waf list`: the resource, then the verb.
|
|
5
|
+
const apps = {
|
|
6
|
+
command: 'apps <command>',
|
|
7
|
+
describe: 'Apps of the active project',
|
|
8
|
+
builder: yargs => yargs.command(apps_list).demandCommand(1, 'Specify an apps command: list'),
|
|
9
|
+
handler: () => {
|
|
10
|
+
// Unreachable: demandCommand(1) either routes to a subcommand or fails
|
|
11
|
+
// through the global .fail() in src/index.ts.
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
// The older `faable deploy list`, kept working but out of the help: one
|
|
15
|
+
// documented way to list apps.
|
|
16
|
+
const apps_list_legacy = {
|
|
17
|
+
...apps_list,
|
|
18
|
+
describe: false
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export { apps, apps_list_legacy };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { link } from '../link/index.js';
|
|
2
|
+
import { apps, apps_list_legacy } from './apps/index.js';
|
|
2
3
|
import { domains } from './domains/index.js';
|
|
3
4
|
import { capture_deploy_help } from './help.js';
|
|
4
5
|
import { cancel } from './inspect/cancel.js';
|
|
5
6
|
import { deployments } from './inspect/deployments.js';
|
|
6
7
|
import { inspect } from './inspect/inspect.js';
|
|
7
|
-
import { apps_list } from './inspect/list.js';
|
|
8
8
|
import { logs } from './inspect/logs.js';
|
|
9
9
|
import { open_app } from './inspect/open.js';
|
|
10
10
|
import { redeploy } from './inspect/redeploy.js';
|
|
@@ -33,12 +33,13 @@ const deploy = {
|
|
|
33
33
|
describe: 'Deploy a faable app and manage it (secrets, domains, logs, deployments…)',
|
|
34
34
|
builder: yargs => capture_deploy_help(yargs
|
|
35
35
|
.command(launch)
|
|
36
|
+
.command(apps)
|
|
36
37
|
.command(secrets)
|
|
37
38
|
.command(domains)
|
|
38
39
|
.command(waf)
|
|
39
40
|
.command(logs)
|
|
40
41
|
.command(status)
|
|
41
|
-
.command(
|
|
42
|
+
.command(apps_list_legacy)
|
|
42
43
|
.command(deployments)
|
|
43
44
|
.command(inspect)
|
|
44
45
|
.command(open_app)
|