npm run format

Signed-off-by: Phred <fearphage@gmail.com>
This commit is contained in:
Phred 2021-08-06 09:33:45 -05:00
parent af4fd4efb5
commit 9720455de9
No known key found for this signature in database
GPG Key ID: 8103F27168DAA2A0
2 changed files with 3 additions and 8 deletions

View File

@ -644,7 +644,7 @@ describe('flagMap', () => {
expect(results).toEqual([ expect(results).toEqual([
['--catpants', 'a'], ['--catpants', 'a'],
['--catpants', 'b'], ['--catpants', 'b'],
['--catpants', 'c'], ['--catpants', 'c']
]); ]);
}); });
}); });

View File

@ -88,12 +88,7 @@ export async function getInputs(defaultContext: string): Promise<Inputs> {
} }
export async function getArgs(inputs: Inputs, defaultContext: string, buildxVersion: string): Promise<Array<string>> { export async function getArgs(inputs: Inputs, defaultContext: string, buildxVersion: string): Promise<Array<string>> {
return [ return ['buildx', ...(await getBuildArgs(inputs, defaultContext, buildxVersion)), ...(await getCommonArgs(inputs)), inputs.context];
'buildx',
...await getBuildArgs(inputs, defaultContext, buildxVersion),
...await getCommonArgs(inputs),
inputs.context,
];
} }
async function getBuildArgs(inputs: Inputs, defaultContext: string, buildxVersion: string): Promise<Array<string>> { async function getBuildArgs(inputs: Inputs, defaultContext: string, buildxVersion: string): Promise<Array<string>> {
@ -104,7 +99,7 @@ async function getBuildArgs(inputs: Inputs, defaultContext: string, buildxVersio
...flagMap(inputs.labels, '--label'), ...flagMap(inputs.labels, '--label'),
...flagMap(inputs.outputs, '--output'), ...flagMap(inputs.outputs, '--output'),
...flagMap(inputs.tags, '--tag'), ...flagMap(inputs.tags, '--tag'),
...flagMap(inputs.ssh, '--ssh'), ...flagMap(inputs.ssh, '--ssh')
); );
if (inputs.target) { if (inputs.target) {