Skip to content

Commit

Permalink
feat: expose --profiles-path madwizard option
Browse files Browse the repository at this point in the history
  • Loading branch information
starpit committed Sep 26, 2022
1 parent 58a1d99 commit d25b805
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion plugins/plugin-madwizard/src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ export interface Options extends ParsedOptions {
/** Use this named profile */
profile: string

/** Absolute path to profiles directory */
P: string

/** Absolute path to profiles directory */
"profiles-path": string

/** Do not tee logs to the console */
q: boolean

Expand Down Expand Up @@ -131,6 +137,7 @@ export function doMadwizard({ readonlyUI = true, task, withFilepath = true, cb,
undefined,
{
profile,
profilesPath: parsedOptions.P,
store: parsedOptions.s || process.env.GUIDEBOOK_STORE,
verbose: parsedOptions.V,
interactive: parsedOptions.i || !parsedOptions.y,
Expand Down Expand Up @@ -158,7 +165,16 @@ export function doMadwizard({ readonlyUI = true, task, withFilepath = true, cb,
export const flags = {
boolean: ["u", "V", "n", "q", "i", "y"],
configuration: { "populate--": true },
alias: { store: ["s"], quiet: ["q"], interactive: ["i"], yes: ["y"], profile: ["p"], verbose: ["V"], team: ["t"] },
alias: {
store: ["s"],
quiet: ["q"],
interactive: ["i"],
yes: ["y"],
profile: ["p"],
"profiles-path": ["P"],
verbose: ["V"],
team: ["t"],
},
}

/** Register Kui Commands */
Expand Down

0 comments on commit d25b805

Please sign in to comment.