Documentation
¶
Overview ¶
Package util provides helper functions for execution of commands and presenting their stderr and stdout in uniform way. Provides also a way to capture text generated by FlagSet as command line arguments' documentation (PrintDefaults)
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Reset = "\033[0m" Red = "\033[31m" Green = "\033[32m" Yellow = "\033[33m" Blue = "\033[34m" Magenta = "\033[35m" Cyan = "\033[36m" Gray = "\033[37m" White = "\033[97m" )
Functions ¶
func CenterString ¶
func FormatFlagUsage ¶
FormatFlagUsage returns a string containing the usage information for the given FlagSet.
func LogCommand ¶
function LogCommand runs a command pretty-printing its stdout and stderr
func LogStartStop ¶
LogStartStop is a helper function which executes a particular command with logging
func StripExtension ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.