usage

package
v6.7.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2026 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package usage provides for returning usage messages including interacting with the user on the command line.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func QueryUser

func QueryUser(prompt, noResponse string) bool

QueryUser prompts the user and defaults to "yes" when enter is pressed

func QueryUserNo

func QueryUserNo(prompt, noResponse string) bool

QueryUserNo prompts the user and defaults to "no" when enter is pressed

func Replace

func Replace(msg string, values ...string) string

Replace accepts a string and an arbitrary number of additional string parameters. It replaces {N} in the string with the Nth additional string.

func Usage

func Usage(msg string, values ...string) error

Usage returns an error version of the Replace string

func Wait

func Wait()

Types

This section is empty.

Jump to

Keyboard shortcuts

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