Enum Class OpenCodeCliAvailabilityStatus
java.lang.Object
java.lang.Enum<OpenCodeCliAvailabilityStatus>
io.github.easy4j.opencode.cli.availability.OpenCodeCliAvailabilityStatus
- All Implemented Interfaces:
Serializable,Comparable<OpenCodeCliAvailabilityStatus>,Constable
Enumeration of possible outcomes from an OpenCode CLI availability probe.
- Since:
- 1.0.0
- Author:
- Loong Wan
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCLI 可执行文件存在且版本探测命令成功。配置中没有提供 CLI 可执行文件名称或路径。目标文件存在,但当前进程没有执行权限。在配置路径和系统 PATH 中均未找到可执行文件。探测过程中发生未归类的异常。版本探测命令已运行,但以非零状态码退出。操作系统拒绝或无法启动 CLI 子进程。版本探测命令未在配置的超时时间内结束。 -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static OpenCodeCliAvailabilityStatus[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
AVAILABLE
CLI 可执行文件存在且版本探测命令成功。 -
EXECUTABLE_NOT_CONFIGURED
配置中没有提供 CLI 可执行文件名称或路径。 -
EXECUTABLE_NOT_FOUND
在配置路径和系统 PATH 中均未找到可执行文件。 -
EXECUTABLE_NOT_EXECUTABLE
目标文件存在,但当前进程没有执行权限。 -
SPAWN_FAILED
操作系统拒绝或无法启动 CLI 子进程。 -
NON_ZERO_EXIT
版本探测命令已运行,但以非零状态码退出。 -
TIMEOUT
版本探测命令未在配置的超时时间内结束。 -
FAILED
探测过程中发生未归类的异常。
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-