Merge branch 'main' into run-flow

This commit is contained in:
Kai Jellinghaus
2022-11-23 21:25:51 +01:00
committed by GitHub
11 changed files with 22 additions and 15 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ import { colors } from "https://deno.land/x/cliffy@v0.25.4/ansi/colors.ts";
import {
setClient,
UserService,
} from "https://deno.land/x/windmill@v1.41.0/mod.ts";
} from "https://deno.land/x/windmill@v1.50.0/mod.ts";
import { getToken } from "./login.ts";
import { getDefaultRemote, getRemote } from "./remote.ts";
import { getStore } from "./store.ts";
+2 -2
View File
@@ -2,12 +2,12 @@ import { Command } from "https://deno.land/x/cliffy@v0.25.4/command/command.ts";
import {
FlowService,
JobService,
} from "https://deno.land/x/windmill@v1.41.0/mod.ts";
} from "https://deno.land/x/windmill@v1.50.0/mod.ts";
import { GlobalOptions } from "./types.ts";
import {
Flow,
OpenFlow,
} from "https://deno.land/x/windmill@v1.41.0/windmill-api/index.ts";
} from "https://deno.land/x/windmill@v1.50.0/windmill-api/index.ts";
import { colors } from "https://deno.land/x/cliffy@v0.25.4/ansi/colors.ts";
import { getContext } from "./context.ts";
import { Table } from "https://deno.land/x/cliffy@v0.25.4/table/table.ts";
+1 -1
View File
@@ -7,7 +7,7 @@ import { GlobalOptions } from "./types.ts";
import {
setClient,
UserService,
} from "https://deno.land/x/windmill@v1.41.0/mod.ts";
} from "https://deno.land/x/windmill@v1.50.0/mod.ts";
import { colors } from "https://deno.land/x/cliffy@v0.25.4/ansi/colors.ts";
import { getStore } from "./store.ts";
import { getDefaultRemote, getRemote } from "./remote.ts";
+2 -2
View File
@@ -1,9 +1,9 @@
import { Command } from "https://deno.land/x/cliffy@v0.25.4/command/command.ts";
import { ResourceService } from "https://deno.land/x/windmill@v1.41.0/mod.ts";
import { ResourceService } from "https://deno.land/x/windmill@v1.50.0/mod.ts";
import { GlobalOptions } from "./types.ts";
import { colors } from "https://deno.land/x/cliffy@v0.25.4/ansi/colors.ts";
import { getContext } from "./context.ts";
import { Resource } from "https://deno.land/x/windmill@v1.41.0/windmill-api/index.ts";
import { Resource } from "https://deno.land/x/windmill@v1.50.0/windmill-api/index.ts";
import { Table } from "https://deno.land/x/cliffy@v0.25.4/table/table.ts";
type ResourceFile = {
+2 -2
View File
@@ -1,5 +1,5 @@
import { Command } from "https://deno.land/x/cliffy@v0.25.4/command/command.ts";
import { ScriptService } from "https://deno.land/x/windmill@v1.41.0/mod.ts";
import { ScriptService } from "https://deno.land/x/windmill@v1.50.0/mod.ts";
import { GlobalOptions } from "./types.ts";
import { colors } from "https://deno.land/x/cliffy@v0.25.4/ansi/colors.ts";
import { getContext } from "./context.ts";
@@ -7,7 +7,7 @@ import {
Job,
JobService,
Script,
} from "https://deno.land/x/windmill@v1.41.0/windmill-api/index.ts";
} from "https://deno.land/x/windmill@v1.50.0/windmill-api/index.ts";
import { Table } from "https://deno.land/x/cliffy@v0.25.4/table/table.ts";
import { green } from "https://deno.land/std@0.161.0/fmt/colors.ts";
+1 -1
View File
@@ -10,7 +10,7 @@ import {
setClient,
UserService,
WorkspaceService,
} from "https://deno.land/x/windmill@v1.41.0/mod.ts";
} from "https://deno.land/x/windmill@v1.50.0/mod.ts";
import { getStore } from "./store.ts";
import { add as addRemote, setDefault as setDefaultRemote } from "./remote.ts";
+6 -3
View File
@@ -1,11 +1,12 @@
import { Command } from "https://deno.land/x/cliffy@v0.25.4/command/command.ts";
import { Table } from "https://deno.land/x/cliffy@v0.25.4/table/table.ts";
import { UserService } from "https://deno.land/x/windmill@v1.41.0/mod.ts";
import { GlobalUserInfo } from "https://deno.land/x/windmill@v1.41.0/windmill-api/index.ts";
import { UserService } from "https://deno.land/x/windmill@v1.50.0/mod.ts";
import { GlobalUserInfo } from "https://deno.land/x/windmill@v1.50.0/windmill-api/index.ts";
import { passwordGenerator } from "https://deno.land/x/password_generator@latest/mod.ts"; // TODO: I think the version is called latest, but it's still pinned.
import { getContext } from "./context.ts";
import { GlobalOptions } from "./types.ts";
import { colors } from "https://deno.land/x/cliffy@v0.25.4/ansi/colors.ts";
import { Input } from "https://deno.land/x/cliffy@v0.25.4/prompt/input.ts";
async function list(opts: GlobalOptions) {
const _ = await getContext(opts);
@@ -66,7 +67,9 @@ async function add(
}
async function remove(opts: GlobalOptions, email: string) {
const _ = await getContext(opts);
throw new Error("API unsupported");
await UserService.globalUserDelete({ email });
console.log(colors.green("Deleted User " + email));
}
const command = new Command()
+1 -1
View File
@@ -1,7 +1,7 @@
import { colors } from "https://deno.land/x/cliffy@v0.25.4/ansi/colors.ts";
import { Command } from "https://deno.land/x/cliffy@v0.25.4/command/command.ts";
import { Table } from "https://deno.land/x/cliffy@v0.25.4/table/table.ts";
import { VariableService } from "https://deno.land/x/windmill@v1.41.0/mod.ts";
import { VariableService } from "https://deno.land/x/windmill@v1.50.0/mod.ts";
import { getContext } from "./context.ts";
import { GlobalOptions } from "./types.ts";
+1 -1
View File
@@ -1,6 +1,6 @@
import { Command } from "https://deno.land/x/cliffy@v0.25.4/command/command.ts";
import { GlobalOptions } from "./types.ts";
import { WorkspaceService } from "https://deno.land/x/windmill@v1.41.0/windmill-api/index.ts";
import { WorkspaceService } from "https://deno.land/x/windmill@v1.50.0/windmill-api/index.ts";
import { colors } from "https://deno.land/x/cliffy@v0.25.4/ansi/colors.ts";
import { Table } from "https://deno.land/x/cliffy@v0.25.4/table/mod.ts";
import { getContext } from "./context.ts";
@@ -16,5 +16,5 @@
<InputValue input={componentInputs.content} bind:value={contentValue} />
<AlignWrapper {horizontalAlignement} {verticalAlignement}>
<SvelteMarkdown source={contentValue} />
<SvelteMarkdown source={String(contentValue)} />
</AlignWrapper>
@@ -147,6 +147,10 @@
)
async function executeComponent() {
if (!schema) {
return
}
outputs?.loading.set(true)
await testJobLoader?.abstractRun(() => {