From f064748aa072f86f6a55656db1bf4fac3563442c Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Sat, 19 Oct 2024 12:15:59 +0200 Subject: [PATCH] fix(cli): improve wmill init behavior --- cli/main.ts | 6 +++++- .../routes/(root)/(logged)/workspace_settings/+page.svelte | 4 +++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/cli/main.ts b/cli/main.ts index d096ed5be1..08f98e4c0c 100644 --- a/cli/main.ts +++ b/cli/main.ts @@ -101,9 +101,13 @@ const command = new Command() "wmill.yaml", yamlStringify({ defaultTs: "bun", - includes: ["**"], + includes: ["f/**"], excludes: [], codebases: [], + skipVariables: true, + skipResources: true, + skipSecrets: true, + includeSchedules: false, }) ); log.info(colors.green("wmill.yaml created")); diff --git a/frontend/src/routes/(root)/(logged)/workspace_settings/+page.svelte b/frontend/src/routes/(root)/(logged)/workspace_settings/+page.svelte index dcef769e29..62288e0b1f 100644 --- a/frontend/src/routes/(root)/(logged)/workspace_settings/+page.svelte +++ b/frontend/src/routes/(root)/(logged)/workspace_settings/+page.svelte @@ -1626,8 +1626,10 @@
wmill workspace add  {$workspaceStore} {$workspaceStore} {`${$page.url.protocol}//${$page.url.hostname}/`}
+								>npm install -g windmill-cli
+wmill workspace add  {$workspaceStore} {$workspaceStore} {`${$page.url.protocol}//${$page.url.hostname}/`}
 wmill init
+# adjust wmill.yaml file configuraton as needed
 wmill sync pull
 git add -A
 git commit -m 'Initial commit'