class LLM::CLI::Shell

Defined in:

llm-cli/shell.cr

Constant Summary

AVAILABLE_SHELLS = ((File.read("/etc/shells")).split("\n")).map!(&.strip).reject!(&.starts_with?('#'))
PREFERRED_SHELLS = {ENV["SHELL"]?, "/zsh", "/bash", "/sh"}

Instance Method Summary

Instance Method Detail

def get_input(prompt) #

[View source]
def operating_system #

[View source]
def selected : String #

automatically select a shell to run commands in based on what's available in the users environment


[View source]