starship

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2026 License: MIT Imports: 6 Imported by: 0

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

func NewStarshipCmd(binaryName string) *cobra.Command

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

type StatusProvider func(s state.State) (string, error)

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.

Jump to

Keyboard shortcuts

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