commands

package
v0.0.0-...-c2e8524 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const RETENTION = 30

Variables

This section is empty.

Functions

func Execute

func Execute()

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

Types

type Config

type Config struct {
	Version int      `json:"version,omitempty"`
	DbPath  string   `json:"dbPath"`
	Db      *bolt.DB `json:"-"`
}

func (*Config) CurrentDate

func (c *Config) CurrentDate() []byte

func (*Config) PreviousDate

func (c *Config) PreviousDate() []byte

func (*Config) SaveConfig

func (c *Config) SaveConfig()

Jump to

Keyboard shortcuts

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