Module Run.RunResult

A simplified run result. It contains the ready to print strings for help, suggest and etc.

type ok('a) =
| Run('a)

The arguments are valid and the command can be executed

| Help(string)

Help was requested

| Version(string)

Version was requested

| Suggest(string)

Suggestions for autocompletion were requested

| AutoCompleteScript(string, string)

A script for autocompletion to be added to the bash config was requested

| AddPath(string, string)

A script for installation to be added to the bash config was requested

| RemovePath
;
type err =
| ConfigError(string)

There was a configuration error, this can be validated before distribution of the application

| UserError(string)

The user has provided some invalid input

| UnknownError(string)

It's unclear if the error is a developer or user mistake

;
type t('a) = Stdlib.result(ok('a), err);