Versions in this module Expand all Collapse all v0 v0.1.2 Feb 20, 2024 v0.1.1 Feb 20, 2024 Changes in this version + const Break + const DefaultPerms + const Duration + const LongBreak + const Prefix + const PrefixBreak + const PrefixWarn + const RestGoal + const SESSION_FILENAME + const Warn + const WorkGoal + var App = &cli.App + func Create(path string) error + func Editor(path string) error + func Exec(command string) error + func Exists(path string) bool + func Input(prompt string) string + func InputConfirm(prompt string) bool + func InsertLine(path, newLine string) error + func InsertLineAtIndex(path, newLine string, index int) error + func List(dir string) []string + func Mkdir(path string) error + func Open(path string) error + func Read(filePath string) (string, error) + func ReadLines(filePath string) ([]string, error) + func Remove(path string) error + func RemoveAll(path string) error + func StopWatchFormat(dur time.Duration) string + func Write(path string, text string) error + func WriteAppend(path string, text string) error + type Conf struct + Dir string + File string + Id string + func (c Conf) Data() []byte + func (c Conf) Del(key string) error + func (c Conf) DirPath() string + func (c Conf) Edit() error + func (c Conf) Init() error + func (c Conf) OverWrite(newconf any) error + func (c Conf) Path() string + func (c Conf) Print() error + func (c Conf) Query(q string) string + func (c Conf) QueryPrint(q string) + func (c Conf) Set(key string, val any) error + type Session struct + EndTime string + Filepath string + StartTime string + Type SessionType + func ListSessions() ([]Session, error) + func (s *Session) Current() error + func (s *Session) Remove() error + func (s *Session) Save() error + func (s *Session) Scan(line string) error + func (s *Session) Start() error + func (s *Session) Stop() error + func (s *Session) String() string + type SessionType string + const BreakSession + const LongBreakSession + const WorkSession