@xano/cli 0.0.95-beta.9 → 1.0.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 +111 -70
- package/dist/base-command.d.ts +16 -1
- package/dist/base-command.js +57 -5
- package/dist/commands/auth/index.d.ts +1 -0
- package/dist/commands/auth/index.js +15 -10
- package/dist/commands/branch/create/index.d.ts +4 -1
- package/dist/commands/branch/create/index.js +22 -21
- package/dist/commands/branch/delete/index.d.ts +1 -0
- package/dist/commands/branch/delete/index.js +1 -4
- package/dist/commands/branch/edit/index.d.ts +1 -0
- package/dist/commands/branch/edit/index.js +1 -4
- package/dist/commands/branch/get/index.d.ts +1 -0
- package/dist/commands/branch/get/index.js +1 -4
- package/dist/commands/branch/list/index.d.ts +2 -6
- package/dist/commands/branch/list/index.js +13 -17
- package/dist/commands/branch/set_live/index.d.ts +1 -0
- package/dist/commands/branch/set_live/index.js +1 -4
- package/dist/commands/function/create/index.d.ts +1 -0
- package/dist/commands/function/create/index.js +1 -2
- package/dist/commands/function/edit/index.d.ts +1 -0
- package/dist/commands/function/edit/index.js +1 -2
- package/dist/commands/function/get/index.d.ts +1 -0
- package/dist/commands/function/get/index.js +1 -4
- package/dist/commands/function/list/index.d.ts +1 -0
- package/dist/commands/function/list/index.js +1 -4
- package/dist/commands/platform/get/index.d.ts +1 -0
- package/dist/commands/platform/get/index.js +1 -4
- package/dist/commands/platform/list/index.d.ts +1 -0
- package/dist/commands/platform/list/index.js +1 -4
- package/dist/commands/profile/create/index.d.ts +1 -0
- package/dist/commands/profile/create/index.js +10 -4
- package/dist/commands/profile/delete/index.d.ts +1 -0
- package/dist/commands/profile/delete/index.js +8 -4
- package/dist/commands/profile/edit/index.d.ts +1 -0
- package/dist/commands/profile/edit/index.js +1 -4
- package/dist/commands/profile/get/index.d.ts +3 -0
- package/dist/commands/profile/get/index.js +12 -5
- package/dist/commands/profile/list/index.d.ts +1 -0
- package/dist/commands/profile/list/index.js +8 -4
- package/dist/commands/profile/me/index.d.ts +1 -0
- package/dist/commands/profile/me/index.js +1 -4
- package/dist/commands/profile/set/index.d.ts +3 -0
- package/dist/commands/profile/set/index.js +12 -6
- package/dist/commands/profile/token/index.d.ts +3 -0
- package/dist/commands/profile/token/index.js +12 -5
- package/dist/commands/profile/wizard/index.d.ts +1 -0
- package/dist/commands/profile/wizard/index.js +13 -9
- package/dist/commands/profile/workspace/index.d.ts +3 -0
- package/dist/commands/profile/workspace/index.js +12 -5
- package/dist/commands/profile/workspace/set/index.d.ts +1 -0
- package/dist/commands/profile/workspace/set/index.js +1 -3
- package/dist/commands/release/create/index.d.ts +4 -1
- package/dist/commands/release/create/index.js +12 -14
- package/dist/commands/release/delete/index.d.ts +1 -0
- package/dist/commands/release/delete/index.js +1 -4
- package/dist/commands/release/deploy/index.d.ts +3 -0
- package/dist/commands/release/deploy/index.js +31 -1
- package/dist/commands/release/edit/index.d.ts +1 -0
- package/dist/commands/release/edit/index.js +1 -4
- package/dist/commands/release/export/index.d.ts +1 -0
- package/dist/commands/release/export/index.js +1 -3
- package/dist/commands/release/get/index.d.ts +1 -0
- package/dist/commands/release/get/index.js +1 -4
- package/dist/commands/release/import/index.d.ts +1 -0
- package/dist/commands/release/import/index.js +1 -3
- package/dist/commands/release/list/index.d.ts +1 -0
- package/dist/commands/release/list/index.js +1 -4
- package/dist/commands/release/pull/index.d.ts +2 -3
- package/dist/commands/release/pull/index.js +19 -18
- package/dist/commands/release/push/index.d.ts +2 -3
- package/dist/commands/release/push/index.js +19 -22
- package/dist/commands/sandbox/delete/index.d.ts +13 -0
- package/dist/commands/sandbox/delete/index.js +71 -0
- package/dist/commands/sandbox/env/delete/index.d.ts +1 -0
- package/dist/commands/sandbox/env/delete/index.js +4 -2
- package/dist/commands/sandbox/env/get/index.d.ts +1 -0
- package/dist/commands/sandbox/env/get/index.js +4 -2
- package/dist/commands/sandbox/env/get_all/index.d.ts +1 -0
- package/dist/commands/sandbox/env/get_all/index.js +4 -2
- package/dist/commands/sandbox/env/list/index.d.ts +1 -0
- package/dist/commands/sandbox/env/list/index.js +4 -2
- package/dist/commands/sandbox/env/set/index.d.ts +1 -0
- package/dist/commands/sandbox/env/set/index.js +4 -2
- package/dist/commands/sandbox/env/set_all/index.d.ts +1 -0
- package/dist/commands/sandbox/env/set_all/index.js +4 -2
- package/dist/commands/sandbox/get/index.d.ts +1 -0
- package/dist/commands/sandbox/get/index.js +2 -0
- package/dist/commands/sandbox/license/get/index.d.ts +1 -0
- package/dist/commands/sandbox/license/get/index.js +4 -2
- package/dist/commands/sandbox/license/set/index.d.ts +1 -0
- package/dist/commands/sandbox/license/set/index.js +4 -2
- package/dist/commands/sandbox/pull/index.d.ts +2 -3
- package/dist/commands/sandbox/pull/index.js +19 -14
- package/dist/commands/sandbox/push/index.d.ts +12 -4
- package/dist/commands/sandbox/push/index.js +150 -95
- package/dist/commands/sandbox/reset/index.d.ts +1 -0
- package/dist/commands/sandbox/reset/index.js +4 -2
- package/dist/commands/sandbox/review/index.d.ts +1 -0
- package/dist/commands/sandbox/review/index.js +4 -2
- package/dist/commands/sandbox/unit_test/list/index.d.ts +1 -0
- package/dist/commands/sandbox/unit_test/list/index.js +4 -2
- package/dist/commands/sandbox/unit_test/run/index.d.ts +1 -0
- package/dist/commands/sandbox/unit_test/run/index.js +4 -2
- package/dist/commands/sandbox/unit_test/run_all/index.d.ts +1 -0
- package/dist/commands/sandbox/unit_test/run_all/index.js +4 -0
- package/dist/commands/sandbox/workflow_test/list/index.d.ts +1 -0
- package/dist/commands/sandbox/workflow_test/list/index.js +4 -2
- package/dist/commands/sandbox/workflow_test/run/index.d.ts +1 -0
- package/dist/commands/sandbox/workflow_test/run/index.js +4 -2
- package/dist/commands/sandbox/workflow_test/run_all/index.d.ts +1 -0
- package/dist/commands/sandbox/workflow_test/run_all/index.js +4 -0
- package/dist/commands/static_host/build/create/index.d.ts +1 -0
- package/dist/commands/static_host/build/create/index.js +1 -3
- package/dist/commands/static_host/build/get/index.d.ts +1 -0
- package/dist/commands/static_host/build/get/index.js +1 -4
- package/dist/commands/static_host/build/list/index.d.ts +1 -0
- package/dist/commands/static_host/build/list/index.js +1 -4
- package/dist/commands/static_host/list/index.d.ts +1 -0
- package/dist/commands/static_host/list/index.js +1 -4
- package/dist/commands/tenant/backup/create/index.d.ts +1 -0
- package/dist/commands/tenant/backup/create/index.js +1 -4
- package/dist/commands/tenant/backup/delete/index.d.ts +1 -0
- package/dist/commands/tenant/backup/delete/index.js +1 -4
- package/dist/commands/tenant/backup/export/index.d.ts +1 -0
- package/dist/commands/tenant/backup/export/index.js +1 -3
- package/dist/commands/tenant/backup/import/index.d.ts +1 -0
- package/dist/commands/tenant/backup/import/index.js +1 -3
- package/dist/commands/tenant/backup/list/index.d.ts +1 -0
- package/dist/commands/tenant/backup/list/index.js +1 -4
- package/dist/commands/tenant/backup/restore/index.d.ts +1 -0
- package/dist/commands/tenant/backup/restore/index.js +1 -4
- package/dist/commands/tenant/cluster/create/index.d.ts +1 -0
- package/dist/commands/tenant/cluster/create/index.js +1 -3
- package/dist/commands/tenant/cluster/delete/index.d.ts +1 -0
- package/dist/commands/tenant/cluster/delete/index.js +1 -4
- package/dist/commands/tenant/cluster/edit/index.d.ts +1 -0
- package/dist/commands/tenant/cluster/edit/index.js +1 -4
- package/dist/commands/tenant/cluster/get/index.d.ts +1 -0
- package/dist/commands/tenant/cluster/get/index.js +1 -4
- package/dist/commands/tenant/cluster/license/get/index.d.ts +1 -0
- package/dist/commands/tenant/cluster/license/get/index.js +1 -3
- package/dist/commands/tenant/cluster/license/set/index.d.ts +1 -0
- package/dist/commands/tenant/cluster/license/set/index.js +1 -3
- package/dist/commands/tenant/cluster/list/index.d.ts +1 -0
- package/dist/commands/tenant/cluster/list/index.js +1 -4
- package/dist/commands/tenant/create/index.d.ts +1 -0
- package/dist/commands/tenant/create/index.js +1 -3
- package/dist/commands/tenant/delete/index.d.ts +1 -0
- package/dist/commands/tenant/delete/index.js +1 -4
- package/dist/commands/tenant/deploy_platform/index.d.ts +1 -0
- package/dist/commands/tenant/deploy_platform/index.js +1 -3
- package/dist/commands/tenant/deploy_release/index.d.ts +1 -0
- package/dist/commands/tenant/deploy_release/index.js +1 -4
- package/dist/commands/tenant/edit/index.d.ts +1 -0
- package/dist/commands/tenant/edit/index.js +1 -4
- package/dist/commands/tenant/env/delete/index.d.ts +1 -0
- package/dist/commands/tenant/env/delete/index.js +1 -4
- package/dist/commands/tenant/env/get/index.d.ts +1 -0
- package/dist/commands/tenant/env/get/index.js +1 -4
- package/dist/commands/tenant/env/get_all/index.d.ts +1 -0
- package/dist/commands/tenant/env/get_all/index.js +1 -3
- package/dist/commands/tenant/env/list/index.d.ts +1 -0
- package/dist/commands/tenant/env/list/index.js +1 -4
- package/dist/commands/tenant/env/set/index.d.ts +1 -0
- package/dist/commands/tenant/env/set/index.js +1 -4
- package/dist/commands/tenant/env/set_all/index.d.ts +1 -0
- package/dist/commands/tenant/env/set_all/index.js +1 -3
- package/dist/commands/tenant/get/index.d.ts +1 -0
- package/dist/commands/tenant/get/index.js +1 -4
- package/dist/commands/tenant/impersonate/index.d.ts +1 -0
- package/dist/commands/tenant/impersonate/index.js +1 -4
- package/dist/commands/tenant/license/get/index.d.ts +1 -0
- package/dist/commands/tenant/license/get/index.js +1 -3
- package/dist/commands/tenant/license/set/index.d.ts +1 -0
- package/dist/commands/tenant/license/set/index.js +1 -3
- package/dist/commands/tenant/list/index.d.ts +1 -0
- package/dist/commands/tenant/list/index.js +1 -4
- package/dist/commands/tenant/pull/index.d.ts +2 -3
- package/dist/commands/tenant/pull/index.js +20 -21
- package/dist/commands/tenant/push/index.d.ts +2 -22
- package/dist/commands/tenant/push/index.js +7 -225
- package/dist/commands/tenant/unit_test/list/index.d.ts +1 -0
- package/dist/commands/tenant/unit_test/list/index.js +2 -27
- package/dist/commands/tenant/unit_test/run/index.d.ts +1 -0
- package/dist/commands/tenant/unit_test/run/index.js +2 -27
- package/dist/commands/tenant/unit_test/run_all/index.d.ts +1 -0
- package/dist/commands/tenant/unit_test/run_all/index.js +2 -27
- package/dist/commands/tenant/workflow_test/list/index.d.ts +1 -0
- package/dist/commands/tenant/workflow_test/list/index.js +2 -27
- package/dist/commands/tenant/workflow_test/run/index.d.ts +1 -0
- package/dist/commands/tenant/workflow_test/run/index.js +2 -27
- package/dist/commands/tenant/workflow_test/run_all/index.d.ts +1 -0
- package/dist/commands/tenant/workflow_test/run_all/index.js +2 -27
- package/dist/commands/unit_test/list/index.d.ts +1 -0
- package/dist/commands/unit_test/list/index.js +1 -4
- package/dist/commands/unit_test/run/index.d.ts +1 -0
- package/dist/commands/unit_test/run/index.js +1 -4
- package/dist/commands/unit_test/run_all/index.d.ts +1 -0
- package/dist/commands/unit_test/run_all/index.js +1 -4
- package/dist/commands/update/index.d.ts +1 -0
- package/dist/commands/workflow_test/delete/index.d.ts +1 -0
- package/dist/commands/workflow_test/delete/index.js +1 -4
- package/dist/commands/workflow_test/get/index.d.ts +1 -0
- package/dist/commands/workflow_test/get/index.js +1 -4
- package/dist/commands/workflow_test/list/index.d.ts +1 -0
- package/dist/commands/workflow_test/list/index.js +1 -4
- package/dist/commands/workflow_test/run/index.d.ts +1 -0
- package/dist/commands/workflow_test/run/index.js +1 -4
- package/dist/commands/workflow_test/run_all/index.d.ts +1 -0
- package/dist/commands/workflow_test/run_all/index.js +1 -4
- package/dist/commands/workspace/create/index.d.ts +1 -0
- package/dist/commands/workspace/create/index.js +1 -4
- package/dist/commands/workspace/delete/index.d.ts +2 -6
- package/dist/commands/workspace/delete/index.js +17 -16
- package/dist/commands/workspace/edit/index.d.ts +2 -6
- package/dist/commands/workspace/edit/index.js +16 -20
- package/dist/commands/workspace/get/index.d.ts +2 -6
- package/dist/commands/workspace/get/index.js +14 -18
- package/dist/commands/workspace/git/pull/index.d.ts +2 -3
- package/dist/commands/workspace/git/pull/index.js +18 -17
- package/dist/commands/workspace/list/index.d.ts +1 -0
- package/dist/commands/workspace/list/index.js +1 -4
- package/dist/commands/workspace/pull/index.d.ts +2 -3
- package/dist/commands/workspace/pull/index.js +21 -24
- package/dist/commands/workspace/push/index.d.ts +7 -16
- package/dist/commands/workspace/push/index.js +85 -700
- package/dist/utils/multidoc-push.d.ts +63 -0
- package/dist/utils/multidoc-push.js +690 -0
- package/dist/utils/reference-checker.d.ts +57 -0
- package/dist/utils/reference-checker.js +232 -0
- package/oclif.manifest.json +3562 -2647
- package/package.json +1 -1
- package/dist/commands/sandbox/workflow_test/delete/index.d.ts +0 -17
- package/dist/commands/sandbox/workflow_test/delete/index.js +0 -59
- package/dist/commands/sandbox/workflow_test/get/index.d.ts +0 -17
- package/dist/commands/sandbox/workflow_test/get/index.js +0 -58
- package/dist/commands/tenant/workflow_test/delete/index.d.ts +0 -19
- package/dist/commands/tenant/workflow_test/delete/index.js +0 -110
- package/dist/commands/tenant/workflow_test/get/index.d.ts +0 -19
- package/dist/commands/tenant/workflow_test/get/index.js +0 -112
|
@@ -1,26 +1,18 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Flags } from '@oclif/core';
|
|
2
2
|
import * as yaml from 'js-yaml';
|
|
3
3
|
import * as fs from 'node:fs';
|
|
4
|
-
import * as os from 'node:os';
|
|
5
|
-
import * as path from 'node:path';
|
|
6
4
|
import BaseCommand from '../../../base-command.js';
|
|
7
5
|
export default class WorkspaceDelete extends BaseCommand {
|
|
8
|
-
static args = {
|
|
9
|
-
workspace_id: Args.integer({
|
|
10
|
-
description: 'Workspace ID to delete',
|
|
11
|
-
required: true,
|
|
12
|
-
}),
|
|
13
|
-
};
|
|
14
6
|
static description = 'Delete a workspace via the Xano Metadata API. Cannot delete workspaces with active tenants.';
|
|
15
7
|
static examples = [
|
|
16
|
-
`$ xano workspace delete 123
|
|
8
|
+
`$ xano workspace delete -w 123
|
|
17
9
|
Are you sure you want to delete workspace 123? This action cannot be undone. (y/N) y
|
|
18
10
|
Deleted workspace 123
|
|
19
11
|
`,
|
|
20
|
-
`$ xano workspace delete 123 --force
|
|
12
|
+
`$ xano workspace delete -w 123 --force
|
|
21
13
|
Deleted workspace 123
|
|
22
14
|
`,
|
|
23
|
-
`$ xano workspace delete 123 -f -o json
|
|
15
|
+
`$ xano workspace delete -w 123 -f -o json
|
|
24
16
|
{
|
|
25
17
|
"deleted": true,
|
|
26
18
|
"workspace_id": 123
|
|
@@ -42,9 +34,14 @@ Deleted workspace 123
|
|
|
42
34
|
options: ['summary', 'json'],
|
|
43
35
|
required: false,
|
|
44
36
|
}),
|
|
37
|
+
workspace: Flags.string({
|
|
38
|
+
char: 'w',
|
|
39
|
+
description: 'Workspace ID to delete (uses profile workspace if not provided)',
|
|
40
|
+
required: false,
|
|
41
|
+
}),
|
|
45
42
|
};
|
|
46
43
|
async run() {
|
|
47
|
-
const {
|
|
44
|
+
const { flags } = await this.parse(WorkspaceDelete);
|
|
48
45
|
// Get profile name (default or from flag/env)
|
|
49
46
|
const profileName = flags.profile || this.getDefaultProfile();
|
|
50
47
|
// Load credentials
|
|
@@ -62,7 +59,12 @@ Deleted workspace 123
|
|
|
62
59
|
if (!profile.access_token) {
|
|
63
60
|
this.error(`Profile '${profileName}' is missing access_token`);
|
|
64
61
|
}
|
|
65
|
-
|
|
62
|
+
// Get workspace ID from flag or profile
|
|
63
|
+
const workspaceId = flags.workspace || profile.workspace;
|
|
64
|
+
if (!workspaceId) {
|
|
65
|
+
this.error('No workspace ID provided. Use -w flag or set one in your profile.\n' +
|
|
66
|
+
'Usage: xano workspace delete -w <workspace_id>');
|
|
67
|
+
}
|
|
66
68
|
// Confirmation prompt unless --force is used
|
|
67
69
|
if (!flags.force) {
|
|
68
70
|
const confirmed = await this.confirm(`Are you sure you want to delete workspace ${workspaceId}? This action cannot be undone.`);
|
|
@@ -118,8 +120,7 @@ Deleted workspace 123
|
|
|
118
120
|
});
|
|
119
121
|
}
|
|
120
122
|
loadCredentials() {
|
|
121
|
-
const
|
|
122
|
-
const credentialsPath = path.join(configDir, 'credentials.yaml');
|
|
123
|
+
const credentialsPath = this.getCredentialsPath();
|
|
123
124
|
// Check if credentials file exists
|
|
124
125
|
if (!fs.existsSync(credentialsPath)) {
|
|
125
126
|
this.error(`Credentials file not found at ${credentialsPath}\n` +
|
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
import BaseCommand from '../../../base-command.js';
|
|
2
2
|
export default class WorkspaceEdit extends BaseCommand {
|
|
3
|
-
static args: {
|
|
4
|
-
workspace_id: import("@oclif/core/interfaces").Arg<number | undefined, {
|
|
5
|
-
max?: number;
|
|
6
|
-
min?: number;
|
|
7
|
-
}>;
|
|
8
|
-
};
|
|
9
3
|
static description: string;
|
|
10
4
|
static examples: string[];
|
|
11
5
|
static flags: {
|
|
@@ -15,6 +9,8 @@ export default class WorkspaceEdit extends BaseCommand {
|
|
|
15
9
|
output: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
16
10
|
'require-token': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
17
11
|
swagger: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
12
|
+
workspace: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
13
|
+
config: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
18
14
|
profile: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
19
15
|
verbose: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
20
16
|
};
|
|
@@ -1,31 +1,23 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Flags } from '@oclif/core';
|
|
2
2
|
import * as yaml from 'js-yaml';
|
|
3
3
|
import * as fs from 'node:fs';
|
|
4
|
-
import * as os from 'node:os';
|
|
5
|
-
import * as path from 'node:path';
|
|
6
4
|
import BaseCommand from '../../../base-command.js';
|
|
7
5
|
export default class WorkspaceEdit extends BaseCommand {
|
|
8
|
-
static args = {
|
|
9
|
-
workspace_id: Args.integer({
|
|
10
|
-
description: 'Workspace ID to edit (uses profile workspace if not provided)',
|
|
11
|
-
required: false,
|
|
12
|
-
}),
|
|
13
|
-
};
|
|
14
6
|
static description = 'Edit an existing workspace via the Xano Metadata API';
|
|
15
7
|
static examples = [
|
|
16
|
-
`$ xano workspace edit 123 --name "new-name"
|
|
8
|
+
`$ xano workspace edit -w 123 --name "new-name"
|
|
17
9
|
Updated workspace: new-name (ID: 123)
|
|
18
10
|
`,
|
|
19
11
|
`$ xano workspace edit --name "updated-workspace" --description "Updated description"
|
|
20
12
|
Updated workspace: updated-workspace (ID: 123)
|
|
21
13
|
Description: Updated description
|
|
22
14
|
`,
|
|
23
|
-
`$ xano workspace edit 123 --swagger --require-token
|
|
15
|
+
`$ xano workspace edit -w 123 --swagger --require-token
|
|
24
16
|
Updated workspace: my-workspace (ID: 123)
|
|
25
17
|
Swagger: enabled
|
|
26
18
|
Require Token: true
|
|
27
19
|
`,
|
|
28
|
-
`$ xano workspace edit 123 --no-swagger -o json
|
|
20
|
+
`$ xano workspace edit -w 123 --no-swagger -o json
|
|
29
21
|
{
|
|
30
22
|
"id": 123,
|
|
31
23
|
"name": "my-workspace",
|
|
@@ -37,7 +29,7 @@ Updated workspace: my-workspace (ID: 123)
|
|
|
37
29
|
...BaseCommand.baseFlags,
|
|
38
30
|
'allow-push': Flags.boolean({
|
|
39
31
|
allowNo: true,
|
|
40
|
-
description: 'Enable or disable direct CLI push to this workspace',
|
|
32
|
+
description: 'Enable or disable direct CLI push to this workspace (not applicable on Free plan)',
|
|
41
33
|
required: false,
|
|
42
34
|
}),
|
|
43
35
|
description: Flags.string({
|
|
@@ -67,9 +59,14 @@ Updated workspace: my-workspace (ID: 123)
|
|
|
67
59
|
description: 'Enable or disable swagger documentation',
|
|
68
60
|
required: false,
|
|
69
61
|
}),
|
|
62
|
+
workspace: Flags.string({
|
|
63
|
+
char: 'w',
|
|
64
|
+
description: 'Workspace ID (uses profile workspace if not provided)',
|
|
65
|
+
required: false,
|
|
66
|
+
}),
|
|
70
67
|
};
|
|
71
68
|
async run() {
|
|
72
|
-
const {
|
|
69
|
+
const { flags } = await this.parse(WorkspaceEdit);
|
|
73
70
|
// Get profile name (default or from flag/env)
|
|
74
71
|
const profileName = flags.profile || this.getDefaultProfile();
|
|
75
72
|
// Load credentials
|
|
@@ -87,11 +84,11 @@ Updated workspace: my-workspace (ID: 123)
|
|
|
87
84
|
if (!profile.access_token) {
|
|
88
85
|
this.error(`Profile '${profileName}' is missing access_token`);
|
|
89
86
|
}
|
|
90
|
-
// Get workspace ID from
|
|
91
|
-
const workspaceId =
|
|
87
|
+
// Get workspace ID from flag or profile
|
|
88
|
+
const workspaceId = flags.workspace || profile.workspace;
|
|
92
89
|
if (!workspaceId) {
|
|
93
|
-
this.error('No workspace ID provided.
|
|
94
|
-
'Usage: xano workspace edit <workspace_id> [flags]');
|
|
90
|
+
this.error('No workspace ID provided. Use -w flag or set one in your profile.\n' +
|
|
91
|
+
'Usage: xano workspace edit -w <workspace_id> [flags]');
|
|
95
92
|
}
|
|
96
93
|
// Build request body - only include fields that were specified
|
|
97
94
|
const body = {};
|
|
@@ -164,8 +161,7 @@ Updated workspace: my-workspace (ID: 123)
|
|
|
164
161
|
}
|
|
165
162
|
}
|
|
166
163
|
loadCredentials() {
|
|
167
|
-
const
|
|
168
|
-
const credentialsPath = path.join(configDir, 'credentials.yaml');
|
|
164
|
+
const credentialsPath = this.getCredentialsPath();
|
|
169
165
|
// Check if credentials file exists
|
|
170
166
|
if (!fs.existsSync(credentialsPath)) {
|
|
171
167
|
this.error(`Credentials file not found at ${credentialsPath}\n` + `Create a profile using 'xano profile create'`);
|
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
import BaseCommand from '../../../base-command.js';
|
|
2
2
|
export default class WorkspaceGet extends BaseCommand {
|
|
3
|
-
static args: {
|
|
4
|
-
workspace_id: import("@oclif/core/interfaces").Arg<number | undefined, {
|
|
5
|
-
max?: number;
|
|
6
|
-
min?: number;
|
|
7
|
-
}>;
|
|
8
|
-
};
|
|
9
3
|
static description: string;
|
|
10
4
|
static examples: string[];
|
|
11
5
|
static flags: {
|
|
12
6
|
output: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
7
|
+
workspace: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
8
|
+
config: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
13
9
|
profile: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
14
10
|
verbose: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
15
11
|
};
|
|
@@ -1,19 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Flags } from '@oclif/core';
|
|
2
2
|
import * as yaml from 'js-yaml';
|
|
3
3
|
import * as fs from 'node:fs';
|
|
4
|
-
import * as os from 'node:os';
|
|
5
|
-
import * as path from 'node:path';
|
|
6
4
|
import BaseCommand from '../../../base-command.js';
|
|
7
5
|
export default class WorkspaceGet extends BaseCommand {
|
|
8
|
-
static args = {
|
|
9
|
-
workspace_id: Args.integer({
|
|
10
|
-
description: 'Workspace ID to get details for (uses profile workspace if not provided)',
|
|
11
|
-
required: false,
|
|
12
|
-
}),
|
|
13
|
-
};
|
|
14
6
|
static description = 'Get details of a specific workspace from the Xano Metadata API';
|
|
15
7
|
static examples = [
|
|
16
|
-
`$ xano workspace get 123
|
|
8
|
+
`$ xano workspace get -w 123
|
|
17
9
|
Workspace: my-workspace (ID: 123)
|
|
18
10
|
Description: My workspace description
|
|
19
11
|
Created: 2024-01-15
|
|
@@ -25,7 +17,7 @@ Workspace: my-workspace (ID: 123)
|
|
|
25
17
|
"description": "My workspace description"
|
|
26
18
|
}
|
|
27
19
|
`,
|
|
28
|
-
`$ xano workspace get 456 -p production -o json
|
|
20
|
+
`$ xano workspace get -w 456 -p production -o json
|
|
29
21
|
{
|
|
30
22
|
"id": 456,
|
|
31
23
|
"name": "production-workspace"
|
|
@@ -41,9 +33,14 @@ Workspace: my-workspace (ID: 123)
|
|
|
41
33
|
options: ['summary', 'json'],
|
|
42
34
|
required: false,
|
|
43
35
|
}),
|
|
36
|
+
workspace: Flags.string({
|
|
37
|
+
char: 'w',
|
|
38
|
+
description: 'Workspace ID (uses profile workspace if not provided)',
|
|
39
|
+
required: false,
|
|
40
|
+
}),
|
|
44
41
|
};
|
|
45
42
|
async run() {
|
|
46
|
-
const {
|
|
43
|
+
const { flags } = await this.parse(WorkspaceGet);
|
|
47
44
|
// Get profile name (default or from flag/env)
|
|
48
45
|
const profileName = flags.profile || this.getDefaultProfile();
|
|
49
46
|
// Load credentials
|
|
@@ -61,11 +58,11 @@ Workspace: my-workspace (ID: 123)
|
|
|
61
58
|
if (!profile.access_token) {
|
|
62
59
|
this.error(`Profile '${profileName}' is missing access_token`);
|
|
63
60
|
}
|
|
64
|
-
// Get workspace ID from
|
|
65
|
-
const workspaceId =
|
|
61
|
+
// Get workspace ID from flag or profile
|
|
62
|
+
const workspaceId = flags.workspace || profile.workspace;
|
|
66
63
|
if (!workspaceId) {
|
|
67
|
-
this.error('No workspace ID provided.
|
|
68
|
-
'Usage: xano workspace get <workspace_id>');
|
|
64
|
+
this.error('No workspace ID provided. Use -w flag or set one in your profile.\n' +
|
|
65
|
+
'Usage: xano workspace get -w <workspace_id>');
|
|
69
66
|
}
|
|
70
67
|
// Construct the API URL
|
|
71
68
|
const apiUrl = `${profile.instance_origin}/api:meta/workspace/${workspaceId}`;
|
|
@@ -116,8 +113,7 @@ Workspace: my-workspace (ID: 123)
|
|
|
116
113
|
}
|
|
117
114
|
}
|
|
118
115
|
loadCredentials() {
|
|
119
|
-
const
|
|
120
|
-
const credentialsPath = path.join(configDir, 'credentials.yaml');
|
|
116
|
+
const credentialsPath = this.getCredentialsPath();
|
|
121
117
|
// Check if credentials file exists
|
|
122
118
|
if (!fs.existsSync(credentialsPath)) {
|
|
123
119
|
this.error(`Credentials file not found at ${credentialsPath}\n` + `Create a profile using 'xano profile create'`);
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import BaseCommand from '../../../../base-command.js';
|
|
2
2
|
export default class GitPull extends BaseCommand {
|
|
3
|
-
static args: {
|
|
4
|
-
directory: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
5
|
-
};
|
|
6
3
|
static description: string;
|
|
7
4
|
static examples: string[];
|
|
8
5
|
static flags: {
|
|
9
6
|
branch: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
7
|
+
directory: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
8
|
path: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
11
9
|
repo: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
12
10
|
token: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
11
|
+
config: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
13
12
|
profile: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
14
13
|
verbose: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
15
14
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Flags } from '@oclif/core';
|
|
2
2
|
import { execSync } from 'node:child_process';
|
|
3
3
|
import * as fs from 'node:fs';
|
|
4
4
|
import * as os from 'node:os';
|
|
@@ -7,21 +7,16 @@ import snakeCase from 'lodash.snakecase';
|
|
|
7
7
|
import BaseCommand, { buildUserAgent } from '../../../../base-command.js';
|
|
8
8
|
import { buildApiGroupFolderResolver, parseDocument } from '../../../../utils/document-parser.js';
|
|
9
9
|
export default class GitPull extends BaseCommand {
|
|
10
|
-
static args = {
|
|
11
|
-
directory: Args.string({
|
|
12
|
-
description: 'Output directory for imported files',
|
|
13
|
-
required: true,
|
|
14
|
-
}),
|
|
15
|
-
};
|
|
16
10
|
static description = 'Pull XanoScript files from a git repository into a local directory';
|
|
17
11
|
static examples = [
|
|
18
|
-
`$ xano workspace git pull
|
|
19
|
-
`$ xano workspace git pull ./output -r https://github.com/owner/repo
|
|
20
|
-
`$ xano workspace git pull
|
|
21
|
-
`$ xano workspace git pull
|
|
22
|
-
`$ xano workspace git pull
|
|
23
|
-
`$ xano workspace git pull
|
|
24
|
-
`$ xano workspace git pull
|
|
12
|
+
`$ xano workspace git pull -r https://github.com/owner/repo`,
|
|
13
|
+
`$ xano workspace git pull -d ./output -r https://github.com/owner/repo`,
|
|
14
|
+
`$ xano workspace git pull -r https://github.com/owner/repo/tree/main/path/to/dir`,
|
|
15
|
+
`$ xano workspace git pull -r https://github.com/owner/repo/blob/main/path/to/file.xs`,
|
|
16
|
+
`$ xano workspace git pull -r git@github.com:owner/repo.git`,
|
|
17
|
+
`$ xano workspace git pull -r https://github.com/owner/private-repo -t ghp_xxx`,
|
|
18
|
+
`$ xano workspace git pull -r https://gitlab.com/owner/repo/-/tree/master/path`,
|
|
19
|
+
`$ xano workspace git pull -r https://gitlab.com/owner/repo -b main`,
|
|
25
20
|
];
|
|
26
21
|
static flags = {
|
|
27
22
|
...BaseCommand.baseFlags,
|
|
@@ -30,6 +25,12 @@ export default class GitPull extends BaseCommand {
|
|
|
30
25
|
description: 'Branch, tag, or ref to fetch (defaults to repository default branch)',
|
|
31
26
|
required: false,
|
|
32
27
|
}),
|
|
28
|
+
directory: Flags.string({
|
|
29
|
+
char: 'd',
|
|
30
|
+
default: '.',
|
|
31
|
+
description: 'Output directory for imported files (defaults to current directory)',
|
|
32
|
+
required: false,
|
|
33
|
+
}),
|
|
33
34
|
path: Flags.string({
|
|
34
35
|
description: 'Subdirectory within the repo to import from',
|
|
35
36
|
required: false,
|
|
@@ -47,9 +48,9 @@ export default class GitPull extends BaseCommand {
|
|
|
47
48
|
}),
|
|
48
49
|
};
|
|
49
50
|
async run() {
|
|
50
|
-
const {
|
|
51
|
+
const { flags } = await this.parse(GitPull);
|
|
51
52
|
const token = flags.token || '';
|
|
52
|
-
const outputDir = path.resolve(
|
|
53
|
+
const outputDir = path.resolve(flags.directory);
|
|
53
54
|
// Normalize the URL to extract owner/repo/ref/path from various formats
|
|
54
55
|
const repoInfo = this.parseRepoUrl(flags.repo);
|
|
55
56
|
// CLI flags override values extracted from the URL
|
|
@@ -115,7 +116,7 @@ export default class GitPull extends BaseCommand {
|
|
|
115
116
|
writtenCount++;
|
|
116
117
|
}
|
|
117
118
|
const source = subPath ? `${flags.repo} (${subPath})` : flags.repo;
|
|
118
|
-
this.log(`Pulled ${writtenCount} documents from ${source} to ${
|
|
119
|
+
this.log(`Pulled ${writtenCount} documents from ${source} to ${flags.directory}`);
|
|
119
120
|
}
|
|
120
121
|
finally {
|
|
121
122
|
// Clean up temp directory
|
|
@@ -5,6 +5,7 @@ export default class WorkspaceList extends BaseCommand {
|
|
|
5
5
|
static flags: {
|
|
6
6
|
latest: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
7
7
|
output: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
8
|
+
config: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
8
9
|
profile: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
9
10
|
verbose: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
10
11
|
};
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { Flags } from '@oclif/core';
|
|
2
2
|
import * as yaml from 'js-yaml';
|
|
3
3
|
import * as fs from 'node:fs';
|
|
4
|
-
import * as os from 'node:os';
|
|
5
|
-
import * as path from 'node:path';
|
|
6
4
|
import BaseCommand from '../../../base-command.js';
|
|
7
5
|
export default class WorkspaceList extends BaseCommand {
|
|
8
6
|
static description = 'List all workspaces from the Xano Metadata API';
|
|
@@ -139,8 +137,7 @@ Available workspaces:
|
|
|
139
137
|
}
|
|
140
138
|
}
|
|
141
139
|
loadCredentials() {
|
|
142
|
-
const
|
|
143
|
-
const credentialsPath = path.join(configDir, 'credentials.yaml');
|
|
140
|
+
const credentialsPath = this.getCredentialsPath();
|
|
144
141
|
// Check if credentials file exists
|
|
145
142
|
if (!fs.existsSync(credentialsPath)) {
|
|
146
143
|
this.error(`Credentials file not found at ${credentialsPath}\n` + `Create a profile using 'xano profile:create'`);
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import BaseCommand from '../../../base-command.js';
|
|
2
2
|
export default class Pull extends BaseCommand {
|
|
3
|
-
static args: {
|
|
4
|
-
directory: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
5
|
-
};
|
|
6
3
|
static description: string;
|
|
7
4
|
static examples: string[];
|
|
8
5
|
static flags: {
|
|
9
6
|
branch: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
7
|
+
directory: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
8
|
env: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
11
9
|
draft: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
12
10
|
records: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
13
11
|
workspace: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
12
|
+
config: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
14
13
|
profile: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
15
14
|
verbose: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
16
15
|
};
|
|
@@ -1,35 +1,27 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Flags } from '@oclif/core';
|
|
2
2
|
import * as yaml from 'js-yaml';
|
|
3
3
|
import * as fs from 'node:fs';
|
|
4
|
-
import * as os from 'node:os';
|
|
5
4
|
import * as path from 'node:path';
|
|
6
5
|
import snakeCase from 'lodash.snakecase';
|
|
7
6
|
import BaseCommand from '../../../base-command.js';
|
|
8
7
|
import { buildApiGroupFolderResolver, parseDocument } from '../../../utils/document-parser.js';
|
|
9
8
|
export default class Pull extends BaseCommand {
|
|
10
|
-
static args = {
|
|
11
|
-
directory: Args.string({
|
|
12
|
-
description: 'Output directory for pulled documents',
|
|
13
|
-
required: true,
|
|
14
|
-
}),
|
|
15
|
-
};
|
|
16
9
|
static description = 'Pull a workspace multidoc from the Xano Metadata API and split into individual files';
|
|
17
10
|
static examples = [
|
|
18
|
-
`$ xano workspace pull
|
|
11
|
+
`$ xano workspace pull
|
|
12
|
+
Pulled 42 documents to current directory
|
|
13
|
+
`,
|
|
14
|
+
`$ xano workspace pull -d ./my-workspace
|
|
19
15
|
Pulled 42 documents to ./my-workspace
|
|
20
16
|
`,
|
|
21
|
-
`$ xano workspace pull ./output -w 40
|
|
17
|
+
`$ xano workspace pull -d ./output -w 40
|
|
22
18
|
Pulled 15 documents to ./output
|
|
23
19
|
`,
|
|
24
|
-
`$ xano workspace pull
|
|
25
|
-
Pulled 58 documents
|
|
26
|
-
`,
|
|
27
|
-
`$ xano workspace pull ./my-workspace --draft
|
|
28
|
-
Pulled 42 documents to ./my-workspace
|
|
29
|
-
`,
|
|
30
|
-
`$ xano workspace pull ./my-workspace -b dev
|
|
31
|
-
Pulled 42 documents to ./my-workspace
|
|
20
|
+
`$ xano workspace pull --profile production --env --records
|
|
21
|
+
Pulled 58 documents
|
|
32
22
|
`,
|
|
23
|
+
`$ xano workspace pull --draft`,
|
|
24
|
+
`$ xano workspace pull -b dev`,
|
|
33
25
|
];
|
|
34
26
|
static flags = {
|
|
35
27
|
...BaseCommand.baseFlags,
|
|
@@ -38,6 +30,12 @@ Pulled 42 documents to ./my-workspace
|
|
|
38
30
|
description: 'Branch name (optional if set in profile, defaults to live)',
|
|
39
31
|
required: false,
|
|
40
32
|
}),
|
|
33
|
+
directory: Flags.string({
|
|
34
|
+
char: 'd',
|
|
35
|
+
default: '.',
|
|
36
|
+
description: 'Output directory for pulled documents (defaults to current directory)',
|
|
37
|
+
required: false,
|
|
38
|
+
}),
|
|
41
39
|
env: Flags.boolean({
|
|
42
40
|
default: false,
|
|
43
41
|
description: 'Include environment variables',
|
|
@@ -60,7 +58,7 @@ Pulled 42 documents to ./my-workspace
|
|
|
60
58
|
}),
|
|
61
59
|
};
|
|
62
60
|
async run() {
|
|
63
|
-
const {
|
|
61
|
+
const { flags } = await this.parse(Pull);
|
|
64
62
|
// Get profile name (default or from flag/env)
|
|
65
63
|
const profileName = flags.profile || this.getDefaultProfile();
|
|
66
64
|
// Load credentials
|
|
@@ -88,7 +86,7 @@ Pulled 42 documents to ./my-workspace
|
|
|
88
86
|
}
|
|
89
87
|
else {
|
|
90
88
|
this.error(`Workspace ID is required. Either:\n` +
|
|
91
|
-
` 1. Provide it as a flag: xano workspace pull
|
|
89
|
+
` 1. Provide it as a flag: xano workspace pull -w <workspace_id>\n` +
|
|
92
90
|
` 2. Set it in your profile using: xano profile:edit ${profileName} -w <workspace_id>`);
|
|
93
91
|
}
|
|
94
92
|
// Determine branch from flag or profile
|
|
@@ -146,7 +144,7 @@ Pulled 42 documents to ./my-workspace
|
|
|
146
144
|
return;
|
|
147
145
|
}
|
|
148
146
|
// Resolve the output directory
|
|
149
|
-
const outputDir = path.resolve(
|
|
147
|
+
const outputDir = path.resolve(flags.directory);
|
|
150
148
|
// Create the output directory if it doesn't exist
|
|
151
149
|
fs.mkdirSync(outputDir, { recursive: true });
|
|
152
150
|
// Resolve api_group names to unique folder names, disambiguating collisions
|
|
@@ -253,11 +251,10 @@ Pulled 42 documents to ./my-workspace
|
|
|
253
251
|
fs.writeFileSync(filePath, doc.content, 'utf8');
|
|
254
252
|
writtenCount++;
|
|
255
253
|
}
|
|
256
|
-
this.log(`Pulled ${writtenCount} documents to ${
|
|
254
|
+
this.log(`Pulled ${writtenCount} documents to ${flags.directory}`);
|
|
257
255
|
}
|
|
258
256
|
loadCredentials() {
|
|
259
|
-
const
|
|
260
|
-
const credentialsPath = path.join(configDir, 'credentials.yaml');
|
|
257
|
+
const credentialsPath = this.getCredentialsPath();
|
|
261
258
|
// Check if credentials file exists
|
|
262
259
|
if (!fs.existsSync(credentialsPath)) {
|
|
263
260
|
this.error(`Credentials file not found at ${credentialsPath}\n` + `Create a profile using 'xano profile:create'`);
|
|
@@ -1,34 +1,25 @@
|
|
|
1
1
|
import BaseCommand from '../../../base-command.js';
|
|
2
2
|
export default class Push extends BaseCommand {
|
|
3
|
-
static args: {
|
|
4
|
-
directory: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
5
|
-
};
|
|
6
3
|
static description: string;
|
|
7
4
|
static examples: string[];
|
|
8
5
|
static flags: {
|
|
9
6
|
branch: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
7
|
+
directory: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
8
|
delete: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
11
9
|
'dry-run': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
12
10
|
env: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
exclude: import("@oclif/core/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
12
|
+
force: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
15
13
|
guids: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
14
|
+
include: import("@oclif/core/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
15
|
+
records: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
16
|
+
sync: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
16
17
|
transaction: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
17
18
|
truncate: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
18
19
|
workspace: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
19
|
-
|
|
20
|
-
include: import("@oclif/core/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
21
|
-
force: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
20
|
+
config: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
22
21
|
profile: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
23
22
|
verbose: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
24
23
|
};
|
|
25
24
|
run(): Promise<void>;
|
|
26
|
-
private confirm;
|
|
27
|
-
private renderPreview;
|
|
28
|
-
/**
|
|
29
|
-
* Recursively collect all .xs files from a directory, sorted by
|
|
30
|
-
* type subdirectory name then filename for deterministic ordering.
|
|
31
|
-
*/
|
|
32
|
-
private collectFiles;
|
|
33
|
-
private loadCredentials;
|
|
34
25
|
}
|