mirror of
https://gitea.com/gitea/tea.git
synced 2024-11-24 03:21:36 +01:00
added description to explain reason for global variables
Signed-off-by: Andreas Ulm <andreas.ulm@root360.de>
This commit is contained in:
parent
4a61afe558
commit
a16ca12f8a
@ -39,7 +39,9 @@ var OutputFlag = cli.StringFlag{
|
|||||||
}
|
}
|
||||||
|
|
||||||
// DefaultFlags defines flags that should be available
|
// DefaultFlags defines flags that should be available
|
||||||
// for all subcommands
|
// for all subcommands and appended to the flags of the
|
||||||
|
// subcommand to work around issue:
|
||||||
|
// https://github.com/urfave/cli/issues/585
|
||||||
var DefaultFlags = []cli.Flag{
|
var DefaultFlags = []cli.Flag{
|
||||||
LoginFlag,
|
LoginFlag,
|
||||||
OutputFlag,
|
OutputFlag,
|
||||||
@ -47,6 +49,8 @@ var DefaultFlags = []cli.Flag{
|
|||||||
|
|
||||||
// RepoDefaultFlags defines flags that should be available
|
// RepoDefaultFlags defines flags that should be available
|
||||||
// for all subcommands working with dedicated repositories
|
// for all subcommands working with dedicated repositories
|
||||||
|
// to work around issue:
|
||||||
|
// https://github.com/urfave/cli/issues/585
|
||||||
var RepoDefaultFlags = append([]cli.Flag{
|
var RepoDefaultFlags = append([]cli.Flag{
|
||||||
RepoFlag,
|
RepoFlag,
|
||||||
}, DefaultFlags...)
|
}, DefaultFlags...)
|
||||||
|
Loading…
Reference in New Issue
Block a user