Documentation
¶
Index ¶
- func BoolPrompt(logger *slog.Logger, label string, defaultValue string, isOpen bool) string
- func DeltaRelativePath(basePath string, currentPath string) string
- func FileNameWithoutExtension(fileName string) string
- func InterfaceSliceToStringSlice(data []interface{}) []string
- func NumberPrompt(logger *slog.Logger, label string, defaultValue string) string
- func PasswordPrompt(logger *slog.Logger, label string, defaultValue string) string
- func PathCopy(src, dst string) (int64, error)
- func PathExists(path string) (bool, error)
- func RenderFileContent(src string, jj *jinja2.Jinja2) error
- func SingleSelectPrompt(logger *slog.Logger, label string, items []string) string
- func StringPrompt(logger *slog.Logger, label string, defaultValue string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BoolPrompt ¶
BoolPrompt asks a boolean questions using the label.
func DeltaRelativePath ¶
Get delta relative path
func InterfaceSliceToStringSlice ¶
func InterfaceSliceToStringSlice(data []interface{}) []string
func NumberPrompt ¶
NumberPrompt asks a numerical questions using the label.
func PasswordPrompt ¶
PasswordPrompt asks a password questions using the label.
func PathExists ¶
exists returns whether the given file or directory exists
func RenderFileContent ¶
RenderFileContent renders a file using the jinja templated engine
func SingleSelectPrompt ¶
SelectPrompt asks a single select questions using the label.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.