Documentation
¶
Overview ¶
Package user_interface implements the user interface functionality
Index ¶
- type LsUserInterface
- func (l LsUserInterface) Input(_ string) (string, error)
- func (l LsUserInterface) NewProgressBar() ui.ProgressBar
- func (l LsUserInterface) Output(output string) error
- func (l LsUserInterface) OutputError(err error, _ ...ui.Opts) error
- func (l LsUserInterface) SelectOptions(_ string, _ []string) (int, string, error)
- type LsUserInterfaceOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LsUserInterface ¶
type LsUserInterface struct {
// contains filtered or unexported fields
}
func NewLsUserInterface ¶
func NewLsUserInterface(opts ...LsUserInterfaceOption) *LsUserInterface
func (LsUserInterface) NewProgressBar ¶
func (l LsUserInterface) NewProgressBar() ui.ProgressBar
func (LsUserInterface) Output ¶
func (l LsUserInterface) Output(output string) error
func (LsUserInterface) OutputError ¶
func (l LsUserInterface) OutputError(err error, _ ...ui.Opts) error
func (LsUserInterface) SelectOptions ¶
type LsUserInterfaceOption ¶
type LsUserInterfaceOption func(*LsUserInterface)
func WithLogger ¶
func WithLogger(logger *zerolog.Logger) LsUserInterfaceOption
func WithProgressBar ¶
func WithProgressBar(progressBar ui.ProgressBar) LsUserInterfaceOption
Click to show internal directories.
Click to hide internal directories.