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 ¶ added in v0.5.0
Result contains the final exit message and code for a CLI session
func ConfigurationError ¶ added in v0.5.0
ConfigurationError returns a Result with the exit code ExConfig
func InvalidUsage ¶ added in v0.5.0
InvalidUsage returns a Result with the exit code ExUsage
func TaskUnavailable ¶ added in v0.5.0
TaskUnavailable returns a Result with the exit code ExUnavailable
Click to show internal directories.
Click to hide internal directories.