cmd

package
v0.0.0-...-046d61f Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Copyright © 2022 NAME HERE <EMAIL ADDRESS>

Copyright © 2022 NAME HERE <EMAIL ADDRESS>

Index

Constants

View Source
const CONFIG_FILE_DEFAULT = ".tk.yaml"

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 Cron

type Cron struct {
	// contains filtered or unexported fields
}

func ParseCron

func ParseCron(spec string) (*Cron, error)

func (*Cron) Next

func (c *Cron) Next(t time.Time) time.Time

type RuntimeInfo

type RuntimeInfo struct {
	GOVersion string
	GOOS      string
	GOARCH    string
	NumCPU    int
	GOPATH    string
	GOROOT    string
	Compiler  string
	PATH      string `split:":"`
	SHELL     string
	CurPath   string
}

RuntimeInfo hold info

Jump to

Keyboard shortcuts

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