зеркало из https://github.com/microsoft/docker.git
beam/examples/beamsh: rename 'log' to 'logger' to avoid conflict with stdout/stderr
Docker-DCO-1.1-Signed-off-by: Solomon Hykes <solomon@docker.com> (github: shykes)
This commit is contained in:
Родитель
a2b88b4915
Коммит
b97375fc29
|
@ -242,7 +242,7 @@ func Handlers() (*beam.UnixConn, error) {
|
|||
}
|
||||
|
||||
func GetHandler(name string) Handler {
|
||||
if name == "log" {
|
||||
if name == "logger" {
|
||||
return func(args []string, in beam.Receiver, out beam.Sender) {
|
||||
var tasks sync.WaitGroup
|
||||
stdout, err := beam.SendPipe(out, data.Empty().Set("cmd", "log", "stdout").Set("fromcmd", args...).Bytes())
|
||||
|
|
Загрузка…
Ссылка в новой задаче