2020-12-14 18:28:54 +08:00
|
|
|
// Copyright 2020 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-12-14 18:28:54 +08:00
|
|
|
"code.gitea.io/tea/cmd/login"
|
2020-09-30 13:11:33 +08:00
|
|
|
|
2020-01-05 01:44:25 +08:00
|
|
|
"github.com/urfave/cli/v2"
|
2018-09-03 14:43:00 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
// CmdLogout represents to logout a gitea server.
|
|
|
|
var CmdLogout = cli.Command{
|
|
|
|
Name: "logout",
|
2020-12-21 21:37:20 +08:00
|
|
|
Category: catSetup,
|
2018-09-03 14:43:00 +08:00
|
|
|
Usage: "Log out from a Gitea server",
|
|
|
|
Description: `Log out from a Gitea server`,
|
2020-12-14 18:28:54 +08:00
|
|
|
ArgsUsage: "<login name>",
|
|
|
|
Action: login.RunLoginDelete,
|
2018-09-03 14:43:00 +08:00
|
|
|
}
|