2020-12-14 10:28:54 +00:00
|
|
|
// Copyright 2020 The Gitea Authors. All rights reserved.
|
2018-09-03 06:43:00 +00: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 10:28:54 +00:00
|
|
|
"code.gitea.io/tea/cmd/login"
|
2020-09-30 05:11:33 +00:00
|
|
|
|
2020-01-04 17:44:25 +00:00
|
|
|
"github.com/urfave/cli/v2"
|
2018-09-03 06:43:00 +00: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 10:28:54 +00:00
|
|
|
ArgsUsage: "<login name>",
|
|
|
|
Action: login.RunLoginDelete,
|
2018-09-03 06:43:00 +00:00
|
|
|
}
|