2018-09-03 02:43:00 -04:00
|
|
|
// Copyright 2018 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 01:11:33 -04:00
|
|
|
"code.gitea.io/tea/cmd/flags"
|
|
|
|
"code.gitea.io/tea/cmd/releases"
|
2018-10-21 14:52:57 -04:00
|
|
|
|
2020-01-04 12:44:25 -05:00
|
|
|
"github.com/urfave/cli/v2"
|
2018-09-03 02:43:00 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
// CmdReleases represents to login a gitea server.
|
2020-09-30 01:11:33 -04:00
|
|
|
// ToDo: ReleaseDetails
|
2018-09-03 02:43:00 -04:00
|
|
|
var CmdReleases = cli.Command{
|
2020-10-02 11:46:51 -04:00
|
|
|
Name: "releases",
|
2020-12-16 11:47:40 -05:00
|
|
|
Aliases: []string{"release", "r"},
|
2020-12-21 08:37:20 -05:00
|
|
|
Category: catEntities,
|
2020-09-23 15:56:34 -04:00
|
|
|
Usage: "Manage releases",
|
|
|
|
Description: "Manage releases",
|
2022-09-13 14:14:02 -04:00
|
|
|
ArgsUsage: " ", // command does not accept arguments
|
2020-09-30 01:11:33 -04:00
|
|
|
Action: releases.RunReleasesList,
|
2020-01-04 12:44:25 -05:00
|
|
|
Subcommands: []*cli.Command{
|
2020-09-30 01:11:33 -04:00
|
|
|
&releases.CmdReleaseList,
|
|
|
|
&releases.CmdReleaseCreate,
|
|
|
|
&releases.CmdReleaseDelete,
|
|
|
|
&releases.CmdReleaseEdit,
|
2018-10-21 14:52:57 -04:00
|
|
|
},
|
2020-09-30 01:11:33 -04:00
|
|
|
Flags: flags.AllDefaultFlags,
|
2020-09-23 15:56:34 -04:00
|
|
|
}
|