cli

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AttachToParentConsole

func AttachToParentConsole() (attached bool, err error)

AttachToParentConsole is a stub for a function available only on the Windows platform

func PrintAndLogError

func PrintAndLogError(log zerolog.Logger, err error, format string, args ...interface{})

PrintAndLogError prints an error message to the console and logs it to the logger

func PrintCSV

func PrintCSV(log zerolog.Logger, obj interface{})

PrintCSV marshals the specified object to CSV and prints it

func PrintJSON

func PrintJSON(log zerolog.Logger, obj interface{})

PrintJSON marshals the specified object to JSON and prints it

func PrintXML

func PrintXML(log zerolog.Logger, obj interface{})

PrintXML marshals the specified object to XML and prints it

func StartRunningTimesheet

func StartRunningTimesheet(task models.Task) error

func StopRunningTimesheet

func StopRunningTimesheet() error

Types

This section is empty.

Jump to

Keyboard shortcuts

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