Merge pull request #505 from crazy-max/bake-call

bake: missing call and allow cmd opts
This commit is contained in:
CrazyMax
2024-11-26 17:54:12 +01:00
committed by GitHub

View File

@@ -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');
}