core

package
v0.0.0-...-43d0979 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolPrompt

func BoolPrompt(logger *slog.Logger, label string, defaultValue string, isOpen bool) string

BoolPrompt asks a boolean questions using the label.

func DeltaRelativePath

func DeltaRelativePath(basePath string, currentPath string) string

Get delta relative path

func FileNameWithoutExtension

func FileNameWithoutExtension(fileName string) string

func InterfaceSliceToStringSlice

func InterfaceSliceToStringSlice(data []interface{}) []string

func NumberPrompt

func NumberPrompt(logger *slog.Logger, label string, defaultValue string) string

NumberPrompt asks a numerical questions using the label.

func PasswordPrompt

func PasswordPrompt(logger *slog.Logger, label string, defaultValue string) string

PasswordPrompt asks a password questions using the label.

func PathCopy

func PathCopy(src, dst string) (int64, error)

PathCopy copies file/folder to another location

func PathExists

func PathExists(path string) (bool, error)

exists returns whether the given file or directory exists

func RenderFileContent

func RenderFileContent(src string, jj *jinja2.Jinja2) error

RenderFileContent renders a file using the jinja templated engine

func SingleSelectPrompt

func SingleSelectPrompt(logger *slog.Logger, label string, items []string) string

SelectPrompt asks a single select questions using the label.

func StringPrompt

func StringPrompt(logger *slog.Logger, label string, defaultValue string) string

StringPrompt asks a open string questions using the label.

Types

This section is empty.

Jump to

Keyboard shortcuts

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