mirror of
https://gitea.com/gitea/tea.git
synced 2026-10-26 11:01:25 +01:00
refactor(actions): trim help examples and restating comments
Signed-off-by: bircni <bircni@icloud.com>
This commit is contained in:
9 files changed
+15
-45
No files matched your search
@@ -66,8 +66,7 @@ func (a *application) timeListCommand() *cobra.Command {
|
||||
cmd := &cobra.Command{Use: "list", Short: "List tracked time", Long: `List the time tracked in a repository, on one issue with --issue, or by yourself across
|
||||
repositories with --mine. On a terminal, the total of the listed time follows the table.`, Example: `$ tea time list
|
||||
$ tea time list --issue 12
|
||||
$ tea time list --mine --since 168h
|
||||
$ tea time list --username @me --json issue_number,seconds`, Args: argsExact(0), RunE: func(cmd *cobra.Command, _ []string) error {
|
||||
$ tea time list --mine --since 168h`, Args: argsExact(0), RunE: func(cmd *cobra.Command, _ []string) error {
|
||||
if (opts.Mine && (issue != "" || opts.Username != "")) || (issue != "" && opts.Username != "") {
|
||||
return clierr.Wrap(clierr.Usage, errors.New("--mine, --issue and --username select mutually exclusive scopes"))
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user