mirror of
https://github.com/chaitin/MonkeyCode.git
synced 2026-02-10 02:33:36 +08:00
feat: Implement CodeSnippet functionality with repository and use case layers, update CLI command references
This commit is contained in:
@@ -8,11 +8,11 @@ import (
|
||||
"github.com/chaitin/MonkeyCode/backend/domain"
|
||||
)
|
||||
|
||||
// RunCli 运行ctcode-cli命令
|
||||
// RunCli 运行monkeycode-cli命令
|
||||
//
|
||||
// @Tags CLI
|
||||
// @Summary 运行ctcode-cli命令
|
||||
// @Description 运行ctcode-cli命令
|
||||
// @Summary 运行monkeycode-cli命令
|
||||
// @Description 运行monkeycode-cli命令
|
||||
// @Accept json
|
||||
// @Produce json
|
||||
// @Param command path string true "命令"
|
||||
@@ -26,7 +26,7 @@ func RunCli(command string, flag string, codeFiles domain.CodeFiles) ([]domain.I
|
||||
if err != nil {
|
||||
return []domain.IndexResult{}, err
|
||||
}
|
||||
cmd := exec.Command("ctcode-cli", command, flag, string(inputJson))
|
||||
cmd := exec.Command("monkeycode-cli", command, flag, string(inputJson))
|
||||
cmd.Env = os.Environ()
|
||||
output, err := cmd.CombinedOutput()
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user