Add show command
This commit is contained in:
11
cmd/util.go
11
cmd/util.go
@ -159,3 +159,14 @@ func ExitWithCode(code int, err error) {
|
||||
}
|
||||
os.Exit(code)
|
||||
}
|
||||
|
||||
func YesNo(v bool) string {
|
||||
if v {
|
||||
return "yes"
|
||||
}
|
||||
return "no"
|
||||
}
|
||||
|
||||
func PrintWithIndent(indent int, s string) {
|
||||
fmt.Printf("%*s%s", indent, "", s)
|
||||
}
|
Reference in New Issue
Block a user