2018-09-03 14:43:00 +08:00
|
|
|
// Copyright 2018 The Gitea Authors. All rights reserved.
|
2023-09-08 09:40:02 +08:00
|
|
|
// SPDX-License-Identifier: MIT
|
2018-09-03 14:43:00 +08:00
|
|
|
|
|
|
|
package cmd
|
|
|
|
|
|
|
|
import (
|
2020-09-30 13:11:33 +08:00
|
|
|
"code.gitea.io/tea/cmd/flags"
|
|
|
|
"code.gitea.io/tea/cmd/releases"
|
2018-10-22 02:52:57 +08:00
|
|
|
|
2020-01-05 01:44:25 +08:00
|
|
|
"github.com/urfave/cli/v2"
|
2018-09-03 14:43:00 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
// CmdReleases represents to login a gitea server.
|
2020-09-30 13:11:33 +08:00
|
|
|
// ToDo: ReleaseDetails
|
2018-09-03 14:43:00 +08:00
|
|
|
var CmdReleases = cli.Command{
|
2020-10-02 23:46:51 +08:00
|
|
|
Name: "releases",
|
2020-12-17 00:47:40 +08:00
|
|
|
Aliases: []string{"release", "r"},
|
2020-12-21 21:37:20 +08:00
|
|
|
Category: catEntities,
|
2020-09-24 03:56:34 +08:00
|
|
|
Usage: "Manage releases",
|
|
|
|
Description: "Manage releases",
|
2022-09-14 02:14:02 +08:00
|
|
|
ArgsUsage: " ", // command does not accept arguments
|
2020-09-30 13:11:33 +08:00
|
|
|
Action: releases.RunReleasesList,
|
2020-01-05 01:44:25 +08:00
|
|
|
Subcommands: []*cli.Command{
|
2020-09-30 13:11:33 +08:00
|
|
|
&releases.CmdReleaseList,
|
|
|
|
&releases.CmdReleaseCreate,
|
|
|
|
&releases.CmdReleaseDelete,
|
|
|
|
&releases.CmdReleaseEdit,
|
2024-07-27 00:05:12 +08:00
|
|
|
&CmdReleaseAttachments,
|
2018-10-22 02:52:57 +08:00
|
|
|
},
|
2020-09-30 13:11:33 +08:00
|
|
|
Flags: flags.AllDefaultFlags,
|
2020-09-24 03:56:34 +08:00
|
|
|
}
|