mirror of
https://gitea.com/gitea/tea.git
synced 2024-11-25 12:01:36 +01:00
b5c670ebf8
better docs add --mine flag hm, is there a better name? 🤔 do time filtering serverside make printed fields dynamic add --fields to tea times ls code review Co-authored-by: Norwin Roosen <git@nroo.de> Reviewed-on: https://gitea.com/gitea/tea/pulls/319 Reviewed-by: 6543 <6543@obermui.de> Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com> Co-Authored-By: Norwin <noerw@noreply.gitea.io> Co-Committed-By: Norwin <noerw@noreply.gitea.io>
31 lines
948 B
Go
31 lines
948 B
Go
// 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 (
|
|
"code.gitea.io/tea/cmd/times"
|
|
"github.com/urfave/cli/v2"
|
|
)
|
|
|
|
// CmdTrackedTimes represents the command to operate repositories' times.
|
|
var CmdTrackedTimes = cli.Command{
|
|
Name: "times",
|
|
Aliases: []string{"time", "t"},
|
|
Category: catEntities,
|
|
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]",
|
|
Action: times.RunTimesList,
|
|
Subcommands: []*cli.Command{
|
|
×.CmdTrackedTimesAdd,
|
|
×.CmdTrackedTimesDelete,
|
|
×.CmdTrackedTimesReset,
|
|
×.CmdTrackedTimesList,
|
|
},
|
|
Flags: times.CmdTrackedTimesList.Flags,
|
|
}
|