buildx: printInspect

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax
2023-01-30 00:19:03 +01:00
parent c857b8425c
commit 4259682b27
3 changed files with 25 additions and 1 deletions

View File

@@ -49,6 +49,13 @@ export class Buildx {
});
}
public async printInspect(name: string): Promise<void> {
const cmd = this.getCommand(['inspect', name]);
await exec.exec(cmd.command, cmd.args, {
failOnStdErr: false
});
}
private async getVersion(): Promise<string> {
const cmd = this.getCommand(['version']);
return await exec