Skip to content

Commit 4796bd9

Browse files
smessieAlexZeitler
authored andcommitted
chore: Add options parameter to stats function
1 parent c1c7e97 commit 4796bd9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -707,12 +707,13 @@ export const version = async function (
707707
}
708708

709709
export const stats = async function (
710-
service: string
710+
service: string,
711+
options?: IDockerComposeOptions
711712
): Promise<DockerComposeStatsResult> {
712713
const args = ['--no-stream', '--format', '"{{ json . }}"', service]
713714

714715
try {
715-
const result = await execCompose('stats', args)
716+
const result = await execCompose('stats', args, options)
716717
// Remove first and last quote from output, as well as newline.
717718
const output = result.out.replace('\n', '').trim().slice(1, -1)
718719
return JSON.parse(output)

0 commit comments

Comments
 (0)