From 8daba6ca80c082e719ec59dfd21d55436d90ee9a Mon Sep 17 00:00:00 2001 From: Joe Previte Date: Wed, 9 Dec 2020 12:20:56 -0700 Subject: [PATCH] feat: add home as a cli option --- src/node/cli.ts | 5 +++++ test/cli.test.ts | 1 + 2 files changed, 6 insertions(+) diff --git a/src/node/cli.ts b/src/node/cli.ts index b3017b66..6470b274 100644 --- a/src/node/cli.ts +++ b/src/node/cli.ts @@ -56,6 +56,7 @@ export interface Args extends VsArgs { "new-window"?: boolean link?: OptionalString + home?: string } interface Option { @@ -198,6 +199,10 @@ const options: Options> = { `, beta: true, }, + home: { + type: "string", + description: "Set a custom link for the 'Go Home' button in the Application Menu", + }, } export const optionDescriptions = (): string[] => { diff --git a/test/cli.test.ts b/test/cli.test.ts index 6e22e65a..30259639 100644 --- a/test/cli.test.ts +++ b/test/cli.test.ts @@ -86,6 +86,7 @@ describe("parser", () => { "extra-extensions-dir": [path.resolve("nozzle")], help: true, host: "0.0.0.0", + home: "https://localhost:8080/", json: true, log: "error", open: true,