Skip to content

Commit b42d04b

Browse files
committed
feat: add home as a cli option
1 parent 1dd7e4b commit b42d04b

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/node/cli.ts

+5
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ export interface Args extends VsArgs {
5656
"new-window"?: boolean
5757

5858
link?: OptionalString
59+
home?: string
5960
}
6061

6162
interface Option<T> {
@@ -198,6 +199,10 @@ const options: Options<Required<Args>> = {
198199
`,
199200
beta: true,
200201
},
202+
home: {
203+
type: "string",
204+
description: "Set a custom link for the 'Go Home' button in the Application Menu",
205+
},
201206
}
202207

203208
export const optionDescriptions = (): string[] => {

test/cli.test.ts

+1
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ describe("parser", () => {
8686
"extra-extensions-dir": [path.resolve("nozzle")],
8787
help: true,
8888
host: "0.0.0.0",
89+
home: "https://localhost:8080/",
8990
json: true,
9091
log: "error",
9192
open: true,

0 commit comments

Comments
 (0)