Help us shape the future of Go! Take the 2026 Go Developer Survey

login

package
v0.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 12, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package login implements the auth login command

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdLogin

func NewCmdLogin(f *cmdutil.Factory, runF func(*LoginOptions) error) *cobra.Command

NewCmdLogin creates the login command

Types

type LoginOptions

type LoginOptions struct {
	IO          *iostreams.IOStreams
	HttpClient  func() (*http.Client, error)
	Config      func() (config.Config, error)
	OpenBrowser func(string) error

	// Flags
	Hostname    string
	WithToken   bool
	GitProtocol string
	Web         bool

	// Internal state populated from stdin or interactive input.
	Token string
}

Source Files

  • login.go

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL