Source File
mode.go
Belonging Package
src.elv.sh/pkg/cli/mode
// Package mode implements modes, which are widgets tailored for a specific// task.package modeimport// Returns text styled as a modeline.func ( string, bool) ui.Text {:= ui.T(, ui.Bold, ui.FgWhite, ui.BgMagenta)if {= ui.Concat(, ui.T(" "))}return}func ( string, bool) func() ui.Text {:= modeLine(, )return func() ui.Text { return }}// Prompt returns a callback suitable as the prompt in the codearea of a// mode widget.var Prompt = modePrompt
The pages are generated with Golds v0.2.8-preview. (GOOS=darwin GOARCH=arm64)