cmd

package
v0.0.0-...-345b6a2 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Commands = cli.Commands{
	date.Command,
	json.Command,
	yaml.Command,
	toml.Command,
	xml.Command,
}

Commands shows all first-level command set in application.

Functions

This section is empty.

Types

type WriteHook

type WriteHook struct{}

WriteHook is a listener which implements from writer.WriteListener.

func (*WriteHook) OnWrite

func (w *WriteHook) OnWrite(data *writer.Data)

OnWrite receives a data string from write channel.

Directories

Path Synopsis
Package date supports viewing date, formatted output, and conversion between timestamp and date, for example, if you want to know what date it is, you can execute a simple command "show date now", and the sample output like "2021-11-29 13:54:28.078364 +0800 CST m=+0.000846726", if you want to show as timestamp, you can execute command "show date now --timestamp", sometimes, we usually need to convert both timestamp and date, the best command "show date convert" maybe the best choice, for more information, you can execute "show date --help" to see.
Package date supports viewing date, formatted output, and conversion between timestamp and date, for example, if you want to know what date it is, you can execute a simple command "show date now", and the sample output like "2021-11-29 13:54:28.078364 +0800 CST m=+0.000846726", if you want to show as timestamp, you can execute command "show date now --timestamp", sometimes, we usually need to convert both timestamp and date, the best command "show date convert" maybe the best choice, for more information, you can execute "show date --help" to see.
Package json is used to beautify the json output.
Package json is used to beautify the json output.
Package toml is used to beautify the output of toml.
Package toml is used to beautify the output of toml.
Package writer opens a goroutine to receive data from the main worker.
Package writer opens a goroutine to receive data from the main worker.
Package yaml is used to beautify the output of yaml.
Package yaml is used to beautify the output of yaml.

Jump to

Keyboard shortcuts

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