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