sweetpea.core.generate.tools.return_code module¶
This module provides a simple enumeration base class for managing return codes in command-line utilities.
- class sweetpea.core.generate.tools.return_code.ReturnCodeEnum(value)¶
Bases:
enum.EnumCommand-line functions produce return codes, and sometimes these do not necessarily indicate an error. Subclasses of this enum can be used for managing the various return codes and checking against them conveniently.
- classmethod has_value(value)¶
Determines whether this
ReturnCodeEnumcontains the indicatedvalue.