We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
options
stats
1 parent c1c7e97 commit 4796bd9Copy full SHA for 4796bd9
src/index.ts
@@ -707,12 +707,13 @@ export const version = async function (
707
}
708
709
export const stats = async function (
710
- service: string
+ service: string,
711
+ options?: IDockerComposeOptions
712
): Promise<DockerComposeStatsResult> {
713
const args = ['--no-stream', '--format', '"{{ json . }}"', service]
714
715
try {
- const result = await execCompose('stats', args)
716
+ const result = await execCompose('stats', args, options)
717
// Remove first and last quote from output, as well as newline.
718
const output = result.out.replace('\n', '').trim().slice(1, -1)
719
return JSON.parse(output)
0 commit comments