refactor(cli): rename wmill dev --no-browser to --no-open

Match the pre-existing `wmill app dev --no-open` flag. Having
`--no-browser` on one dev command and `--no-open` on the other was
just an oversight from my earlier change. All three launch.json
templates (init, flow new, sync pull) switch to `--no-open`.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Guilhem Lemouel
2026-04-23 19:03:32 +02:00
co-authored by Claude Opus 4.7
parent 015ce0262e
commit 694f8c910b
8 changed files with 10 additions and 10 deletions
+3 -3
View File
@@ -186,7 +186,7 @@ async function listWorkspacePaths(): Promise<WmPathItem[]> {
export interface DevOpts {
proxyPort?: number;
path?: string;
browser?: boolean;
open?: boolean;
}
export async function dev(opts: GlobalOptions & SyncOptions & DevOpts) {
@@ -614,7 +614,7 @@ export async function dev(opts: GlobalOptions & SyncOptions & DevOpts) {
}
function maybeOpenBrowser(url: string) {
if (opts.browser === false) return;
if (opts.open === false) return;
try {
open.default(url).catch((error) => {
console.error(
@@ -807,7 +807,7 @@ const command = new Command()
"Watch a specific windmill path (e.g., u/admin/my_script or f/my_flow)"
)
.option(
"--no-browser",
"--no-open",
"Do not open the browser automatically"
)
.action(dev as any);
+1 -1
View File
@@ -744,7 +744,7 @@ export async function bootstrap(
configurations: [{
name: "windmill",
runtimeExecutable: "bash",
runtimeArgs: ["-c", "wmill dev --proxy-port ${PORT:-4000} --no-browser"],
runtimeArgs: ["-c", "wmill dev --proxy-port ${PORT:-4000} --no-open"],
port: 4000,
autoPort: true,
}],
+1 -1
View File
@@ -282,7 +282,7 @@ async function initAction(opts: InitOptions) {
configurations: [{
name: "windmill",
runtimeExecutable: "bash",
runtimeArgs: ["-c", "wmill dev --proxy-port ${PORT:-4000} --no-browser"],
runtimeArgs: ["-c", "wmill dev --proxy-port ${PORT:-4000} --no-open"],
port: 4000,
autoPort: true,
}],
+1 -1
View File
@@ -2489,7 +2489,7 @@ export async function pull(
configurations: [{
name: "windmill",
runtimeExecutable: "bash",
runtimeArgs: ["-c", "wmill dev --proxy-port ${PORT:-4000}"],
runtimeArgs: ["-c", "wmill dev --proxy-port ${PORT:-4000} --no-open"],
port: 4000,
autoPort: true,
}],
+1 -1
View File
@@ -5335,7 +5335,7 @@ Launch a dev server that watches for local file changes and auto-pushes them to
- \`--includes <pattern...:string>\` - Filter paths givena glob pattern or path
- \`--proxy-port <port:number>\` - Port for a localhost reverse proxy to the remote Windmill server
- \`--path <path:string>\` - Watch a specific windmill path (e.g., u/admin/my_script or f/my_flow)
- \`--no-browser\` - Do not open the browser automatically
- \`--no-open\` - Do not open the browser automatically
### docs
@@ -77,7 +77,7 @@ Launch a dev server that watches for local file changes and auto-pushes them to
- `--includes <pattern...:string>` - Filter paths givena glob pattern or path
- `--proxy-port <port:number>` - Port for a localhost reverse proxy to the remote Windmill server
- `--path <path:string>` - Watch a specific windmill path (e.g., u/admin/my_script or f/my_flow)
- `--no-browser` - Do not open the browser automatically
- `--no-open` - Do not open the browser automatically
### docs
+1 -1
View File
@@ -1836,7 +1836,7 @@ Launch a dev server that watches for local file changes and auto-pushes them to
- \`--includes <pattern...:string>\` - Filter paths givena glob pattern or path
- \`--proxy-port <port:number>\` - Port for a localhost reverse proxy to the remote Windmill server
- \`--path <path:string>\` - Watch a specific windmill path (e.g., u/admin/my_script or f/my_flow)
- \`--no-browser\` - Do not open the browser automatically
- \`--no-open\` - Do not open the browser automatically
### docs
@@ -82,7 +82,7 @@ Launch a dev server that watches for local file changes and auto-pushes them to
- `--includes <pattern...:string>` - Filter paths givena glob pattern or path
- `--proxy-port <port:number>` - Port for a localhost reverse proxy to the remote Windmill server
- `--path <path:string>` - Watch a specific windmill path (e.g., u/admin/my_script or f/my_flow)
- `--no-browser` - Do not open the browser automatically
- `--no-open` - Do not open the browser automatically
### docs