mirror of https://github.com/status-im/consul.git
command/services: just add additional output feedback on success
This commit is contained in:
parent
935d13ec21
commit
69cdab0d84
|
@ -83,6 +83,8 @@ func (c *cmd) Run(args []string) int {
|
||||||
svc.Name, err))
|
svc.Name, err))
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
c.UI.Output(fmt.Sprintf("Deregistered service: %s", id))
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
|
|
|
@ -102,6 +102,8 @@ func (c *cmd) Run(args []string) int {
|
||||||
svc.Name, err))
|
svc.Name, err))
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
c.UI.Output(fmt.Sprintf("Registered service: %s", svc.Name))
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
|
|
Loading…
Reference in New Issue