Merge pull request #505 from crazy-max/bake-call
bake: missing call and allow cmd opts
This commit is contained in:
@@ -33,6 +33,8 @@ export interface BakeOpts {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface BakeCmdOpts {
|
export interface BakeCmdOpts {
|
||||||
|
allow?: Array<string>;
|
||||||
|
call?: string;
|
||||||
files?: Array<string>;
|
files?: Array<string>;
|
||||||
load?: boolean;
|
load?: boolean;
|
||||||
noCache?: boolean;
|
noCache?: boolean;
|
||||||
@@ -142,6 +144,14 @@ export class Bake {
|
|||||||
args.push('--set', override);
|
args.push('--set', override);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (cmdOpts.allow) {
|
||||||
|
for (const allow of cmdOpts.allow) {
|
||||||
|
args.push('--allow', allow);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (cmdOpts.call) {
|
||||||
|
args.push('--call', cmdOpts.call);
|
||||||
|
}
|
||||||
if (cmdOpts.load) {
|
if (cmdOpts.load) {
|
||||||
args.push('--load');
|
args.push('--load');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user