mirror of
https://github.com/docker/compose.git
synced 2026-06-29 12:44:26 +00:00
introduce ability to select service to be stopped by compose down
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
parent
68c462e607
commit
93bd27a0cc
6 changed files with 28 additions and 6 deletions
|
|
@ -153,6 +153,15 @@ func RemovedEvent(id string) Event {
|
|||
return NewEvent(id, Done, "Removed")
|
||||
}
|
||||
|
||||
// SkippedEvent creates a new Skipped Event
|
||||
func SkippedEvent(id string, reason string) Event {
|
||||
return Event{
|
||||
ID: id,
|
||||
Status: Warning,
|
||||
StatusText: "Skipped: " + reason,
|
||||
}
|
||||
}
|
||||
|
||||
// NewEvent new event
|
||||
func NewEvent(id string, status EventStatus, statusText string) Event {
|
||||
return Event{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue