Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearProviders ¶
func ClearProviders()
ClearProviders removes all registered providers. This is primarily used for testing.
func NewStarshipCmd ¶
NewStarshipCmd creates the starship command and its subcommands. The binaryName parameter is used to configure the command in starship.toml (e.g., "flow" will generate "command = \"flow starship status\"").
func RegisterProvider ¶
func RegisterProvider(p StatusProvider)
RegisterProvider registers a status provider to be called by the status command. This allows Grove tools to add their status generation logic to the starship prompt.
Types ¶
type StatusProvider ¶
StatusProvider generates a status string for a tool based on the current state. Providers should return an empty string if they have nothing to display.
func GetProviders ¶
func GetProviders() []StatusProvider
GetProviders returns all registered status providers. This is primarily used for testing.