2020-03-06 03:43:28 +00:00
|
|
|
// Copyright 2020 The Gitea Authors. All rights reserved.
|
2023-09-08 01:40:02 +00:00
|
|
|
// SPDX-License-Identifier: MIT
|
2020-03-06 03:43:28 +00:00
|
|
|
|
|
|
|
package cmd
|
|
|
|
|
|
|
|
import (
|
2020-09-30 05:11:33 +00:00
|
|
|
"code.gitea.io/tea/cmd/times"
|
2020-03-06 03:43:28 +00:00
|
|
|
"github.com/urfave/cli/v2"
|
|
|
|
)
|
|
|
|
|
|
|
|
// CmdTrackedTimes represents the command to operate repositories' times.
|
|
|
|
var CmdTrackedTimes = cli.Command{
|
2020-12-21 13:37:20 +00:00
|
|
|
Name: "times",
|
|
|
|
Aliases: []string{"time", "t"},
|
|
|
|
Category: catEntities,
|
|
|
|
Usage: "Operate on tracked times of a repository's issues & pulls",
|
2020-03-06 03:43:28 +00:00
|
|
|
Description: `Operate on tracked times of a repository's issues & pulls.
|
|
|
|
Depending on your permissions on the repository, only your own tracked
|
|
|
|
times might be listed.`,
|
|
|
|
ArgsUsage: "[username | #issue]",
|
2020-12-15 17:38:22 +00:00
|
|
|
Action: times.RunTimesList,
|
2020-03-06 03:43:28 +00:00
|
|
|
Subcommands: []*cli.Command{
|
2020-09-30 05:11:33 +00:00
|
|
|
×.CmdTrackedTimesAdd,
|
|
|
|
×.CmdTrackedTimesDelete,
|
|
|
|
×.CmdTrackedTimesReset,
|
2020-12-07 12:29:48 +00:00
|
|
|
×.CmdTrackedTimesList,
|
2020-03-06 03:43:28 +00:00
|
|
|
},
|
2020-12-23 04:58:36 +00:00
|
|
|
Flags: times.CmdTrackedTimesList.Flags,
|
2020-03-06 03:43:28 +00:00
|
|
|
}
|