Add service

This commit is contained in:
Daniel Bulant 2021-11-30 21:05:59 +01:00 committed by GitHub
parent 748ba3e368
commit 18a9079ee6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -87,6 +87,7 @@ export const mapPsOutput = (output: string): DockerComposePsResult => {
const [ const [
nameFragment, nameFragment,
commandFragment, commandFragment,
serviceFragment,
stateFragment, stateFragment,
untypedPortsFragment untypedPortsFragment
] = line.split(/\s{3,}/) ] = line.split(/\s{3,}/)
@ -94,6 +95,7 @@ export const mapPsOutput = (output: string): DockerComposePsResult => {
return { return {
name: nameFragment.trim(), name: nameFragment.trim(),
command: commandFragment.trim(), command: commandFragment.trim(),
service: serviceFragment.trim(),
state: stateFragment.trim(), state: stateFragment.trim(),
ports: mapPorts(untypedPortsFragment.trim()) ports: mapPorts(untypedPortsFragment.trim())
} }