TheR1D / shell_gpt

A command-line productivity tool powered by AI large language models like GPT-4, will help you accomplish your tasks faster and more efficiently.
MIT License
8.86k stars 697 forks source link

ZSH TUI misaligned #413

Closed moritztim closed 6 months ago

moritztim commented 6 months ago

No color and shifted line characters

Usage: sgpt [OPTIONS] [PROMPT]                                                                                      

  ╭─ Arguments                                                                                                        
  ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
  │   prompt      [PROMPT]  The prompt to generate completions for.                                                                                                           
  │                                                                                                                   
  ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
  ╭─ Options                                                                                                          
  ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
  │ --model                             TEXT                       Large language model to use. [default: gpt-3.5-turbo]                                                      
  │                                                                                                                   
  │ --temperature                       FLOAT RANGE [0.0<=x<=2.0]  Randomness of generated output. [default: 0.0]                                                             
  │                                                                                                                   
  │ --top-probability                   FLOAT RANGE [0.0<=x<=1.0]  Limits highest probable tokens (words). [default: 1.0]                                                     
  │                                                                                                                   
  │ --editor             --no-editor                               Open $EDITOR to provide a prompt. [default: no-editor]                                                     
  │                                                                                                                   
  │ --cache              --no-cache                                Cache completion results. [default: cache]                                                                 
  │                                                                                                                   
  │ --version                                                      Show version.                                                                                              
  │                                                                                                                   
  │ --help                                                         Show this message and exit.                                                                                
  │                                                                                                                   
  ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
  ╭─ Assistance Options                                                                                               
  ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
  │ --shell           -s                 Generate and execute shell commands.                                                                                                 
  │                                                                                                                   
  │ --describe-shell  -d                 Describe a shell command.                                                                                                            
  │                                                                                                                   
  │ --code                --no-code      Generate only code. [default: no-code]                                                                                               
  │                                                                                                                   
  ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
  ╭─ Chat Options                                                                                                     
  ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
  │ --chat                             TEXT  Follow conversation with id, use "temp" for quick session. [default: None]                                                       
  │                                                                                                                   
  │ --repl                             TEXT  Start a REPL (Read–eval–print loop) session. [default: None]                                                                     
  │                                                                                                                   
  │ --show-chat                        TEXT  Show all messages from provided chat id. [default: None]                                                                         
  │                                                                                                                   
  │ --list-chats    --no-list-chats          List all existing chat ids. [default: no-list-chats]                                                                             
  │                                                                                                                   
  ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
  ╭─ Role Options                                                                                                     
  ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
  │ --role                              TEXT  System role for GPT model. [default: None]                                                                                      
  │                                                                                                                   
  │ --create-role                       TEXT  Create role. [default: None]                                                                                                    
  │                                                                                                                   
  │ --show-role                         TEXT  Show role. [default: None]                                                                                                      
  │                                                                                                                   
  │ --list-roles     --no-list-roles          List roles. [default: no-list-roles]                                                                                            
  │                                                                                                                   
  ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

image

moritztim commented 6 months ago

Oh shit nvm lmao it's my fault