todaygoal

package
v1.18.1-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2021 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Goal

func Goal(v *viper.Viper) (string, error)

Goal returns total time of given goal id for todays coding activity.

func Run

func Run(v *viper.Viper) (int, error)

Run executes the today-goal command.

Types

type Params

type Params struct {
	GoalID string
	API    legacyparams.API
}

Params contains today-goal command parameters.

func LoadParams

func LoadParams(v *viper.Viper) (Params, error)

LoadParams loads todaygoal config params from viper.Viper instance. Returns ErrAuth if failed to retrieve api key.

Jump to

Keyboard shortcuts

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