login

package
v0.6.311 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2025 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Package login is for the get command

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateNewUser added in v0.4.0

func CreateNewUser(loginStore LoginStore, idToken string) (bool, error)

returns if the user is indeed new

func NewCmdLogin

func NewCmdLogin(t *terminal.Terminal, loginStore LoginStore, auth Auth) *cobra.Command

loginStore must be a no prompt store

func OnboardUserWithEditors added in v0.6.43

func OnboardUserWithEditors(t *terminal.Terminal, _ LoginStore, ide string) (string, error)

func RunTasksForUser added in v0.6.50

func RunTasksForUser(t *terminal.Terminal) error

Types

type Auth added in v0.4.0

type Auth interface {
	Login(skipBrowser bool) (*auth.LoginTokens, error)
	LoginWithToken(token string) error
}

type LoginOptions

type LoginOptions struct {
	Auth       Auth
	LoginStore LoginStore
}

func (LoginOptions) RunLogin

func (o LoginOptions) RunLogin(t *terminal.Terminal, loginToken string, skipBrowser bool, emailFlag string, authProviderFlag string) error

type LoginStore added in v0.3.0

type LoginStore interface {
	auth.AuthStore
	GetCurrentUser() (*entity.User, error)
	CreateUser(idToken string) (*entity.User, error)
	GetOrganizations(options *store.GetOrganizationsOptions) ([]entity.Organization, error)
	GetActiveOrganizationOrDefault() (*entity.Organization, error)
	CreateOrganization(req store.CreateOrganizationRequest) (*entity.Organization, error)
	GetServerSockFile() string
	GetWorkspaces(organizationID string, options *store.GetWorkspacesOptions) ([]entity.Workspace, error)
	UpdateUser(userID string, updatedUser *entity.UpdateUser) (*entity.User, error)
	hello.HelloStore
	importideconfig.ImportIDEConfigStore
	UserHomeDir() (string, error)
}

Jump to

Keyboard shortcuts

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