Merge pull request #32 from dist-sys-dev/refactor/ui
refactor: align the output commands
This commit is contained in:
commit
25033e81e9
@ -10,9 +10,6 @@ import (
|
|||||||
"github.com/yedf/dtm/examples"
|
"github.com/yedf/dtm/examples"
|
||||||
)
|
)
|
||||||
|
|
||||||
// M alias
|
|
||||||
type M = map[string]interface{}
|
|
||||||
|
|
||||||
var usage = `dtm is a lightweight distributed transaction manager.
|
var usage = `dtm is a lightweight distributed transaction manager.
|
||||||
|
|
||||||
usage:
|
usage:
|
||||||
@ -30,7 +27,7 @@ func main() {
|
|||||||
if len(os.Args) == 1 {
|
if len(os.Args) == 1 {
|
||||||
fmt.Println(usage)
|
fmt.Println(usage)
|
||||||
for name := range examples.Samples {
|
for name := range examples.Samples {
|
||||||
fmt.Printf("%-18srun a sample includes %s\n", name, strings.Replace(name, "_", " ", 100))
|
fmt.Printf("%4s%-18srun a sample includes %s\n", "", name, strings.ReplaceAll(name, "_", " "))
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user