todaygoal

package
v1.104.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2024 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Goal

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

Goal returns total time of given goal id for today's coding activity.

func Run

func Run(ctx context.Context, 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(ctx context.Context, 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