Discover Packages
github.com/mkideal/cli
clis
package
Version:
v0.2.7
Opens a new window with list of versions in this module.
Published: Jul 11, 2021
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 9
Opens a new window with list of known importers.
Documentation
Documentation
¶
AbortOn will quit on the anticipated error gracefully without stack trace
Abs returns the absolute value of x.
Basename returns the file name without extension.
IsExist checks if the given file exist
func Verbose(levelSet int , format string , args ...interface{})
Verbose will print info to stderr according to the verbose level setting
WarnOn will print the error message as a Warning, if applicable,
and retur true if so.
For a suggested format of "ActionName, step name", the output would be
[progname] Warning: ActionName, step name, sql: Rows are closed
Warning will print the given string as a Warning
type OptsT struct {
Verbose int
}
The OptsT type defines all the configurable options from cli.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.