ExitCode.java

package org.docascode.utils;

public enum ExitCode {
    OK (0),
    RUNTIME_ERROR(1),
    BUILD_FAILED (2),
    NOT_DOCASCODE_REPO(3);

    private int exit = 0;

    ExitCode(int exit){
        this.exit = exit;
    }

    public int toInt(){
        return this.exit;
    }
}