tea/cmd
Norwin a948fd7e10 Refactor error handling (#308)
use fmt instead of log

log.Fatal -> return err

set non-zero exit code on error

print to default err log

cleanup

fix vet

Co-authored-by: Norwin Roosen <git@nroo.de>
Co-authored-by: 6543 <6543@obermui.de>
Reviewed-on: https://gitea.com/gitea/tea/pulls/308
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Reviewed-by: 6543 <6543@obermui.de>
Co-Authored-By: Norwin <noerw@noreply.gitea.io>
Co-Committed-By: Norwin <noerw@noreply.gitea.io>
2020-12-17 00:18:10 +08:00
..
flags replace flag globals, require context for commands (#291) 2020-12-16 01:38:22 +08:00
issues Refactor error handling (#308) 2020-12-17 00:18:10 +08:00
labels Refactor error handling (#308) 2020-12-17 00:18:10 +08:00
login Refactor error handling (#308) 2020-12-17 00:18:10 +08:00
milestones Refactor error handling (#308) 2020-12-17 00:18:10 +08:00
organizations Refactor error handling (#308) 2020-12-17 00:18:10 +08:00
pulls Refactor error handling (#308) 2020-12-17 00:18:10 +08:00
releases Refactor error handling (#308) 2020-12-17 00:18:10 +08:00
repos Refactor error handling (#308) 2020-12-17 00:18:10 +08:00
times Refactor error handling (#308) 2020-12-17 00:18:10 +08:00
autocomplete.go Add command to install shell completion (#309) 2020-12-17 00:01:59 +08:00
issues.go replace flag globals, require context for commands (#291) 2020-12-16 01:38:22 +08:00
labels.go Refactor error handling (#308) 2020-12-17 00:18:10 +08:00
login.go replace flag globals, require context for commands (#291) 2020-12-16 01:38:22 +08:00
logout.go Add `tea login delete` (#296) 2020-12-14 18:28:54 +08:00
milestones.go replace flag globals, require context for commands (#291) 2020-12-16 01:38:22 +08:00
notifications.go Refactor error handling (#308) 2020-12-17 00:18:10 +08:00
open.go Refactor error handling (#308) 2020-12-17 00:18:10 +08:00
organizations.go Refactor error handling (#308) 2020-12-17 00:18:10 +08:00
pulls.go replace flag globals, require context for commands (#291) 2020-12-16 01:38:22 +08:00
releases.go Common subcommand naming scheme (#208) 2020-10-02 15:46:51 +00:00
repos.go replace flag globals, require context for commands (#291) 2020-12-16 01:38:22 +08:00
times.go replace flag globals, require context for commands (#291) 2020-12-16 01:38:22 +08:00