Module dev.metaschema.cli.processor
Enum ShellCompletionCommand.Shell
java.lang.Object
java.lang.Enum<ShellCompletionCommand.Shell>
dev.metaschema.cli.processor.command.ShellCompletionCommand.Shell
- All Implemented Interfaces:
Serializable,Comparable<ShellCompletionCommand.Shell>
- Enclosing class:
- ShellCompletionCommand
Supported shell types.
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic ShellCompletionCommand.ShellfromString(String value) Parse a shell type from a string.getName()Get the shell name.static ShellCompletionCommand.ShellReturns the enum constant of this type with the specified name.static ShellCompletionCommand.Shell[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
BASH
Bash shell. -
ZSH
Zsh shell.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
getName
Get the shell name.- Returns:
- the name
-
fromString
Parse a shell type from a string.- Parameters:
value- the string value to parse- Returns:
- the shell type
- Throws:
IllegalArgumentException- if the value is not a recognized shell type
-