login

package
v0.3.11 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 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