windmill-cli 1.542.1 → 1.542.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/esm/gen/core/OpenAPI.js
CHANGED
|
@@ -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,
|
|
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
|
-
|
|
104
|
-
|
|
105
|
-
|
|
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,
|
|
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.
|
|
41
|
+
export const VERSION = "1.542.2";
|
|
42
42
|
export const WM_FORK_PREFIX = "wm-fork";
|
|
43
43
|
const command = new Command()
|
|
44
44
|
.name("wmill")
|
package/package.json
CHANGED
|
@@ -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
|
-
},
|
|
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,
|
|
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"}
|
package/types/src/main.d.ts
CHANGED
|
@@ -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.
|
|
25
|
+
export declare const VERSION = "1.542.2";
|
|
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;
|