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 {
|
||||
allow?: Array<string>;
|
||||
call?: string;
|
||||
files?: Array<string>;
|
||||
load?: boolean;
|
||||
noCache?: boolean;
|
||||
@@ -142,6 +144,14 @@ export class Bake {
|
||||
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) {
|
||||
args.push('--load');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user