Documentation
¶
Index ¶
- Variables
- func Confirm(message string) (bool, error)
- func DeduplicateConfigs(configs []*devcontainer.Config) []*devcontainer.Config
- func LogoString() string
- func PrintLogo()
- func RunWithSpinner(label string, fn func() error) error
- func SelectProject(label string, projects []ProjectItem) (int, error)
- type ProjectItem
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCancelled = fmt.Errorf("selection cancelled")
ErrCancelled is returned when the user cancels the selection.
Functions ¶
func DeduplicateConfigs ¶ added in v1.0.0
func DeduplicateConfigs(configs []*devcontainer.Config) []*devcontainer.Config
DeduplicateConfigs removes configs with duplicate project names, keeping only the first occurrence of each unique project name.
func LogoString ¶ added in v1.0.0
func LogoString() string
LogoString returns the dcstop logo as a sunset-gradient string.
func PrintLogo ¶ added in v1.0.2
func PrintLogo()
PrintLogo prints the dcstop logo with a sunset gradient.
func RunWithSpinner ¶ added in v1.0.0
RunWithSpinner runs fn while displaying a spinner labeled with label. The spinner is replaced by ✓ on success or ✗ on failure.
func SelectProject ¶ added in v1.0.0
func SelectProject(label string, projects []ProjectItem) (int, error)
SelectProject shows an interactive filterable list of projects and returns the index of the selected item.
Types ¶
Click to show internal directories.
Click to hide internal directories.