prompt

package
v1.0.24 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package prompt provides user interaction utilities for GSwarm, including input validation and user prompting functionality.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Choice

func Choice(prompt string, options map[string]string, defaultValue string) string

Choice prompts the user to choose from a set of options

func GetKeys

func GetKeys(m map[string]string) []string

GetKeys returns the keys from a map as a slice

func HFToken

func HFToken() string

HFToken prompts the user for a HuggingFace token

func SetTestInput

func SetTestInput(input []string)

SetTestInput sets input for testing

func User

func User(prompt string, defaultValue string, validOptions []string) string

User prompts the user for input with validation

func YesNo

func YesNo(prompt string, defaultValue string) bool

YesNo prompts the user for a yes/no response

Types

This section is empty.

Jump to

Keyboard shortcuts

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