Change msgCmd
to replyCmd
This commit is contained in:
parent
5c6ec5e4e2
commit
ca45159ec3
@ -8,9 +8,9 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
var rootCmd = &cobra.Command{
|
var rootCmd = &cobra.Command{
|
||||||
Use: "lm",
|
Use: "lmcli",
|
||||||
Short: "Interact with Large Language Models",
|
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) {
|
Run: func(cmd *cobra.Command, args []string) {
|
||||||
// execute `lm ls` by default
|
// 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{
|
var viewCmd = &cobra.Command{
|
||||||
Use: "view",
|
Use: "view",
|
||||||
Short: "View messages in a conversation",
|
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{
|
var newCmd = &cobra.Command{
|
||||||
Use: "new",
|
Use: "new",
|
||||||
Short: "Start a new conversation",
|
Short: "Start a new conversation",
|
||||||
|
Loading…
Reference in New Issue
Block a user