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