2020-12-14 11:28:54 +01:00
|
|
|
// Copyright 2020 The Gitea Authors. All rights reserved.
|
2023-09-08 03:40:02 +02:00
|
|
|
// SPDX-License-Identifier: MIT
|
2018-09-03 08:43:00 +02:00
|
|
|
|
|
|
|
package cmd
|
|
|
|
|
|
|
|
import (
|
2020-12-14 11:28:54 +01:00
|
|
|
"code.gitea.io/tea/cmd/login"
|
2020-09-30 07:11:33 +02:00
|
|
|
|
2020-01-04 18:44:25 +01:00
|
|
|
"github.com/urfave/cli/v2"
|
2018-09-03 08:43:00 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
// CmdLogout represents to logout a gitea server.
|
|
|
|
var CmdLogout = cli.Command{
|
|
|
|
Name: "logout",
|
2020-12-21 14:37:20 +01:00
|
|
|
Category: catSetup,
|
2018-09-03 08:43:00 +02:00
|
|
|
Usage: "Log out from a Gitea server",
|
|
|
|
Description: `Log out from a Gitea server`,
|
2020-12-14 11:28:54 +01:00
|
|
|
ArgsUsage: "<login name>",
|
|
|
|
Action: login.RunLoginDelete,
|
2018-09-03 08:43:00 +02:00
|
|
|
}
|