windmill-cli 1.542.1 → 1.542.3

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.
@@ -32,7 +32,7 @@ export const OpenAPI = {
32
32
  PASSWORD: undefined,
33
33
  TOKEN: getEnv("WM_TOKEN"),
34
34
  USERNAME: undefined,
35
- VERSION: '1.542.1',
35
+ VERSION: '1.542.3',
36
36
  WITH_CREDENTIALS: true,
37
37
  interceptors: {
38
38
  request: new Interceptors(),
@@ -96,15 +96,13 @@ async function createWorkspaceFork(opts, workspaceName, workspaceId = undefined)
96
96
  const newBranchName = `${WM_FORK_PREFIX}/${clonedBranchName}/${workspaceId}`;
97
97
  log.info(`Created forked workspace ${trueWorkspaceId}. To start contributing to your fork, create and push edits to the branch \`${newBranchName}\` by using the command:\n\n\t` + colors.white(`git checkout -b ${newBranchName}`) + `\n\nThe changes will then be reflected in your fork if you've setup the git sync workflows correctly.`);
98
98
  }
99
- async function deleteWorkspaceFork(opts, silent, name) {
99
+ async function deleteWorkspaceFork(opts, name) {
100
100
  const orgWorkspaces = await allWorkspaces(opts.configDir);
101
101
  const idxOf = orgWorkspaces.findIndex((x) => x.name === name);
102
102
  if (idxOf === -1) {
103
- if (!silent) {
104
- log.info(colors.red.bold(`! Workspace profile ${name} does not exist locally`));
105
- log.info("available workspace profiles:");
106
- await list(opts);
107
- }
103
+ log.info(colors.red.bold(`! Workspace profile ${name} does not exist locally`));
104
+ log.info("available workspace profiles:");
105
+ await list(opts);
108
106
  return;
109
107
  }
110
108
  const workspace = orgWorkspaces[idxOf];
@@ -131,6 +129,6 @@ async function deleteWorkspaceFork(opts, silent, name) {
131
129
  workspace: workspace.workspaceId
132
130
  });
133
131
  log.info(colors.green(`✅ Forked workspace '${workspace.workspaceId}' deleted successfully!\n${result}`));
134
- await removeWorkspace(name, silent, opts);
132
+ await removeWorkspace(name, false, opts);
135
133
  }
136
134
  export { createWorkspaceFork, deleteWorkspaceFork };
package/esm/src/main.js CHANGED
@@ -38,7 +38,7 @@ export { flow, app, script, workspace, resource, resourceType, user, variable, h
38
38
  // console.error(JSON.stringify(event.error, null, 4));
39
39
  // }
40
40
  // });
41
- export const VERSION = "1.542.1";
41
+ export const VERSION = "1.542.3";
42
42
  export const WM_FORK_PREFIX = "wm-fork";
43
43
  const command = new Command()
44
44
  .name("wmill")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "windmill-cli",
3
- "version": "1.542.1",
3
+ "version": "1.542.3",
4
4
  "description": "CLI for Windmill",
5
5
  "repository": {
6
6
  "type": "git",
@@ -4,6 +4,6 @@ declare function createWorkspaceFork(opts: GlobalOptions & {
4
4
  }, workspaceName: string | undefined, workspaceId?: string | undefined): Promise<void>;
5
5
  declare function deleteWorkspaceFork(opts: GlobalOptions & {
6
6
  yes?: boolean;
7
- }, silent: boolean, name: string): Promise<void>;
7
+ }, name: string): Promise<void>;
8
8
  export { createWorkspaceFork, deleteWorkspaceFork };
9
9
  //# sourceMappingURL=fork.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fork.d.ts","sourceRoot":"","sources":["../../../../src/src/commands/workspace/fork.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAc/C,iBAAe,mBAAmB,CAChC,IAAI,EAAE,aAAa,GAAG;IACpB,mBAAmB,EAAE,MAAM,GAAG,SAAS,CAAC;CACzC,EACD,aAAa,EAAE,MAAM,GAAG,SAAS,EACjC,WAAW,GAAE,MAAM,GAAG,SAAqB,iBAyH5C;AAED,iBAAe,mBAAmB,CAChC,IAAI,EAAE,aAAa,GAAG;IACpB,GAAG,CAAC,EAAE,OAAO,CAAC;CACf,EACD,MAAM,EAAE,OAAO,EACf,IAAI,EAAE,MAAM,iBAqDb;AAED,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,CAAC"}
1
+ {"version":3,"file":"fork.d.ts","sourceRoot":"","sources":["../../../../src/src/commands/workspace/fork.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAc/C,iBAAe,mBAAmB,CAChC,IAAI,EAAE,aAAa,GAAG;IACpB,mBAAmB,EAAE,MAAM,GAAG,SAAS,CAAC;CACzC,EACD,aAAa,EAAE,MAAM,GAAG,SAAS,EACjC,WAAW,GAAE,MAAM,GAAG,SAAqB,iBAyH5C;AAED,iBAAe,mBAAmB,CAChC,IAAI,EAAE,aAAa,GAAG;IACpB,GAAG,CAAC,EAAE,OAAO,CAAC;CACf,EACD,IAAI,EAAE,MAAM,iBAkDb;AAED,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,CAAC"}
@@ -22,7 +22,7 @@ import { pull as hubPull } from "./commands/hub/hub.js";
22
22
  import { pull, push } from "./commands/sync/sync.js";
23
23
  import { add as workspaceAdd } from "./commands/workspace/workspace.js";
24
24
  export { flow, app, script, workspace, resource, resourceType, user, variable, hub, folder, schedule, trigger, sync, gitsyncSettings, instance, dev, hubPull, pull, push, workspaceAdd, };
25
- export declare const VERSION = "1.542.1";
25
+ export declare const VERSION = "1.542.3";
26
26
  export declare const WM_FORK_PREFIX = "wm-fork";
27
27
  declare const command: Command<{
28
28
  workspace?: (import("../deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/mod.js").StringType & string) | undefined;