cmds

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFunc

func AddFunc(s *State) string

func AggFunc

func AggFunc(s *State) string

TODO: Steps 2 & 3 below could be multi-threaded.

func LsFunc

func LsFunc(s *State) string

func RecFunc

func RecFunc(s *State) string

Updates the cache or text file based on current time.

func ResetFunc

func ResetFunc(s *State) string

func SetFunc

func SetFunc(s *State) string

func SubFunc

func SubFunc(s *State) string

func TidyFunc

func TidyFunc(s *State) string

No files are deleted, but files can be added. Files are cleaned too.

Types

type State

type State struct {
	CacheDir  string
	DataDir   string
	BeginDate types.Date
	EndDate   types.Date
	Recursive bool
	Cached    bool
	Stored    bool
	Daily     bool
	Groups    []types.Group
	Date      types.Date
	Now       time.Time
	Duration  types.DaySeconds
}

Jump to

Keyboard shortcuts

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