2020-12-14 18:28:54 +08:00
|
|
|
// Copyright 2020 The Gitea Authors. All rights reserved.
|
2018-09-03 14:43:00 +08:00
|
|
|
// Use of this source code is governed by a MIT-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
|
|
|
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",
|
|
|
|
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
|
|
|
}
|