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