feat: add home as a cli option

This commit is contained in:
Joe Previte 2020-12-09 12:20:56 -07:00
parent 1dd7e4b4e1
commit 8daba6ca80
No known key found for this signature in database
GPG Key ID: 2C91590C6B742C24
2 changed files with 6 additions and 0 deletions

View File

@ -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[] => {

View File

@ -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,