onboard

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package onboard provides interactive .env creation for new team members.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NeedsOnboarding

func NeedsOnboarding(envFile string) bool

NeedsOnboarding returns true if the .env file does not exist.

Types

type Onboarder

type Onboarder struct {
	// contains filtered or unexported fields
}

Onboarder walks new developers through creating a .env file interactively.

func New

func New(w io.Writer, r io.Reader, schema map[string]config.EnvVar) *Onboarder

New creates an Onboarder that reads from r, writes prompts to w, and uses the provided schema for defaults and descriptions.

func (*Onboarder) Run

func (o *Onboarder) Run(envFile, exampleFile string) error

Run shows available keys from .env.example and schema, prompts the user for values, and creates the envFile. Returns nil on success or an error if the user cancels.

Jump to

Keyboard shortcuts

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