Add show command

This commit is contained in:
2021-02-14 23:06:12 -06:00
parent cf8b34fe01
commit 272ae7cd01
3 changed files with 87 additions and 0 deletions

View File

@ -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)
}