File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ export class Builder {
55
55
return ok ;
56
56
}
57
57
58
- public async inspect ( name : string ) : Promise < BuilderInfo > {
58
+ public async inspect ( name ? : string ) : Promise < BuilderInfo > {
59
59
// always enable debug for inspect command, so we can display additional
60
60
// fields such as features: https://github.com/docker/buildx/pull/1854
61
61
const envs = Object . assign ( { } , process . env , {
@@ -64,7 +64,12 @@ export class Builder {
64
64
[ key : string ] : string ;
65
65
} ;
66
66
67
- const cmd = await this . buildx . getCommand ( [ 'inspect' , name ] ) ;
67
+ const args = [ 'inspect' ] ;
68
+ if ( name ) {
69
+ args . push ( name ) ;
70
+ }
71
+
72
+ const cmd = await this . buildx . getCommand ( args ) ;
68
73
return await Exec . getExecOutput ( cmd . command , cmd . args , {
69
74
ignoreReturnCode : true ,
70
75
silent : true ,
You can’t perform that action at this time.
0 commit comments