feat: add home as a cli option
This commit is contained in:
parent
1dd7e4b4e1
commit
8daba6ca80
|
@ -56,6 +56,7 @@ export interface Args extends VsArgs {
|
||||||
"new-window"?: boolean
|
"new-window"?: boolean
|
||||||
|
|
||||||
link?: OptionalString
|
link?: OptionalString
|
||||||
|
home?: string
|
||||||
}
|
}
|
||||||
|
|
||||||
interface Option<T> {
|
interface Option<T> {
|
||||||
|
@ -198,6 +199,10 @@ const options: Options<Required<Args>> = {
|
||||||
`,
|
`,
|
||||||
beta: true,
|
beta: true,
|
||||||
},
|
},
|
||||||
|
home: {
|
||||||
|
type: "string",
|
||||||
|
description: "Set a custom link for the 'Go Home' button in the Application Menu",
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
export const optionDescriptions = (): string[] => {
|
export const optionDescriptions = (): string[] => {
|
||||||
|
|
|
@ -86,6 +86,7 @@ describe("parser", () => {
|
||||||
"extra-extensions-dir": [path.resolve("nozzle")],
|
"extra-extensions-dir": [path.resolve("nozzle")],
|
||||||
help: true,
|
help: true,
|
||||||
host: "0.0.0.0",
|
host: "0.0.0.0",
|
||||||
|
home: "https://localhost:8080/",
|
||||||
json: true,
|
json: true,
|
||||||
log: "error",
|
log: "error",
|
||||||
open: true,
|
open: true,
|
||||||
|
|
Loading…
Reference in New Issue