hello

package
v0.6.323 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompletedOnboardingIntro

func CompletedOnboardingIntro(user *entity.User, store HelloStore) error

func GetFirstName

func GetFirstName(name string) string

func GetOnboardingFilePath

func GetOnboardingFilePath() (string, error)

func MarkOnboardingStepCompleted

func MarkOnboardingStepCompleted(_ *terminal.Terminal, user *entity.User, store HelloStore)

func NewCmdHello

func NewCmdHello(t *terminal.Terminal, store HelloStore) *cobra.Command

func RunOnboarding

func RunOnboarding(t *terminal.Terminal, user *entity.User, store HelloStore) error

func SetHasRunOpen

func SetHasRunOpen(hasRunOpen bool) error

func SetHasRunShell

func SetHasRunShell(hasRunShell bool) error

func SetOnboardingObject

func SetOnboardingObject(oo OnboardingObject) error

func SetupDefaultOnboardingFile

func SetupDefaultOnboardingFile() error

func ShouldWeRunOnboarding

func ShouldWeRunOnboarding(s HelloStore) bool

func TypeItToMe

func TypeItToMe(s string)

func TypeItToMeUnskippable

func TypeItToMeUnskippable(s string)

func TypeItToMeUnskippable27 added in v0.6.263

func TypeItToMeUnskippable27(s string)

Types

type HelloStore

type HelloStore interface {
	GetAllWorkspaces(options *store.GetWorkspacesOptions) ([]entity.Workspace, error)
	GetCurrentUser() (*entity.User, error)
	UpdateUser(userID string, updatedUser *entity.UpdateUser) (*entity.User, error)
	GetCurrentWorkspaceID() (string, error)
}

type OnboardingObject

type OnboardingObject struct {
	Step            int  `json:"step"`
	HasRunBrevShell bool `json:"hasRunBrevShell"`
	HasRunBrevOpen  bool `json:"hasRunBrevOpen"`
}

func GetOnboardingObject

func GetOnboardingObject() (*OnboardingObject, error)

Jump to

Keyboard shortcuts

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