todaygoal

package
v1.88.1 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: BSD-3-Clause Imports: 11 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 today's 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
	Output output.Output
	API    params.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