tea/cmd
Norwin dc67630b64 replace flag globals, require context for commands (#291)
introduce TeaContext

clean up InitCommand

move GetListOptions to TeaContext

ensure context for each command

so we fail early with a good error message instead of "Error: 404" etc

make linter happy

Merge branch 'master' into refactor-global-flags

move TeaContext & InitCommand to modules/context

Merge branch 'master' into refactor-global-flags

CI.restart()

Merge branch 'master' into refactor-global-flags

Merge branch 'master' into refactor-global-flags

Co-authored-by: Norwin Roosen <git@nroo.de>
Co-authored-by: 6543 <6543@obermui.de>
Reviewed-on: https://gitea.com/gitea/tea/pulls/291
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Reviewed-by: khmarbaise <khmarbaise@noreply.gitea.io>
Reviewed-by: 6543 <6543@obermui.de>
Co-Authored-By: Norwin <noerw@noreply.gitea.io>
Co-Committed-By: Norwin <noerw@noreply.gitea.io>
2020-12-16 01:38:22 +08:00
..
flags replace flag globals, require context for commands (#291) 2020-12-16 01:38:22 +08:00
issues replace flag globals, require context for commands (#291) 2020-12-16 01:38:22 +08:00
labels replace flag globals, require context for commands (#291) 2020-12-16 01:38:22 +08:00
login replace flag globals, require context for commands (#291) 2020-12-16 01:38:22 +08:00
milestones replace flag globals, require context for commands (#291) 2020-12-16 01:38:22 +08:00
organizations replace flag globals, require context for commands (#291) 2020-12-16 01:38:22 +08:00
pulls replace flag globals, require context for commands (#291) 2020-12-16 01:38:22 +08:00
releases replace flag globals, require context for commands (#291) 2020-12-16 01:38:22 +08:00
repos replace flag globals, require context for commands (#291) 2020-12-16 01:38:22 +08:00
times replace flag globals, require context for commands (#291) 2020-12-16 01:38:22 +08:00
issues.go replace flag globals, require context for commands (#291) 2020-12-16 01:38:22 +08:00
labels.go Refactor tea labels command (#282) 2020-12-09 03:06:15 +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 replace flag globals, require context for commands (#291) 2020-12-16 01:38:22 +08:00
open.go replace flag globals, require context for commands (#291) 2020-12-16 01:38:22 +08:00
organizations.go Add organization delete command (#270) 2020-12-07 20:24:04 +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