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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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