internal

package
v0.0.0-...-fe3245e Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BindCmd

func BindCmd(params any) error

BindCmd parse the command parameters and bind results to input struct

func ReadInput

func ReadInput(options string) ([]string, error)

ReadInput reads strings from standard input (stdin). If input is piped, it reads until EOF. If input is interactive (from terminal), it prompts the user to enter options until EOF (Ctrl+D).

Types

type Parameter

type Parameter struct {
	Help    bool
	Title   string
	Options string
}

Parameter is used to store command parameters.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳