Class: Askcii::Commands::HelpCommand
- Inherits:
-
BaseCommand
- Object
- BaseCommand
- Askcii::Commands::HelpCommand
- Defined in:
- lib/askcii/commands/help_command.rb
Overview
Displays help information
Instance Attribute Summary
Attributes inherited from BaseCommand
Instance Method Summary collapse
Methods inherited from BaseCommand
Constructor Details
This class inherits a constructor from Askcii::Commands::BaseCommand
Instance Method Details
#execute ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/askcii/commands/help_command.rb', line 7 def execute puts " askcii - Command-line interface for multiple LLM providers\n\n Usage:\n askcii [options] \"Your prompt here\"\n echo \"input\" | askcii [options] \"Your prompt\"\n\n Options:\n -p, --private Create a private session (no history saved)\n -r, --last-response Retrieve the last assistant response from current session\n -c, --configure Open configuration management interface\n -m, --model ID Use specific configuration by ID\n -v, --verbose Show detailed information during execution\n --session NAME Use specific session name (alternative to ASKCII_SESSION)\n --list-sessions List all available sessions\n --history Show current session history\n --clear-history Clear current session history\n -h, --help Show this help message\n\n Environment Variables:\n ASKCII_SESSION Session identifier for conversation persistence\n ASKCII_API_KEY API key (legacy, use -c to configure)\n ASKCII_API_ENDPOINT API endpoint (legacy)\n ASKCII_MODEL_ID Model ID (legacy)\n\n Examples:\n askcii \"Explain what a Ruby block is\"\n askcii -p \"What is the capital of France?\"\n echo \"def hello\\nputs 'hi'\\nend\" | askcii \"Explain this Ruby code\"\n askcii -m 2 \"Use configuration #2\"\n askcii --session my-project \"Continue conversation in my-project session\"\n ASKCII_SESSION=work askcii \"Use work session\"\n\n Configuration:\n Run 'askcii -c' to configure providers interactively.\n Supports: OpenAI, Anthropic, Gemini, DeepSeek, OpenRouter, Ollama\n\n For more information, visit: https://github.com/yourusername/askcii\n HELP\n\n exit 0\nend\n" |