2020-03-06 04:43:28 +01:00
|
|
|
// Copyright 2020 The Gitea Authors. All rights reserved.
|
|
|
|
// Use of this source code is governed by a MIT-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
|
|
|
package cmd
|
|
|
|
|
|
|
|
import (
|
2020-09-30 07:11:33 +02:00
|
|
|
"code.gitea.io/tea/cmd/times"
|
2020-03-06 04:43:28 +01:00
|
|
|
"github.com/urfave/cli/v2"
|
|
|
|
)
|
|
|
|
|
|
|
|
// CmdTrackedTimes represents the command to operate repositories' times.
|
|
|
|
var CmdTrackedTimes = cli.Command{
|
|
|
|
Name: "times",
|
|
|
|
Aliases: []string{"time"},
|
|
|
|
Usage: "Operate on tracked times of a repository's issues & pulls",
|
|
|
|
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 18:38:22 +01:00
|
|
|
Action: times.RunTimesList,
|
2020-03-06 04:43:28 +01:00
|
|
|
Subcommands: []*cli.Command{
|
2020-09-30 07:11:33 +02:00
|
|
|
×.CmdTrackedTimesAdd,
|
|
|
|
×.CmdTrackedTimesDelete,
|
|
|
|
×.CmdTrackedTimesReset,
|
2020-12-07 13:29:48 +01:00
|
|
|
×.CmdTrackedTimesList,
|
2020-03-06 04:43:28 +01:00
|
|
|
},
|
|
|
|
}
|