From ca45159ec32ca7ab7ccfdf80b20a7a9f33d2e94e Mon Sep 17 00:00:00 2001 From: Matt Low Date: Sat, 4 Nov 2023 22:37:18 +0000 Subject: [PATCH] Change `msgCmd` to `replyCmd` --- pkg/cli/cmd.go | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/pkg/cli/cmd.go b/pkg/cli/cmd.go index 0b98deb..151c34b 100644 --- a/pkg/cli/cmd.go +++ b/pkg/cli/cmd.go @@ -8,9 +8,9 @@ import ( ) var rootCmd = &cobra.Command{ - Use: "lm", + Use: "lmcli", Short: "Interact with Large Language Models", - Long: `lm is a CLI tool to interact with OpenAI's GPT 3.5 and GPT 4.`, + Long: `lmcli is a CLI tool to interact with Large Language Models.`, Run: func(cmd *cobra.Command, args []string) { // execute `lm ls` by default }, @@ -45,17 +45,6 @@ var lsCmd = &cobra.Command{ }, } -var msgCmd = &cobra.Command{ - Use: "msg", - Short: "Send a message to active conversation", - Long: `Send a message to the active conversation and receive a message from the LLM in return.`, - Run: func(cmd *cobra.Command, args []string) { - fmt.Println("Sending message to active conversation...") - // If no messsage provided via args, we should open an editor ala `git commit` - // After submitting the message, the - }, -} - var viewCmd = &cobra.Command{ Use: "view", Short: "View messages in a conversation", @@ -65,6 +54,15 @@ var viewCmd = &cobra.Command{ }, } +var replyCmd = &cobra.Command{ + Use: "reply", + Short: "Send a reply to a conversation", + Long: `Sends a reply to conversation and writes the response to stdout.`, + Run: func(cmd *cobra.Command, args []string) { + fmt.Println("Replying to a conversation...") + }, +} + var newCmd = &cobra.Command{ Use: "new", Short: "Start a new conversation",