Proper help text & new README structure #311
8
main.go
8
main.go
@ -23,6 +23,9 @@ var Version = "development"
|
||||
var Tags = ""
|
||||
|
||||
func main() {
|
||||
// make parsing tea --version easier, by printing /just/ the version string
|
||||
cli.VersionPrinter = func(c *cli.Context) { fmt.Fprintln(c.App.Writer, c.App.Version) }
|
||||
|
||||
app := cli.NewApp()
|
||||
app.Name = "tea"
|
||||
app.Usage = "command line tool to interact with Gitea"
|
||||
@ -101,11 +104,6 @@ var helpTemplate = bold(`
|
||||
# send gitea desktop notifications every 5 minutes (bash + libnotify)
|
||||
while :; do tea notifications --all -o simple | xargs -i notify-send {}; sleep 300; done
|
||||
|
||||
EXIT CODES
|
||||
0 success
|
||||
1 generic error
|
||||
404 entity not found
|
||||
|
||||
ABOUT
|
||||
Written & maintained by The Gitea Authors.
|
||||
If you find a bug or want to contribute, we'll welcome you at https://gitea.com/gitea/tea.
|
||||
|
Loading…
Reference in New Issue
Block a user