Skip to content

cli: add --home flag to customize "Go Home" button #2435

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Dec 15, 2020
Next Next commit
feat: add home as a cli option
  • Loading branch information
jsjoeio committed Dec 14, 2020
commit 8daba6ca80c082e719ec59dfd21d55436d90ee9a
5 changes: 5 additions & 0 deletions src/node/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ export interface Args extends VsArgs {
"new-window"?: boolean

link?: OptionalString
home?: string
}

interface Option<T> {
Expand Down Expand Up @@ -198,6 +199,10 @@ const options: Options<Required<Args>> = {
`,
beta: true,
},
home: {
type: "string",
description: "Set a custom link for the 'Go Home' button in the Application Menu",
},
}

export const optionDescriptions = (): string[] => {
Expand Down
1 change: 1 addition & 0 deletions test/cli.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down