From bf9a80e3369fc244ec3fad6f5509c74d029b7e2c Mon Sep 17 00:00:00 2001 From: Matt Low Date: Sun, 26 Nov 2023 10:43:25 +0000 Subject: [PATCH] Small fixes --- pkg/cli/functions.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/cli/functions.go b/pkg/cli/functions.go index 72af6fa..c3c39f2 100644 --- a/pkg/cli/functions.go +++ b/pkg/cli/functions.go @@ -94,7 +94,7 @@ Result is returned as JSON in the following format: Description: "Path to a file within the current working directory to read.", }, }, - Required: []string{"file_path"}, + Required: []string{"path"}, }, }}, Impl: func(args map[string]interface{}) (string, error) { @@ -130,7 +130,7 @@ Result is returned as JSON in the following format: Description: "The content to write to the file. Overwrites any existing content!", }, }, - Required: []string{"file_path"}, + Required: []string{"path", "content"}, }, }}, Impl: func(args map[string]interface{}) (string, error) { @@ -148,7 +148,7 @@ Result is returned as JSON in the following format: } content, ok := tmp.(string) if !ok { - return "", fmt.Errorf("Invalido content in function arguments: %v", tmp) + return "", fmt.Errorf("Invalid content in function arguments: %v", tmp) } return WriteFile(path, content), nil },