Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatScenarioList ¶ added in v0.7.0
func FormatScenarioList() string
FormatScenarioList renders all scenarios with one-line descriptions.
func IsScenarioListName ¶ added in v0.7.0
IsScenarioListName reports whether name requests scenario listing.
func SetupProject ¶
SetupProject creates a temporary directory with a realistic Go project and git history for exploring grut without needing your own repository. Returns the project path and a cleanup function that removes the temporary directory.
Types ¶
type Scenario ¶ added in v0.7.0
type Scenario struct {
Name string
Description string
Layout string
FocusPanel string
Guide []string
// contains filtered or unexported fields
}
Scenario describes a guided demo walkthrough and its initial UI state.
func LookupScenario ¶ added in v0.7.0
LookupScenario returns a scenario by name.
type ScenarioSetup ¶ added in v0.7.0
ScenarioSetup describes the project path and selected scenario returned by SetupProjectWithOptions.
func SetupProjectWithOptions ¶ added in v0.7.0
func SetupProjectWithOptions(opts SetupOptions) (*ScenarioSetup, func(), error)
SetupProjectWithOptions creates a demo project and optionally applies a guided scenario.
type SetupOptions ¶ added in v0.7.0
SetupOptions controls demo project creation.