projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch '18941-arv-prefetch' refs #18941
[arvados.git]
/
lib
/
cmd
/
cmd.go
diff --git
a/lib/cmd/cmd.go
b/lib/cmd/cmd.go
index b7d918739b86de347b0960e785bbd27dea477fba..63d7576b4cc1964b11b29a8ac199730660325f2e 100644
(file)
--- a/
lib/cmd/cmd.go
+++ b/
lib/cmd/cmd.go
@@
-16,6
+16,8
@@
import (
"runtime"
"sort"
"strings"
"runtime"
"sort"
"strings"
+
+ "github.com/sirupsen/logrus"
)
type Handler interface {
)
type Handler interface {
@@
-153,3
+155,9
@@
func SubcommandToFront(args []string, flagset FlagSet) []string {
copy(newargs[flagargs+1:], args[flagargs+1:])
return newargs
}
copy(newargs[flagargs+1:], args[flagargs+1:])
return newargs
}
+
+type NoPrefixFormatter struct{}
+
+func (NoPrefixFormatter) Format(entry *logrus.Entry) ([]byte, error) {
+ return []byte(entry.Message + "\n"), nil
+}