mirror of
https://github.com/ipfs/kubo.git
synced 2025-06-30 09:59:13 +08:00
Merge pull request #2637 from ipfs/feature/2636-marshal-log-ls
Marshal log ls better
This commit is contained in:
@ -3,7 +3,6 @@ package commands
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
"strings"
|
|
||||||
|
|
||||||
logging "gx/ipfs/QmaDNZ4QMdBdku1YZWBysufYyoQt1negQGNav6PLYarbY8/go-log"
|
logging "gx/ipfs/QmaDNZ4QMdBdku1YZWBysufYyoQt1negQGNav6PLYarbY8/go-log"
|
||||||
|
|
||||||
@ -82,13 +81,12 @@ subsystems of a running daemon.
|
|||||||
`,
|
`,
|
||||||
},
|
},
|
||||||
Run: func(req cmds.Request, res cmds.Response) {
|
Run: func(req cmds.Request, res cmds.Response) {
|
||||||
output := strings.Join(logging.GetSubsystems(), "\n")
|
res.SetOutput(&stringList{logging.GetSubsystems()})
|
||||||
res.SetOutput(&MessageOutput{output + "\n"})
|
|
||||||
},
|
},
|
||||||
Marshalers: cmds.MarshalerMap{
|
Marshalers: cmds.MarshalerMap{
|
||||||
cmds.Text: MessageTextMarshaler,
|
cmds.Text: stringListMarshaler,
|
||||||
},
|
},
|
||||||
Type: MessageOutput{},
|
Type: stringList{},
|
||||||
}
|
}
|
||||||
|
|
||||||
var logTailCmd = &cmds.Command{
|
var logTailCmd = &cmds.Command{
|
||||||
|
Reference in New Issue
Block a user