Discover Packages
github.com/PhilipKram/gitlab-cli
internal
prompt
package
Version:
v0.0.2
Opens a new window with list of versions in this module.
Published: Feb 17, 2026
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0 modules, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
Documentation
Documentation
¶
func Confirm(in io.Reader, out io.Writer, prompt string, defaultYes bool) (bool, error)
func Input(in io.Reader, out io.Writer, prompt string) (string, error)
func Password(out io.Writer, prompt string) (string, error)
func Select(in io.Reader, out io.Writer, prompt string, options []string) (int, error)
type Prompter
Confirm asks a yes/no question. defaultYes controls the default when the
user just presses Enter.
Input reads a line of text from the user.
Password reads a line of input with echo disabled (masked).
Falls back to regular input if the reader is not a terminal.
Select presents a list of options and returns the index of the chosen one.
The display uses the same style as GitHub CLI:
? What account do you want to log into? [Use arrows to move, type to filter]
> GitHub.com
GitHub Enterprise Server
Prompter provides interactive terminal prompts.
New creates a Prompter that reads from in and writes to out.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.