BashSpark main namespace.
Definition command.h:39
constexpr std::size_t SHELL_MAX_DEPTH
Maximum depth allowed for shell.
Definition shell_status.h:41
constexpr bool is_syntax_error(const shell_status nStatus)
Definition shell_status.h:258
shell_status
Shell status codes.
Definition shell_status.h:47
@ SHELL_CMD_ERROR_GETENV_PARAM_NUMBER
Indicates an error with the number of parameters for command getenv.
@ SHELL_CMD_ERROR_MATH_DIV_BY_ZERO
Command math: error indicating an attempt to divide by zero, which is undefined.
@ SHELL_ERROR_SYNTAX_ERROR_UNCLOSED_BRACKETS
Indicates a syntax error in the command, unclosed brackets.
@ SHELL_CMD_ERROR_SETVAR_PARAM_NUMBER
Indicates an error with the number of parameters for command setenv.
@ SHELL_ERROR_MAX_DEPTH_REACHED
Indicates the maximum depth for command nesting has been reached.
@ SHELL_ERROR_SYNTAX_ERROR_UNFINISHED_KEYWORD_UNTIL
Indicates a syntax error in the command, the keyword "until" is not finished.
@ SHELL_ERROR_SYNTAX_ERROR_UNCLOSED_DOUBLE_QUOTES
Indicates a syntax error in the command, unclosed double quotes.
@ SHELL_CMD_ERROR_TEST_MALFORMED_EXPRESSION
Command test: error indicating that the expression is malformed.
@ SHELL_CMD_ERROR_SETENV_PARAM_NUMBER
Indicates an error with the number of parameters for command setenv.
@ SHELL_ERROR_SYNTAX_ERROR_INVALID_FUNCTION_NAME
Indicates a syntax error in the command, invalid function name.
@ SHELL_ERROR_SYNTAX_ERROR_EMPTY_BLOCK
Indicates a syntax error in the command, an empty block.
@ SHELL_ERROR_SYNTAX_ERROR
Indicates a syntax error in the command.
@ SHELL_ERROR_SYNTAX_ERROR_MISSING_KEYWORD_THEN
Indicates a syntax error in the command, the keyword "then" is missing.
@ SHELL_CMD_ERROR_MATH_OVERFLOW
Command math: error indicating that the result of a mathematical operation has exceeded the maximum l...
@ SHELL_CMD_ERROR_MATH_MALFORMED_EXPRESSION
Command math: error indicating that the mathematical expression provided is improperly formatted.
@ SHELL_ERROR_SYNTAX_ERROR_UNCLOSED_VARIABLE
Indicates a syntax error in the command, unclosed back variable.
@ SHELL_CMD_ERROR_MATH_NOT_AN_INTEGER
Command math: error indicating that the input is not an integer.
@ SHELL_ERROR_COMMAND_NOT_FOUND
Indicates the command was not found.
@ SHELL_CMD_ERROR_MATH_POW_0_EXP_0
Command math: error indicating that the calculation of 0 raised to the power of 0 is not defined.
@ SHELL_ERROR_SYNTAX_ERROR_UNCLOSED_PARENTHESES
Indicates a syntax error in the command, unclosed parentheses.
@ SHELL_CMD_ERROR_MATH_FACTORIAL_NEGATIVE
Command math: error indicating an attempt to compute the factorial of a negative number,...
@ SHELL_ERROR_SYNTAX_ERROR_UNEXPECTED_TOKEN
Indicates a syntax error in the command, unexpected token.
@ SHELL_CMD_ERROR_SETVAR_VARIABLE_NAME_INVALID
Indicates that the variable name passed to setenv is not valid.
@ SHELL_ERROR_SYNTAX_ERROR_UNFINISHED_KEYWORD_LOOP
Indicates a syntax error in the command, the keyword "loop" is not finished.
@ SHELL_CMD_ERROR_TEST_MALFORMED_REGEX
Command test: error indicating that a regex comparation is using an invalid regex.
@ SHELL_CMD_ERROR_MATH_INVALID_VARIABLE_NAME
Command math: error indicating that the specified variable name does not conform to valid naming conv...
@ SHELL_CMD_ERROR_SEQ_INT_OUT_OF_BOUNDS
Indicates that the parameter seq received a number out of bounds.
@ SHELL_ERROR
Indicates a generic error occurred.
@ SHELL_ERROR_SYNTAX_ERROR_UNFINISHED_KEYWORD_IF
Indicates a syntax error in the command, the keyword "if" is not finished.
@ SHELL_ERROR_SYNTAX_ERROR_UNEXPECTED_EOF
Indicates a syntax error in the command, unexpected eof.
@ SHELL_ERROR_SYNTAX_ERROR_UNCLOSED_BACK_QUOTES
Indicates a syntax error in the command, unclosed back quotes.
@ SHELL_CMD_ERROR_GETVAR_VARIABLE_NAME_INVALID
Indicates that the variable name passed to getenv is not valid.
@ SHELL_ERROR_SYNTAX_ERROR_UNCLOSED_SIMPLE_QUOTES
Indicates a syntax error in the command, unclosed simple quotes.
@ SHELL_ERROR_BAD_ENCODING
Indicates a syntax error in encoding.
@ SHELL_CMD_ERROR
Indicates base error value for commands.
@ SHELL_ERROR_SYNTAX_ERROR_UNCLOSED_SUBCOMMAND
Indicates a syntax error in the command, unclosed back quotes.
@ SHELL_ERROR_SYNTAX_ERROR_UNFINISHED_KEYWORD_WHILE
Indicates a syntax error in the command, the keyword "while" is not finished.
@ SHELL_CMD_ERROR_SEQ_PARAM_NUMBER
Indicates an error with the number of parameters for command seq.
@ SHELL_CMD_ERROR_FCALL_FUNCTION_NOT_FOUND
Command fcall: Indicates the function was not found.
@ SHELL_ERROR_SYNTAX_ERROR_ARG_OUT_OF_RANGE
Indicates a syntax error in the command, an argument out of range.
@ SHELL_CMD_ERROR_MATH_MAX_DEPTH_REACHED
Command math: error indicating that the maximum recursion or computation depth has been reached.
@ SHELL_ERROR_SYNTAX_ERROR_UNCLOSED_SQR_BRACKETS
Indicates a syntax error in the command, unclosed square brackets.
@ SHELL_CMD_ERROR_TEST_UNCLOSED_PARENTHESIS
Command test: error indicating that opened parenthesis have not been closed.
@ SHELL_CMD_ERROR_SEQ_ITERATION_LOGIC
Command seq: error indicating that the sequence can not be iterated.
@ SHELL_ERROR_SYNTAX_ERROR_UNFINISHED_KEYWORD_FOR
Indicates a syntax error in the command, the keyword "for" is not finished.
@ SHELL_SUCCESS
Indicates successful execution.
@ SHELL_CMD_TEST_FALSE
Command test: status code indicating that the test is false.
@ SHELL_CMD_ERROR_GETVAR_PARAM_NUMBER
Indicates an error with the number of parameters for command getenv.
@ SHELL_ERROR_SYNTAX_ERROR_MISSING_KEYWORD_DO
Indicates a syntax error in the command, the keyword "do" is missing.
@ SHELL_CMD_ERROR_SETENV_VARIABLE_NAME_INVALID
Indicates that the variable name passed to setenv is not valid.
@ SHELL_ERROR_SYNTAX_ERROR_MISSING_KEYWORD_IN
Indicates a syntax error in the command, the keyword "in" is missing.
@ SHELL_CMD_ERROR_FCALL_PARAM_NUMBER
Indicates an error with the number of parameters for command fcall.
@ SHELL_CMD_ERROR_MATH_SEQ_ITERATION_LOGIC
Command math: error indicating that the sequence can not be iterated.
@ SHELL_CMD_ERROR_SEQ_INVALID_INT_FORMAT
Indicates that the parameter seq received is not a number.
@ SHELL_CMD_ERROR_GETENV_VARIABLE_NAME_INVALID
Indicates that the variable name passed to getenv is not valid.
@ SHELL_ERROR_SYNTAX_ERROR_INVALID_VARIABLE_NAME
Indicates a syntax error in the command, invalid variable name.
@ SHELL_ERROR_SYNTAX_ERROR_INVALID_FUNCTION_BODY
Indicates a syntax error in the command, the function body definition is wrong.
@ SHELL_CMD_ERROR_MATH_UNDERFLOW
Command math: error indicating that the result of a mathematical operation has fallen below the minim...
constexpr shell_status make_user_code(const unsigned int nCode)
Generates status codes for user use from user codes.
Definition shell_status.h:249