windmill-cli 1.393.2 → 1.393.4
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/deps.js +0 -1
- package/esm/main.js +19 -21
- package/esm/sync.js +15 -21
- package/package.json +1 -2
- package/types/_dnt.polyfills.d.ts +24 -0
- package/types/_dnt.polyfills.d.ts.map +1 -1
- package/types/deps.d.ts +0 -1
- package/types/deps.d.ts.map +1 -1
- package/types/main.d.ts +2 -4
- package/types/main.d.ts.map +1 -1
- package/types/sync.d.ts +3 -0
- package/types/sync.d.ts.map +1 -1
- package/esm/push.js +0 -10
- package/types/push.d.ts +0 -10
- package/types/push.d.ts.map +0 -1
package/esm/deps.js
CHANGED
package/esm/main.js
CHANGED
|
@@ -10,8 +10,6 @@ import workspace, { getActiveWorkspace } from "./workspace.js";
|
|
|
10
10
|
import resource from "./resource.js";
|
|
11
11
|
import user from "./user.js";
|
|
12
12
|
import variable from "./variable.js";
|
|
13
|
-
import lgeacyPush from "./push.js";
|
|
14
|
-
import legacyPull from "./pull.js";
|
|
15
13
|
import hub from "./hub.js";
|
|
16
14
|
import folder from "./folder.js";
|
|
17
15
|
import schedule from "./schedule.js";
|
|
@@ -25,14 +23,14 @@ import { NpmProvider } from "./upgrade.js";
|
|
|
25
23
|
import { pull as hubPull } from "./hub.js";
|
|
26
24
|
import { pull, push } from "./sync.js";
|
|
27
25
|
import { add as workspaceAdd } from "./workspace.js";
|
|
28
|
-
export { flow, app, script, workspace, resource, user, variable, hub, folder, schedule, sync, instance, dev,
|
|
26
|
+
export { flow, app, script, workspace, resource, user, variable, hub, folder, schedule, sync, instance, dev, hubPull, pull, push, workspaceAdd, };
|
|
29
27
|
// addEventListener("error", (event) => {
|
|
30
28
|
// if (event.error) {
|
|
31
29
|
// console.error("Error details of: " + event.error.message);
|
|
32
30
|
// console.error(JSON.stringify(event.error, null, 4));
|
|
33
31
|
// }
|
|
34
32
|
// });
|
|
35
|
-
export const VERSION = "1.393.
|
|
33
|
+
export const VERSION = "1.393.4";
|
|
36
34
|
let command = new Command()
|
|
37
35
|
.name("wmill")
|
|
38
36
|
.action(() => log.info(`Welcome to Windmill CLI ${VERSION}. Use -h for help.`))
|
|
@@ -87,9 +85,6 @@ let command = new Command()
|
|
|
87
85
|
provider: new NpmProvider({ package: "windmill-cli" }),
|
|
88
86
|
}))
|
|
89
87
|
.command("completions", new CompletionsCommand());
|
|
90
|
-
if (Number.parseInt(VERSION.replace("v", "").replace(".", "")) > 1700) {
|
|
91
|
-
command = command.command("push", lgeacyPush).command("pull", legacyPull);
|
|
92
|
-
}
|
|
93
88
|
export let showDiffs = false;
|
|
94
89
|
async function main() {
|
|
95
90
|
try {
|
|
@@ -128,20 +123,23 @@ async function main() {
|
|
|
128
123
|
throw e;
|
|
129
124
|
}
|
|
130
125
|
}
|
|
131
|
-
|
|
132
|
-
|
|
126
|
+
function isMain() {
|
|
127
|
+
// dnt-shim-ignore
|
|
128
|
+
const { Deno } = globalThis;
|
|
129
|
+
const isDeno = Deno != undefined;
|
|
130
|
+
if (isDeno) {
|
|
131
|
+
const isMain = (import.meta.url === ("file:///" + process.argv[1].replace(/\\/g, "/")).replace(/\/{3,}/, "///"));
|
|
132
|
+
if (isMain) {
|
|
133
|
+
log.warn("Using the deno runtime for the Windmill CLI is deprecated, you can now use node: deno uninstall wmill && npm install -g windmill-cli");
|
|
134
|
+
}
|
|
135
|
+
return isMain;
|
|
136
|
+
}
|
|
137
|
+
else {
|
|
138
|
+
//@ts-ignore
|
|
139
|
+
return esMain.default(import.meta);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
if (isMain()) {
|
|
133
143
|
main();
|
|
134
|
-
// test1();
|
|
135
|
-
// test2();
|
|
136
|
-
// module was not imported but called directly
|
|
137
144
|
}
|
|
138
|
-
// function test1() {
|
|
139
|
-
// // dnt-shim-ignore deno-lint-ignore no-explicit-any
|
|
140
|
-
// const { Deno, process } = globalThis as any;
|
|
141
|
-
// console.log(Deno);
|
|
142
|
-
// }
|
|
143
|
-
// function test2() {
|
|
144
|
-
// const { Deno, process } = globalThis as any;
|
|
145
|
-
// console.log(Deno);
|
|
146
|
-
// }
|
|
147
145
|
export default command;
|
package/esm/sync.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as dntShim from "./_dnt.shims.js";
|
|
2
2
|
import { fetchVersion, requireLogin, resolveWorkspace } from "./context.js";
|
|
3
|
-
import { colors, Command, Confirm, ensureDir, minimatch, path, ScriptService, FolderService, ResourceService, VariableService, AppService, FlowService, log, yamlStringify, yamlParse, ScheduleService, SEP,
|
|
3
|
+
import { colors, Command, Confirm, ensureDir, minimatch, path, ScriptService, FolderService, ResourceService, VariableService, AppService, FlowService, log, yamlStringify, yamlParse, ScheduleService, SEP, UserService, GroupService, } from "./deps.js";
|
|
4
4
|
import { getTypeStrFromPath, parseFromPath, pushObj, showConflict, showDiff, } from "./types.js";
|
|
5
5
|
import { downloadZip } from "./pull.js";
|
|
6
6
|
import { exts, findContentFile, findGlobalDeps, handleScriptMetadata, removeExtensionToPath, } from "./script.js";
|
|
@@ -666,32 +666,24 @@ export async function ignoreF(wmillconf) {
|
|
|
666
666
|
return ((!wmillconf.includes ||
|
|
667
667
|
wmillconf.includes?.some((i) => minimatch(file, i))) &&
|
|
668
668
|
(!wmillconf?.excludes ||
|
|
669
|
-
wmillconf.excludes.every((i) => !minimatch(file, i)))
|
|
669
|
+
wmillconf.excludes.every((i) => !minimatch(file, i))) &&
|
|
670
|
+
(!wmillconf.extraIncludes ||
|
|
671
|
+
wmillconf.extraIncludes.some((i) => minimatch(file, i))));
|
|
670
672
|
},
|
|
671
673
|
};
|
|
672
674
|
}
|
|
673
|
-
let ign = undefined;
|
|
674
675
|
try {
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
.split("\n")
|
|
678
|
-
.filter((l) => l != "" && !l.startsWith("#"))
|
|
679
|
-
.join(", ");
|
|
680
|
-
log.info(colors.gray(`(Deprecated, use wmill.yaml/includes instead) Using .wmillignore file (${condensed})`));
|
|
681
|
-
ign = gitignore_parser.compile(ignoreContent);
|
|
676
|
+
await dntShim.Deno.stat(".wmillignore");
|
|
677
|
+
throw Error(".wmillignore is not supported anymore, switch to wmill.yaml");
|
|
682
678
|
}
|
|
683
|
-
catch {
|
|
684
|
-
|
|
685
|
-
log.error("Cannot have both .wmillignore and wmill.yaml/includes or excludes, ignoring .wmillignore");
|
|
686
|
-
ign = undefined;
|
|
679
|
+
catch {
|
|
680
|
+
//expected
|
|
687
681
|
}
|
|
688
682
|
// new Gitignore.default({ initialRules: ignoreContent.split("\n")}).ignoreContent).compile();
|
|
689
683
|
return (p, isDirectory) => {
|
|
690
684
|
return (!isWhitelisted(p) &&
|
|
691
685
|
(isNotWmillFile(p, isDirectory) ||
|
|
692
|
-
(!isDirectory &&
|
|
693
|
-
((whitelist != undefined && !whitelist.approve(p)) ||
|
|
694
|
-
(ign != undefined && ign.denies(p))))));
|
|
686
|
+
(!isDirectory && whitelist != undefined && !whitelist.approve(p))));
|
|
695
687
|
};
|
|
696
688
|
}
|
|
697
689
|
export async function pull(opts) {
|
|
@@ -1093,7 +1085,7 @@ const command = new Command()
|
|
|
1093
1085
|
.description("sync local with a remote workspaces or the opposite (push or pull)")
|
|
1094
1086
|
.action(() => log.info("2 actions available, pull and push. Use -h to display help."))
|
|
1095
1087
|
.command("pull")
|
|
1096
|
-
.description("Pull any remote changes and apply them locally.
|
|
1088
|
+
.description("Pull any remote changes and apply them locally.")
|
|
1097
1089
|
.option("--fail-conflicts", "Error on conflicts (both remote and local have changes on the same item)")
|
|
1098
1090
|
.option("--raw", "Push without using state, just overwrite. (Default, has no effect)")
|
|
1099
1091
|
.option("--yes", "Pull without needing confirmation")
|
|
@@ -1108,12 +1100,13 @@ const command = new Command()
|
|
|
1108
1100
|
.option("--include-groups", "Include syncing groups")
|
|
1109
1101
|
.option("--include-settings", "Include syncing workspace settings")
|
|
1110
1102
|
.option("--include-key", "Include workspace encryption key")
|
|
1111
|
-
.option("-i --includes <patterns:file[]>", "Comma separated patterns to specify which file to take into account (among files that are compatible with windmill). Patterns can include * (any string until '/') and ** (any string)")
|
|
1112
|
-
.option("-e --excludes <patterns:file[]>", "Comma separated patterns to specify which file to NOT take into account.")
|
|
1103
|
+
.option("-i --includes <patterns:file[]>", "Comma separated patterns to specify which file to take into account (among files that are compatible with windmill). Patterns can include * (any string until '/') and ** (any string). Overrides wmill.yaml includes")
|
|
1104
|
+
.option("-e --excludes <patterns:file[]>", "Comma separated patterns to specify which file to NOT take into account. Overrides wmill.yaml excludes")
|
|
1105
|
+
.option("--extra-includes <patterns:file[]>", "Comma separated patterns to specify which file to take into account (among files that are compatible with windmill). Patterns can include * (any string until '/') and ** (any string). Useful to still take wmill.yaml into account and act as a second pattern to satisfy")
|
|
1113
1106
|
// deno-lint-ignore no-explicit-any
|
|
1114
1107
|
.action(pull)
|
|
1115
1108
|
.command("push")
|
|
1116
|
-
.description("Push any local changes and apply them remotely.
|
|
1109
|
+
.description("Push any local changes and apply them remotely.")
|
|
1117
1110
|
.option("--fail-conflicts", "Error on conflicts (both remote and local have changes on the same item)")
|
|
1118
1111
|
.option("--raw", "Push without using state, just overwrite. (Default, has no effect)")
|
|
1119
1112
|
.option("--stateful", "Pull using state tracking (use .wmill folder and needed for --fail-conflicts)w")
|
|
@@ -1131,6 +1124,7 @@ const command = new Command()
|
|
|
1131
1124
|
.option("--include-key", "Include workspace encryption key")
|
|
1132
1125
|
.option("-i --includes <patterns:file[]>", "Comma separated patterns to specify which file to take into account (among files that are compatible with windmill). Patterns can include * (any string until '/') and ** (any string)")
|
|
1133
1126
|
.option("-e --excludes <patterns:file[]>", "Comma separated patterns to specify which file to NOT take into account.")
|
|
1127
|
+
.option("--extra-includes <patterns:file[]>", "Comma separated patterns to specify which file to take into account (among files that are compatible with windmill). Patterns can include * (any string until '/') and ** (any string). Useful to still take wmill.yaml into account and act as a second pattern to satisfy")
|
|
1134
1128
|
.option("--message <message:string>", "Include a message that will be added to all scripts/flows/apps updated during this push")
|
|
1135
1129
|
// deno-lint-ignore no-explicit-any
|
|
1136
1130
|
.action(push);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "windmill-cli",
|
|
3
|
-
"version": "1.393.
|
|
3
|
+
"version": "1.393.4",
|
|
4
4
|
"description": "CLI for Windmill",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -33,7 +33,6 @@
|
|
|
33
33
|
"es-main": "*",
|
|
34
34
|
"esbuild": "*",
|
|
35
35
|
"express": "*",
|
|
36
|
-
"gitignore-parser": "*",
|
|
37
36
|
"jszip": "3.7.1",
|
|
38
37
|
"minimatch": "*",
|
|
39
38
|
"open": "*",
|
|
@@ -1,3 +1,27 @@
|
|
|
1
|
+
declare global {
|
|
2
|
+
interface ImportMeta {
|
|
3
|
+
/** A flag that indicates if the current module is the main module that was
|
|
4
|
+
* called when starting the program under Deno.
|
|
5
|
+
*
|
|
6
|
+
* ```ts
|
|
7
|
+
* if (import.meta.main) {
|
|
8
|
+
* // this was loaded as the main module, maybe do some bootstrapping
|
|
9
|
+
* }
|
|
10
|
+
* ```
|
|
11
|
+
*/
|
|
12
|
+
main: boolean;
|
|
13
|
+
/** A function that returns resolved specifier as if it would be imported
|
|
14
|
+
* using `import(specifier)`.
|
|
15
|
+
*
|
|
16
|
+
* ```ts
|
|
17
|
+
* console.log(import.meta.resolve("./foo.js"));
|
|
18
|
+
* // file:///dev/foo.js
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
resolve(specifier: string): string;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
export {};
|
|
1
25
|
declare global {
|
|
2
26
|
interface Object {
|
|
3
27
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_dnt.polyfills.d.ts","sourceRoot":"","sources":["../src/_dnt.polyfills.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"_dnt.polyfills.d.ts","sourceRoot":"","sources":["../src/_dnt.polyfills.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,UAAU;QAClB;;;;;;;;WAQG;QACH,IAAI,EAAE,OAAO,CAAC;QAEd;;;;;;;WAOG;QAEH,OAAO,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAAC;KACpC;CACF;AAED,OAAO,EAAE,CAAA;AAgBT,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd;;;;WAIG;QACH,MAAM,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC;KAC5C;CACF;AAED,OAAO,EAAE,CAAC;AAEV,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,gBAAgB;QACxB,SAAS,CAAC,CAAC,EACP,mBAAmB,EAAE,aAAa,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC,GAC7F,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC;QAEhB,SAAS,CAAC,CAAC,EAAE,CAAC,EACV,mBAAmB,EAAE,aAAa,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC,EAClE,KAAK,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,EAC/B,OAAO,CAAC,EAAE,GAAG,GACd,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;KAC1B;CACF;AAoID,OAAO,EAAE,CAAC"}
|
package/types/deps.d.ts
CHANGED
|
@@ -27,6 +27,5 @@ export * as express from "express";
|
|
|
27
27
|
export * as http from "node:http";
|
|
28
28
|
export { WebSocketServer, WebSocket } from "ws";
|
|
29
29
|
export * as open from "open";
|
|
30
|
-
export { default as gitignore_parser } from "gitignore-parser";
|
|
31
30
|
export * as esMain from "es-main";
|
|
32
31
|
//# sourceMappingURL=deps.d.ts.map
|
package/types/deps.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deps.d.ts","sourceRoot":"","sources":["../src/deps.ts"],"names":[],"mappings":"AACA,cAAc,iBAAiB,CAAC;AAGhC,OAAO,EAAE,OAAO,EAAE,MAAM,+DAA+D,CAAC;AACxF,OAAO,EAAE,KAAK,EAAE,MAAM,6DAA6D,CAAC;AACpF,OAAO,EAAE,MAAM,EAAE,MAAM,+DAA+D,CAAC;AACvF,OAAO,EAAE,MAAM,EAAE,MAAM,iEAAiE,CAAC;AACzF,OAAO,EAAE,MAAM,EAAE,MAAM,iEAAiE,CAAC;AACzF,OAAO,EAAE,OAAO,EAAE,MAAM,kEAAkE,CAAC;AAC3F,OAAO,EAAE,KAAK,EAAE,MAAM,gEAAgE,CAAC;AACvF,OAAO,EAAE,cAAc,EAAE,MAAM,uEAAuE,CAAC;AACvG,OAAO,EAAE,WAAW,EAAE,MAAM,gFAAgF,CAAC;AAC7G,OAAO,EAAE,QAAQ,EAAE,MAAM,uEAAuE,CAAC;AAEjG,OAAO,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAC;AAE/G,OAAO,EAAE,SAAS,EAAE,MAAM,oCAAoC,CAAC;AAC/D,OAAO,EAAE,SAAS,IAAI,GAAG,EAAE,MAAM,sCAAsC,CAAC;AACxE,OAAO,KAAK,IAAI,MAAM,sCAAsC,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAE,MAAM,0CAA0C,CAAC;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AACvE,OAAO,EAAE,YAAY,EAAE,MAAM,4CAA4C,CAAC;AAC1E,OAAO,EAAE,IAAI,EAAE,MAAM,uCAAuC,CAAC;AAC7D,OAAO,EAAE,OAAO,EAAE,MAAM,2CAA2C,CAAC;A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I,GAAG,EAAE,MAAM,sCAAsC,CAAC;AACxE,OAAO,KAAK,IAAI,MAAM,sCAAsC,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAE,MAAM,0CAA0C,CAAC;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AACvE,OAAO,EAAE,YAAY,EAAE,MAAM,4CAA4C,CAAC;AAC1E,OAAO,EAAE,IAAI,EAAE,MAAM,uCAAuC,CAAC;AAC7D,OAAO,EAAE,OAAO,EAAE,MAAM,2CAA2C,CAAC;AAEpE,OAAO,KAAK,GAAG,MAAM,uCAAuC,CAAC;AAC7D,OAAO,EAAE,SAAS,IAAI,aAAa,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAItG,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAC7B,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,OAAO,CAAC;AAEzC,OAAO,KAAK,OAAO,MAAM,SAAS,CAAC;AACnC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AAEhD,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAC7B,OAAO,KAAK,MAAM,MAAM,SAAS,CAAC"}
|
package/types/main.d.ts
CHANGED
|
@@ -8,8 +8,6 @@ import workspace from "./workspace.js";
|
|
|
8
8
|
import resource from "./resource.js";
|
|
9
9
|
import user from "./user.js";
|
|
10
10
|
import variable from "./variable.js";
|
|
11
|
-
import lgeacyPush from "./push.js";
|
|
12
|
-
import legacyPull from "./pull.js";
|
|
13
11
|
import hub from "./hub.js";
|
|
14
12
|
import folder from "./folder.js";
|
|
15
13
|
import schedule from "./schedule.js";
|
|
@@ -19,8 +17,8 @@ import dev from "./dev.js";
|
|
|
19
17
|
import { pull as hubPull } from "./hub.js";
|
|
20
18
|
import { pull, push } from "./sync.js";
|
|
21
19
|
import { add as workspaceAdd } from "./workspace.js";
|
|
22
|
-
export { flow, app, script, workspace, resource, user, variable, hub, folder, schedule, sync, instance, dev,
|
|
23
|
-
export declare const VERSION = "1.393.
|
|
20
|
+
export { flow, app, script, workspace, resource, user, variable, hub, folder, schedule, sync, instance, dev, hubPull, pull, push, workspaceAdd, };
|
|
21
|
+
export declare const VERSION = "1.393.4";
|
|
24
22
|
declare let command: any;
|
|
25
23
|
export declare let showDiffs: boolean;
|
|
26
24
|
export default command;
|
package/types/main.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":";AACA,OAAO,qBAAqB,CAAC;AAC7B,OAAO,qBAAqB,CAAC;AAW7B,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,GAAG,MAAM,WAAW,CAAC;AAC5B,OAAO,MAAM,MAAM,aAAa,CAAC;AACjC,OAAO,SAAiC,MAAM,gBAAgB,CAAC;AAC/D,OAAO,QAAQ,MAAM,eAAe,CAAC;AACrC,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,QAAQ,MAAM,eAAe,CAAC;AACrC,OAAO,
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":";AACA,OAAO,qBAAqB,CAAC;AAC7B,OAAO,qBAAqB,CAAC;AAW7B,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,GAAG,MAAM,WAAW,CAAC;AAC5B,OAAO,MAAM,MAAM,aAAa,CAAC;AACjC,OAAO,SAAiC,MAAM,gBAAgB,CAAC;AAC/D,OAAO,QAAQ,MAAM,eAAe,CAAC;AACrC,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,QAAQ,MAAM,eAAe,CAAC;AACrC,OAAO,GAAG,MAAM,UAAU,CAAC;AAC3B,OAAO,MAAM,MAAM,aAAa,CAAC;AACjC,OAAO,QAAQ,MAAM,eAAe,CAAC;AACrC,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,QAAQ,MAAM,eAAe,CAAC;AACrC,OAAO,GAAG,MAAM,UAAU,CAAC;AAM3B,OAAO,EAAE,IAAI,IAAI,OAAO,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,GAAG,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAErD,OAAO,EACL,IAAI,EACJ,GAAG,EACH,MAAM,EACN,SAAS,EACT,QAAQ,EACR,IAAI,EACJ,QAAQ,EACR,GAAG,EACH,MAAM,EACN,QAAQ,EACR,IAAI,EACJ,QAAQ,EACR,GAAG,EACH,OAAO,EACP,IAAI,EACJ,IAAI,EACJ,YAAY,GACb,CAAC;AASF,eAAO,MAAM,OAAO,YAAY,CAAC;AAEjC,QAAA,IAAI,OAAO,EAAE,GA+EsC,CAAC;AAEpD,eAAO,IAAI,SAAS,SAAQ,CAAC;AAgE7B,eAAe,OAAO,CAAC"}
|
package/types/sync.d.ts
CHANGED
|
@@ -49,6 +49,7 @@ export declare const isWhitelisted: (p: string) => boolean;
|
|
|
49
49
|
export declare function ignoreF(wmillconf: {
|
|
50
50
|
includes?: string[];
|
|
51
51
|
excludes?: string[];
|
|
52
|
+
extraIncludes?: string[];
|
|
52
53
|
}): Promise<(p: string, isDirectory: boolean) => boolean>;
|
|
53
54
|
export declare function pull(opts: GlobalOptions & SyncOptions): Promise<void>;
|
|
54
55
|
export declare function push(opts: GlobalOptions & SyncOptions): Promise<void>;
|
|
@@ -86,6 +87,8 @@ declare const command: Command<void, void, {
|
|
|
86
87
|
includes?: import("./deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/mod.js").FileType[] | undefined;
|
|
87
88
|
} & {
|
|
88
89
|
excludes?: import("./deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/mod.js").FileType[] | undefined;
|
|
90
|
+
} & {
|
|
91
|
+
extraIncludes?: import("./deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/mod.js").FileType[] | undefined;
|
|
89
92
|
} & {
|
|
90
93
|
message?: import("./deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/mod.js").StringType | undefined;
|
|
91
94
|
}, [], void, void, void, Command<void, void, void, [], void, {
|
package/types/sync.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sync.d.ts","sourceRoot":"","sources":["../src/sync.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,OAAO,EAaP,UAAU,
|
|
1
|
+
{"version":3,"file":"sync.d.ts","sourceRoot":"","sources":["../src/sync.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,OAAO,EAaP,UAAU,EASX,MAAM,WAAW,CAAC;AACnB,OAAO,EAEL,aAAa,EAKd,MAAM,YAAY,CAAC;AAapB,OAAO,EAAE,WAAW,EAA6B,MAAM,WAAW,CAAC;AAEnE,OAAO,EAAE,YAAY,EAAqB,MAAM,eAAe,CAAC;AAMhE,KAAK,YAAY,GAAG;IAClB,WAAW,EAAE,OAAO,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IAEb,cAAc,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;IAClC,WAAW,IAAI,aAAa,CAAC,YAAY,CAAC,CAAC;CAC5C,CAAC;AAEF,wBAAgB,YAAY,CAC1B,IAAI,EAAE,MAAM,EACZ,SAAS,EAAE,YAAY,EAAE,GACxB,YAAY,GAAG,SAAS,CAiC1B;AAsCD,wBAAsB,WAAW,CAC/B,CAAC,EAAE,MAAM,EACT,SAAS,EAAE,YAAY,EAAE,GACxB,OAAO,CAAC,YAAY,CAAC,CAoCvB;AAmBD,eAAO,MAAM,WAAW;kBACR,GAAG,KAAK,GAAG;;;;CAM1B,CAAC;AAEF,MAAM,WAAW,YAAY;IAC3B,IAAI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C;IACvC,YAAY,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACnC,aAAa,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACpC,eAAe,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACtC,UAAU,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAClC;AAkJD,eAAO,MAAM,aAAa,MAAO,MAAM,YAUtC,CAAC;AAEF,wBAAsB,OAAO,CAAC,SAAS,EAAE;IACvC,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;CAC1B,GAAG,OAAO,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,WAAW,EAAE,OAAO,KAAK,OAAO,CAAC,CAoCxD;AAED,wBAAsB,IAAI,CAAC,IAAI,EAAE,aAAa,GAAG,WAAW,iBA2O3D;AA+CD,wBAAsB,IAAI,CAAC,IAAI,EAAE,aAAa,GAAG,WAAW,iBA6R3D;AAED,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBA0FS,CAAC;AAEvB,eAAe,OAAO,CAAC"}
|
package/esm/push.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
// deno-lint-ignore-file no-explicit-any
|
|
2
|
-
import { colors, Command, log } from "./deps.js";
|
|
3
|
-
function stub(_opts, _dir) {
|
|
4
|
-
log.info(colors.red.underline('Push is deprecated. Use "sync push --raw" instead. See <TODO_LINK_HERE> for more information.'));
|
|
5
|
-
}
|
|
6
|
-
const command = new Command()
|
|
7
|
-
.description("Push all files from a folder")
|
|
8
|
-
.arguments("[dir:string]")
|
|
9
|
-
.action(stub);
|
|
10
|
-
export default command;
|
package/types/push.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Command } from "./deps.js";
|
|
2
|
-
declare const command: Command<void, void, void, [((import("./deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/mod.js").StringType & string) | undefined)?], void, {
|
|
3
|
-
number: number;
|
|
4
|
-
integer: number;
|
|
5
|
-
string: string;
|
|
6
|
-
boolean: boolean;
|
|
7
|
-
file: string;
|
|
8
|
-
}, void, undefined>;
|
|
9
|
-
export default command;
|
|
10
|
-
//# sourceMappingURL=push.d.ts.map
|
package/types/push.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"push.d.ts","sourceRoot":"","sources":["../src/push.ts"],"names":[],"mappings":"AACA,OAAO,EAAU,OAAO,EAAO,MAAM,WAAW,CAAC;AAWjD,QAAA,MAAM,OAAO;;;;;;mBAGS,CAAC;AAEvB,eAAe,OAAO,CAAC"}
|