cmd

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2024 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvTiktakData = "TIKTAK_DATA"
	DataFileExt   = ".tiktak"
)
View Source
const TimeFlagDoc = `` /* 348-byte string literal not displayed */

Variables

View Source
var Version string = "Dev"

Functions

func CheckPath

func CheckPath(p ...string) error

func CheckPathString

func CheckPathString(p string) error

func CheckTaskName

func CheckTaskName(n string) error

func OutputBasename

func OutputBasename(tl tiktak.TimeLine, day bool) string

func ParseDuration

func ParseDuration(s string) (time.Duration, error)

func ParseRelativeTime

func ParseRelativeTime(rt string) (time.Time, bool, error)

func ParseTime

func ParseTime(tstr string) (time.Time, error)

func ReadConfig

func ReadConfig(cfg any) error

func TikTakDir

func TikTakDir() string

func TikTakFile

func TikTakFile(base string) string

Types

type Config

type Config struct{}

func (*Config) DataFile

func (*Config) DataFile(t time.Time) string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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