Documentation ¶
Index ¶
- Constants
- func CanWeOnboard(t *terminal.Terminal, user *entity.User, store HelloStore) error
- func CompletedOnboarding(user *entity.User, store HelloStore) error
- func CompletedOnboardingIntro(user *entity.User, store HelloStore) error
- func CompletedOnboardingLs(user *entity.User, store HelloStore) error
- func CompletedOnboardingOpen(user *entity.User, store HelloStore) error
- func CompletedOnboardingShell(user *entity.User, store HelloStore) error
- func GetDevEnvOrStall(t *terminal.Terminal, workspaces []entity.Workspace) *entity.Workspace
- func GetFirstName(name string) string
- func GetOnboardingFilePath() (string, error)
- func GetTextBasedONStatus(status string, t *terminal.Terminal) string
- func MarkOnboardingStepCompleted(_ *terminal.Terminal, user *entity.User, store HelloStore)
- func NewCmdHello(t *terminal.Terminal, store HelloStore) *cobra.Command
- func Poll()
- func RunOnboarding(t *terminal.Terminal, user *entity.User, store HelloStore) error
- func SetHasRunOpen(hasRunOpen bool) error
- func SetHasRunShell(hasRunShell bool) error
- func SetOnboardingObject(oo OnboardingObject) error
- func SetOnboardingStep(step int) error
- func SetupDefaultOnboardingFile() error
- func ShouldWeRunOnboarding(s HelloStore) bool
- func SkippedOnboarding(user *entity.User, store HelloStore) error
- func Step1(t *terminal.Terminal, workspaces []entity.Workspace, user *entity.User, ...) error
- func TypeItToMe(s string)
- func TypeItToMeUnskippable(s string)
- type HelloStore
- type OnboardingObject
Constants ¶
View Source
const DefaultDevEnvName = "first-workspace-react"
Variables ¶
This section is empty.
Functions ¶
func CanWeOnboard ¶
func CompletedOnboarding ¶
func CompletedOnboarding(user *entity.User, store HelloStore) error
func CompletedOnboardingIntro ¶
func CompletedOnboardingIntro(user *entity.User, store HelloStore) error
func CompletedOnboardingLs ¶
func CompletedOnboardingLs(user *entity.User, store HelloStore) error
func CompletedOnboardingOpen ¶
func CompletedOnboardingOpen(user *entity.User, store HelloStore) error
func CompletedOnboardingShell ¶
func CompletedOnboardingShell(user *entity.User, store HelloStore) error
func GetDevEnvOrStall ¶
Return nil to exit the onboarding
func GetFirstName ¶
func GetOnboardingFilePath ¶
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 SetHasRunOpen ¶
func SetHasRunShell ¶
func SetOnboardingObject ¶
func SetOnboardingObject(oo OnboardingObject) error
func SetOnboardingStep ¶
func SetupDefaultOnboardingFile ¶
func SetupDefaultOnboardingFile() error
func ShouldWeRunOnboarding ¶
func ShouldWeRunOnboarding(s HelloStore) bool
func SkippedOnboarding ¶
func SkippedOnboarding(user *entity.User, store HelloStore) error
func Step1 ¶
func Step1(t *terminal.Terminal, workspaces []entity.Workspace, user *entity.User, store HelloStore) error
Step 1:
The user just ran brev ls
func TypeItToMe ¶
func TypeItToMe(s string)
func TypeItToMeUnskippable ¶
func TypeItToMeUnskippable(s string)
Types ¶
type HelloStore ¶
type OnboardingObject ¶
type OnboardingObject struct { Step int `json:"step"` HasRunBrevShell bool `json:"hasRunBrevShell"` HasRunBrevOpen bool `json:"hasRunBrevOpen"` }
func GetOnboardingObject ¶
func GetOnboardingObject() (*OnboardingObject, error)
Click to show internal directories.
Click to hide internal directories.