Skip to content
This repository has been archived by the owner on Jan 12, 2025. It is now read-only.

Borg usage #24

Merged
merged 2 commits into from
Oct 13, 2016
Merged

Borg usage #24

merged 2 commits into from
Oct 13, 2016

Conversation

anas10
Copy link
Member

@anas10 anas10 commented Oct 12, 2016

This is related to issue #21. Improved usage and commands declaration

@anas10
Copy link
Member Author

anas10 commented Oct 12, 2016

The summary for each command should be updated though. I'll update that later except if someone else wants to do it.

@crufter
Copy link
Member

crufter commented Oct 12, 2016

@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")
Copy link
Member

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?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@crufter @anas10 is this for colour highlighting or something similar? I am referring to \033[4m. If so, I am sure you can abstract it into a method that wraps a string around a specific colour?

Copy link
Member

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 {
Copy link
Member

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.

@slavovojacek
Copy link

@crufter not quite sure what you mean by "removing the .gitignore files"?
@anas10 should we add .DS_Store into .gitignore too?

@crufter crufter merged commit 1e94a18 into master Oct 13, 2016
@crufter crufter deleted the borg-usage branch October 13, 2016 17:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants