class LLM::CLI::Shell
- LLM::CLI::Shell
- Reference
- Object
Defined in:
llm-cli/shell.crConstant Summary
-
AVAILABLE_SHELLS =
((File.read("/etc/shells")).split("\n")).map!(&.strip).reject!(&.starts_with?('#'))
-
PREFERRED_SHELLS =
{ENV["SHELL"]?, "/zsh", "/bash", "/sh"}
Instance Method Summary
- #get_input(prompt)
- #operating_system
-
#selected : String
automatically select a shell to run commands in based on what's available in the users environment
Instance Method Detail
def selected : String
#
automatically select a shell to run commands in based on what's available in the users environment