File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ export class Builder {
5555 return ok ;
5656 }
5757
58- public async inspect ( name : string ) : Promise < BuilderInfo > {
58+ public async inspect ( name ? : string ) : Promise < BuilderInfo > {
5959 // always enable debug for inspect command, so we can display additional
6060 // fields such as features: https://github.com/docker/buildx/pull/1854
6161 const envs = Object . assign ( { } , process . env , {
@@ -64,7 +64,12 @@ export class Builder {
6464 [ key : string ] : string ;
6565 } ;
6666
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 ) ;
6873 return await Exec . getExecOutput ( cmd . command , cmd . args , {
6974 ignoreReturnCode : true ,
7075 silent : true ,
You can’t perform that action at this time.
0 commit comments