Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CmdLoginAdd = cli.Command{ Name: "add", Usage: "Add a Gitea login", Description: `Add a Gitea login, without args it will create one interactively`, Flags: []cli.Flag{ &cli.StringFlag{ Name: "name", Aliases: []string{"n"}, Usage: "Login name", }, &cli.StringFlag{ Name: "url", Aliases: []string{"u"}, Value: "https://gitea.com", EnvVars: []string{"GITEA_SERVER_URL"}, Usage: "Server URL", }, &cli.StringFlag{ Name: "token", Aliases: []string{"t"}, Value: "", EnvVars: []string{"GITEA_SERVER_TOKEN"}, Usage: "Access token. Can be obtained from Settings > Applications", }, &cli.StringFlag{ Name: "user", Value: "", EnvVars: []string{"GITEA_SERVER_USER"}, Usage: "User for basic auth (will create token)", }, &cli.StringFlag{ Name: "password", Aliases: []string{"pwd"}, Value: "", EnvVars: []string{"GITEA_SERVER_PASSWORD"}, Usage: "Password for basic auth (will create token)", }, &cli.StringFlag{ Name: "ssh-key", Aliases: []string{"s"}, Usage: "Path to a SSH key to use, overrides auto-discovery", }, &cli.BoolFlag{ Name: "insecure", Aliases: []string{"i"}, Usage: "Disable TLS verification", }, }, Action: runLoginAdd, }
CmdLoginAdd represents to login a gitea server.
View Source
var CmdLoginDelete = cli.Command{ Name: "delete", Aliases: []string{"rm"}, Usage: "Remove a Gitea login", Description: `Remove a Gitea login`, ArgsUsage: "<login name>", Action: RunLoginDelete, }
CmdLoginDelete is a command to delete a login
View Source
var CmdLoginEdit = cli.Command{ Name: "edit", Aliases: []string{"e"}, Usage: "Edit Gitea logins", Description: `Edit Gitea logins`, Action: runLoginEdit, Flags: []cli.Flag{&flags.OutputFlag}, }
CmdLoginEdit represents to login a gitea server.
View Source
var CmdLoginList = cli.Command{ Name: "list", Aliases: []string{"ls"}, Usage: "List Gitea logins", Description: `List Gitea logins`, Action: RunLoginList, Flags: []cli.Flag{&flags.OutputFlag}, }
CmdLoginList represents to login a gitea server.
View Source
var CmdLoginSetDefault = cli.Command{ Name: "default", Usage: "Get or Set Default Login", Description: `Get or Set Default Login`, ArgsUsage: "<Login>", Action: runLoginSetDefault, Flags: []cli.Flag{&flags.OutputFlag}, }
CmdLoginSetDefault represents to login a gitea server.
Functions ¶
func RunLoginDelete ¶
func RunLoginDelete(ctx *cli.Context) error
RunLoginDelete runs the action of a login delete command
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.