cmd

package
v2016.10.18+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2016 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Clockfile string
View Source
var Debug bool
View Source
var EffectiveTimeNow = time.Now() //.round(time.Minute)
View Source
var ModifyEffectiveTime time.Duration
View Source
var RootCmd = &cobra.Command{
	Use:   "p",
	Short: "Punch or short 'p': A flexible time tracker and time reporting tool",
	Long: `Punch or short 'p': A flexible time tracker and time reporting tool.
made by (and mainly for) Jörg Ramb.

Use this tool to keep track of time spent on projects, assignments, work, etc.
Apart from registering the time periods in a database you
can use this to perform simple todo, logging and reporting on the data.`,
}

RootCmd represents the base command when called without any subcommands

View Source
var RoundTime time.Duration
View Source
var RoundingBias time.Duration // rounding modifier should not be more then half the RoundTime
View Source
var ShowRounding bool

Functions

func D

func D(args ...interface{})

func Execute

func Execute()

Execute adds all child commands to the root command sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func GetEffectiveTime

func GetEffectiveTime() time.Time

Types

This section is empty.

Jump to

Keyboard shortcuts

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