-
Notifications
You must be signed in to change notification settings - Fork 0
/
help.go
31 lines (27 loc) · 1.45 KB
/
help.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package main
import (
"fmt"
"github.com/Keloran/dotfilesLoader/console"
)
func Help() {
hFormat := " %s %s"
fFormat := " -%s %s"
c := console.NewConsole(true)
c.Start("Help").
Info("Usage dotfiles <command> <flags>").
BlankLine().
Info("Commands:").
FormattedText(fmt.Sprintf(hFormat, console.Cyan("help"), console.Blue(" This message"))).
FormattedText(fmt.Sprintf(hFormat, console.Cyan("apps"), console.Blue(" Install Apps"))).
FormattedText(fmt.Sprintf(hFormat, console.Cyan("os"), console.Blue(" Install OS Settings"))).
FormattedText(fmt.Sprintf(hFormat, console.Cyan("dots"), console.Blue(" Install the dotfiles"))).
FormattedText(fmt.Sprintf(hFormat, console.Cyan("update"), console.Blue("Run updaters"))).
BlankLine().
Info("Flags:").
FormattedText(fmt.Sprintf(fFormat, console.Green("github-user | github-username <keloran>"), console.Blue(" Github username"))).
FormattedText(fmt.Sprintf(fFormat, console.Green("github-repository | github-repo <dotfiles>"), console.Blue("Github repository"))).
FormattedText(fmt.Sprintf(fFormat, console.Green("force"), console.Blue(" Force installs"))).
FormattedText(fmt.Sprintf(fFormat, console.Green("skip-download"), console.Blue(" Skip Download"))).
FormattedText(fmt.Sprintf(fFormat, console.Green("user <keloran>"), console.Blue(" The username if needs sudo"))).
End("")
}