Documentation ¶
Index ¶
Constants ¶
View Source
const ( //ExSuccess is the exit code that signals that everything went as expected ExSuccess = 0 //ExUsage is the exit code that signals that the application was not started with the correct arguments ExUsage = 64 ExUnavailable = 69 //ExConfig is the exit code that signals that the task failed due to a configuration error ExConfig = 78 )
Variables ¶
View Source
var Success = Result{}
Success is the empty Result that is used whenever the command ran successfully
Functions ¶
This section is empty.
Types ¶
type Result ¶
Result contains the final exit message and code for a CLI session
func ConfigurationError ¶
ConfigurationError returns a Result with the exit code ExConfig
func InvalidUsage ¶
InvalidUsage returns a Result with the exit code ExUsage
func TaskUnavailable ¶
TaskUnavailable returns a Result with the exit code ExUnavailable
Click to show internal directories.
Click to hide internal directories.