Versions in this module Expand all Collapse all v0 v0.1.0 Jan 27, 2023 Changes in this version + const TreeBranchChar + const TreeLastChar + const TreeNodeChar + var AppDescription = AppName + " v" + Version + var AppName = "todo-cli" + var BuildDate = "2021-08-01T00:00:00Z" + var BuildHost = "dev" + var Version = "0.1.0" + func AskYesNo(defaultValue bool, prompt string, args ...any) bool + func DirectoryExists(dirName string) error + func DurationString(d time.Duration) string + func FileExists(fileName string) error + func GetDefaultDataFolder() string + func InputText(prompt string, defaultValue string) string + type BackupFiles struct + func NewBackupFiles(backupFolder string, fileNamePrefix string, maxFiles int, ...) (*BackupFiles, error) + func (b *BackupFiles) GetBackupFiles() (backupFiles []string, err error) + func (b *BackupFiles) GetLastBackupFile() string + func (b *BackupFiles) GetNewBackupFileName() string + func (b *BackupFiles) Purge() (err error) + type TreeNode struct + Text string + func NewTreeNode(id string) *TreeNode + func (t *TreeNode) AddChild(id string, childText string) (child *TreeNode) + func (t *TreeNode) FindById(id string) *TreeNode + func (t *TreeNode) Print(w io.Writer) v0.0.1 Oct 18, 2022 Changes in this version + func GetShellData() (shellProfile string, thisPath string) + func GetUser() string + func Tern(cond bool, a, b string) string