@xano/cli 1.3.1 → 1.3.2

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 CHANGED
@@ -369,7 +369,6 @@ xano function run <name> --json @payload.json --data env=staging # base payloa
369
369
  echo '{"email":"jo@x.com"}' | xano function run <name> --stdin -o json | jq .result
370
370
  xano function run <name> --branch dev --logs # run on a branch, show execution logs
371
371
  xano function run <name> --datasource test # run against the 'test' data source
372
- xano function run <name> --tenant my-tenant # run on a tenant instead of the workspace
373
372
  ```
374
373
 
375
374
  Input flexibility for `function run` (assembled into one JSON `input` object):
@@ -387,9 +386,6 @@ Input flexibility for `function run` (assembled into one JSON `input` object):
387
386
  to run against `live`; an unknown label is rejected by the server with
388
387
  `Invalid data source.`
389
388
 
390
- `-t/--tenant <name>` runs the function on that tenant
391
- (`/workspace/{id}/tenant/{name}/function/run`) instead of the workspace.
392
-
393
389
  Merge order is JSON base first, then `--data` overrides. Missing required inputs are
394
390
  prompted for on an interactive terminal; in a non-TTY (CI) context the command fails
395
391
  listing them. Output defaults to the raw `result` (`-o json`); the exit code is non-zero
@@ -15,7 +15,6 @@ export default class FunctionRun extends BaseCommand {
15
15
  'no-input-check': import("@oclif/core/interfaces").BooleanFlag<boolean>;
16
16
  output: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
17
17
  stdin: import("@oclif/core/interfaces").BooleanFlag<boolean>;
18
- tenant: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
19
18
  workspace: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
20
19
  config: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
21
20
  profile: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
@@ -19,8 +19,6 @@ export default class FunctionRun extends BaseCommand {
19
19
  `$ xano function:run calcScore --branch dev --logs`,
20
20
  `$ xano function:run calcScore --datasource test
21
21
  # Runs against the 'test' data source instead of 'live'`,
22
- `$ xano function:run calcScore --tenant my-tenant
23
- # Runs the function on the tenant instead of the workspace`,
24
22
  ];
25
23
  static flags = {
26
24
  ...BaseCommand.baseFlags,
@@ -72,11 +70,6 @@ export default class FunctionRun extends BaseCommand {
72
70
  exclusive: ['json'],
73
71
  required: false,
74
72
  }),
75
- tenant: Flags.string({
76
- char: 't',
77
- description: 'Tenant name to run the function on (defaults to the workspace)',
78
- required: false,
79
- }),
80
73
  workspace: Flags.string({
81
74
  char: 'w',
82
75
  description: 'Workspace ID (optional if set in profile)',
@@ -114,9 +107,8 @@ export default class FunctionRun extends BaseCommand {
114
107
  input = await this.promptForMissing(input, missingRequired);
115
108
  }
116
109
  }
117
- // 3) Execute via the meta run endpoint, scoped to the tenant when one is given.
118
- const tenantPath = flags.tenant ? `/tenant/${encodeURIComponent(flags.tenant)}` : '';
119
- const apiUrl = `${profile.instance_origin}/api:meta/workspace/${workspaceId}${tenantPath}/function/run`;
110
+ // 3) Execute via the meta run endpoint.
111
+ const apiUrl = `${profile.instance_origin}/api:meta/workspace/${workspaceId}/function/run`;
120
112
  const body = { input, name: functionName };
121
113
  if (branch)
122
114
  body.branch = branch;