mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-18 16:02:10 +00:00
nit cli
This commit is contained in:
+6
-6
@@ -41,6 +41,7 @@ import { SyncCodebase, listSyncCodebases } from "./codebase.ts";
|
||||
import {
|
||||
generateFlowLockInternal,
|
||||
generateScriptMetadataInternal,
|
||||
readLockfile,
|
||||
} from "./metadata.ts";
|
||||
import { FlowModule, OpenFlow, RawScript } from "./gen/types.gen.ts";
|
||||
import { pushResource } from "./resource.ts";
|
||||
@@ -343,7 +344,7 @@ export function newPathAssigner(defaultTs: "bun" | "deno"): PathAssigner {
|
||||
else if (language == "nu") ext = "nu";
|
||||
else if (language == "ansible") ext = "playbook.yml";
|
||||
else if (language == "java") ext = "java";
|
||||
// for related places search: ADD_NEW_LANG
|
||||
// for related places search: ADD_NEW_LANG
|
||||
else ext = "no_ext";
|
||||
|
||||
return [`${name}.inline_script.`, ext];
|
||||
@@ -659,9 +660,8 @@ export async function elementsToMap(
|
||||
path.endsWith(".nats_trigger" + ext) ||
|
||||
path.endsWith(".postgres_trigger" + ext) ||
|
||||
path.endsWith(".mqtt_trigger" + ext) ||
|
||||
path.endsWith(".sqs_trigger" + ext) ||
|
||||
path.endsWith(".gcp_trigger" + ext)
|
||||
)
|
||||
path.endsWith(".sqs_trigger" + ext) ||
|
||||
path.endsWith(".gcp_trigger" + ext))
|
||||
)
|
||||
continue;
|
||||
if (!skips.includeUsers && path.endsWith(".user" + ext)) continue;
|
||||
@@ -695,7 +695,7 @@ export async function elementsToMap(
|
||||
"yml",
|
||||
"nu",
|
||||
"java",
|
||||
// for related places search: ADD_NEW_LANG
|
||||
// for related places search: ADD_NEW_LANG
|
||||
].includes(path.split(".").pop() ?? "") &&
|
||||
!isFileResource(path)
|
||||
)
|
||||
@@ -1273,7 +1273,7 @@ export async function pull(opts: GlobalOptions & SyncOptions) {
|
||||
}
|
||||
}
|
||||
log.info("All local changes pulled, now updating wmill-lock.yaml");
|
||||
|
||||
await readLockfile(); // ensure wmill-lock.yaml exists
|
||||
const globalDeps = await findGlobalDeps();
|
||||
|
||||
const tracker: ChangeTracker = await buildTracker(changes);
|
||||
|
||||
Reference in New Issue
Block a user