Skip to content

Commit d25b805

Browse files
committed
feat: expose --profiles-path madwizard option
1 parent 58a1d99 commit d25b805

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

Diff for: plugins/plugin-madwizard/src/plugin.ts

+17-1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@ export interface Options extends ParsedOptions {
4141
/** Use this named profile */
4242
profile: string
4343

44+
/** Absolute path to profiles directory */
45+
P: string
46+
47+
/** Absolute path to profiles directory */
48+
"profiles-path": string
49+
4450
/** Do not tee logs to the console */
4551
q: boolean
4652

@@ -131,6 +137,7 @@ export function doMadwizard({ readonlyUI = true, task, withFilepath = true, cb,
131137
undefined,
132138
{
133139
profile,
140+
profilesPath: parsedOptions.P,
134141
store: parsedOptions.s || process.env.GUIDEBOOK_STORE,
135142
verbose: parsedOptions.V,
136143
interactive: parsedOptions.i || !parsedOptions.y,
@@ -158,7 +165,16 @@ export function doMadwizard({ readonlyUI = true, task, withFilepath = true, cb,
158165
export const flags = {
159166
boolean: ["u", "V", "n", "q", "i", "y"],
160167
configuration: { "populate--": true },
161-
alias: { store: ["s"], quiet: ["q"], interactive: ["i"], yes: ["y"], profile: ["p"], verbose: ["V"], team: ["t"] },
168+
alias: {
169+
store: ["s"],
170+
quiet: ["q"],
171+
interactive: ["i"],
172+
yes: ["y"],
173+
profile: ["p"],
174+
"profiles-path": ["P"],
175+
verbose: ["V"],
176+
team: ["t"],
177+
},
162178
}
163179

164180
/** Register Kui Commands */

0 commit comments

Comments
 (0)