class ChatGPT::CLI

Defined in:

chatgpt/cli.cr
chatgpt/cli/parser.cr
chatgpt/cli/version.cr

Constant Summary

SOURCE_URL = "https://github.com/kojix2/chatgpt-cli"
VERSION = {{ (`shards version /srv/crystaldoc.info/github-kojix2-chatgpt-cli-v0.6.1/src/chatgpt/cli`).chomp.stringify }}

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def apply_crustache_rendering(input_msg, opts) #

[View source]
def chat_gpt_client : ChatGPT::Client #

[View source]
def code_blocks : Array(File) #

[View source]
def colorize_code_blocks(msg) #

[View source]
def magic_command_runner : ChatGPT::Magic #

[View source]
def main_run(input_msg) #

[View source]
def options : Hash(String, String | Bool) #

[View source]
def parse_args(args) #

[View source]
def post_data : PostData #

[View source]
def read_input_file #

[View source]
def response_data : ResponseData #

[View source]
def run #

[View source]
def run_config #

[View source]
def run_help #

[View source]
def run_in_batch #

[View source]
def run_interacitively #

[View source]
def run_version #

[View source]
def subcommand : String #

[View source]
def substitutor : ChatGPT::Substitutor #

[View source]
def system_command_runner : ChatGPT::SystemCommand #

[View source]
def total_tokens : Int32 #

[View source]