mirror of
https://gitea.com/gitea/tea.git
synced 2024-12-04 14:46:40 -05:00
5a41c79d7d
add `tea login delete` alias to tea logout Co-authored-by: Norwin Roosen <git@nroo.de> Reviewed-on: https://gitea.com/gitea/tea/pulls/296 Reviewed-by: khmarbaise <khmarbaise@noreply.gitea.io> Reviewed-by: 6543 <6543@obermui.de> Co-Authored-By: Norwin <noerw@noreply.gitea.io> Co-Committed-By: Norwin <noerw@noreply.gitea.io>
21 lines
509 B
Go
21 lines
509 B
Go
// Copyright 2020 The Gitea Authors. All rights reserved.
|
|
// Use of this source code is governed by a MIT-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
package cmd
|
|
|
|
import (
|
|
"code.gitea.io/tea/cmd/login"
|
|
|
|
"github.com/urfave/cli/v2"
|
|
)
|
|
|
|
// 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`,
|
|
ArgsUsage: "<login name>",
|
|
Action: login.RunLoginDelete,
|
|
}
|