mirror of
https://gitea.com/gitea/tea.git
synced 2025-09-02 09:58:29 +02:00
add tea times
command (#54)
Merge branch 'master' into 50-cmd-times labels: fix refactor bug fixup! use version check implemented in SDK instead add subcmds: `tea times (delete|reset)` fixes #87 fixes #88 times: reword help use version check implemented in SDK instead make fmt Check gitea server version for times endpoint refactor times.go dont print TrackedTime ID print username & issue index instead of IDs switch to urface/cli/v2 vendor araddon/dateparse use araddon/dateparse for arbitrary date inputs add --from, --until flags allow filtering by issue index make app name lower case to make the help texts consistent with the binary name add --total flag implement `tea times add` add `tea times` subcommand Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: Norwin Roosen <git@nroo.de> Reviewed-on: https://gitea.com/gitea/tea/pulls/54 Reviewed-by: 6543 <6543@noreply.gitea.io> Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
This commit is contained in:
@ -80,24 +80,29 @@ var CmdReleaseCreate = cli.Command{
|
||||
Usage: "Target refs, branch name or commit id",
|
||||
},
|
||||
&cli.StringFlag{
|
||||
Name: "title, t",
|
||||
Usage: "Release title",
|
||||
Name: "title",
|
||||
Aliases: []string{"t"},
|
||||
Usage: "Release title",
|
||||
},
|
||||
&cli.StringFlag{
|
||||
Name: "note, n",
|
||||
Usage: "Release notes",
|
||||
Name: "note",
|
||||
Aliases: []string{"n"},
|
||||
Usage: "Release notes",
|
||||
},
|
||||
&cli.BoolFlag{
|
||||
Name: "draft, d",
|
||||
Usage: "Is a draft",
|
||||
Name: "draft",
|
||||
Aliases: []string{"d"},
|
||||
Usage: "Is a draft",
|
||||
},
|
||||
&cli.BoolFlag{
|
||||
Name: "prerelease, p",
|
||||
Usage: "Is a pre-release",
|
||||
Name: "prerelease",
|
||||
Aliases: []string{"p"},
|
||||
Usage: "Is a pre-release",
|
||||
},
|
||||
&cli.StringSliceFlag{
|
||||
Name: "asset, a",
|
||||
Usage: "List of files to attach",
|
||||
Name: "asset",
|
||||
Aliases: []string{"a"},
|
||||
Usage: "List of files to attach",
|
||||
},
|
||||
}, LoginRepoFlags...),
|
||||
}
|
||||
|
Reference in New Issue
Block a user