MCPcopy Create free account
hub / github.com/msgbyte/tailchat / handler

Function handler

apps/cli/src/commands/docker/doctor.ts:10–31  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

8 describe: 'docker environment check',
9 builder: undefined,
10 async handler(args) {
11 const docker = new Docker();
12
13 const images = await docker.listImages();
14 const tailchatImages = images.filter((image) =>
15 (image.RepoTags ?? []).some((tag) => tag.includes('tailchat'))
16 );
17
18 console.log('Tailchat image list:');
19 console.log(
20 asTable.configure({ delimiter: ' | ' })(
21 tailchatImages.map((image) => ({
22 tag: (image.RepoTags ?? []).join(','),
23 id: image.Id.substring(0, 12),
24 size: filesize(image.Size),
25 }))
26 )
27 );
28
29 const info = await docker.info();
30 console.log('info', info);
31 },
32};

Callers

nothing calls this directly

Calls 3

joinMethod · 0.80
infoMethod · 0.80
logMethod · 0.65

Tested by

no test coverage detected