small rms
This commit is contained in:
@@ -1,7 +1,5 @@
|
|||||||
import { DockerSC } from "./src/interface/docker";
|
import { DockerSC } from "./src/interface/docker";
|
||||||
|
|
||||||
console.log("Hello via Bun!");
|
|
||||||
|
|
||||||
const containers = await DockerSC.PS();
|
const containers = await DockerSC.PS();
|
||||||
containers.forEach(container => {
|
containers.forEach(container => {
|
||||||
console.log(`Name: ${container.Names}`)
|
console.log(`Name: ${container.Names}`)
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ const SC_ContainerInfo = z.object({
|
|||||||
state: z.unknown(),
|
state: z.unknown(),
|
||||||
created: z.date(),
|
created: z.date(),
|
||||||
})
|
})
|
||||||
type SC_ContainerInfoT = typeof SC_ContainerInfo;
|
type SC_ContainerInfoT = z.infer<typeof SC_ContainerInfo>;
|
||||||
|
|
||||||
async function PS (){
|
async function PS (){
|
||||||
const result = $`docker ps -a --format json`
|
const result = $`docker ps -a --format json`
|
||||||
|
|||||||
Reference in New Issue
Block a user