mirror of
https://github.com/danbulant/docker-compose
synced 2026-05-24 12:35:32 +00:00
Add service
This commit is contained in:
parent
748ba3e368
commit
18a9079ee6
1 changed files with 2 additions and 0 deletions
|
|
@ -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())
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue