Documentation
¶
Index ¶
- func EnsureDir(path string) error
- func ExpandPath(path string) string
- func FileExists(path string) bool
- func GenerateID(tool, commandName, target string) string
- func GenerateOutputDir(baseDir, domain string) string
- func NormalizeURL(rawURL string) string
- func ParseURL(rawURL string) (protocol, domain string, err error)
- func PrintError(msg string)
- func PrintInfo(msg string)
- func PrintSuccess(msg string)
- func PrintWarning(msg string)
- func PromptConfirm(label string) (bool, error)
- func PromptOutputDir(defaultDir string) (string, error)
- func PromptSelect(label string, items []string) (string, error)
- func ReadLines(path string) ([]string, error)
- func SanitizeDomain(domain string) string
- func WriteFile(path, content string) error
- func WriteLines(path string, lines []string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExpandPath ¶
ExpandPath expands ~ in path to home directory
func GenerateID ¶
GenerateID generates a unique ID for a session
func GenerateOutputDir ¶
GenerateOutputDir generates a timestamped output directory name
func NormalizeURL ¶
NormalizeURL ensures URL has proper format
func PromptConfirm ¶
PromptConfirm prompts the user for confirmation
func PromptOutputDir ¶
PromptOutputDir prompts the user for an output directory
func PromptSelect ¶
PromptSelect prompts the user to select from a list
func SanitizeDomain ¶
SanitizeDomain removes port from domain if present
func WriteLines ¶ added in v1.1.0
WriteLines writes lines to a file (one line per string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.