wizard

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2026 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Recommend

func Recommend(store *license.Store, answers Answers) []license.License

Recommend returns licenses matching the user's answers. It always returns at least the featured licenses as a fallback.

func Run

func Run(w io.Writer, store *license.Store) error

Run executes the interactive wizard flow. It asks questions, recommends licenses, lets the user pick one, and generates it.

Types

type Answers

type Answers struct {
	Permissive bool
	Copyleft   bool
	PatentUse  bool
}

Answers holds the user's responses to the wizard questions.

Jump to

Keyboard shortcuts

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