-
Notifications
You must be signed in to change notification settings - Fork 58
Conversation
The summary for each command should be updated though. I'll update that later except if someone else wants to do it. |
@anas10 can you get rid of the .gitignore files? |
} | ||
} | ||
|
||
func help() { | ||
fmt.Println("Usage: borg \"your question\"") | ||
fmt.Print("\033[4mUsage:\033[0m\n\n") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is pretty hard to read. Any way to make this better?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah maybe use this kind of lib: https://github.com/fatih/color,
and enable color with a flag.
fmt.Println(err) | ||
os.Exit(1) | ||
|
||
if c, ok := commands.Commands[flag.Arg(0)]; !ok { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is the query command any special? So far the main.go was really easy to understand - if a bit manual - now it's hard to get what's going on.
This is related to issue #21. Improved usage and commands declaration