examples/say_hello_task.go
func TaskSayHello(t *tasking.T) {
	username := t.Flags.String("name")
	if username == "" {
		user, _ := user.Current()
		username = user.Name
	}

	if t.Flags.Bool("verbose") {
		t.Logf("Hello %s, the time now is %s\n", username, time.Now())
	} else {
		t.Logf("Hello %s\n", username)
	}
}
func TaskSayHello(t *tasking.T) {
	username := t.Flags.String("name")
	if username == "" {
		user, _ := user.Current()
		username = user.Name
	}

	if t.Flags.Bool("verbose") {
		t.Logf("Hello %s, the time now is %s\n", username, time.Now())
	} else {
		t.Logf("Hello %s\n", username)
	}
}
func TaskSayHello ( t * tasking . T ) { username := t . Flags . String ( " " ) if username == " " { user , _ := user . Current ( ) username = user . Name } if t . Flags . Bool ( " " ) { t . Logf ( " \n " , username , time . Now ( ) ) } else { t . Logf ( " \n " , username ) } }
// NAME
//    say-hello - Say hello to current user
//
// DESCRIPTION
//    Print out hello to current user
//
// OPTIONS
//    -n, --name=<NAME>
//        say hello to an user with the given NAME
//    -v, --verbose
//        run in verbose mode
NAME say - hello - Say hello to current user DESCRIPTION Print out hello to current user OPTIONS - n -- name = <NAME > say hello to an user with the given NAME - v -- verbose run in verbose mode