refactor: numerous improvements (#32)
This commit is contained in:
+1
-1
@@ -12,5 +12,5 @@
|
||||
* @param {Args} args
|
||||
*/
|
||||
exports.run = function run(args) {
|
||||
console.log(args);
|
||||
console.log(JSON.stringify(args, null, 2));
|
||||
}
|
||||
|
||||
+2
-2
@@ -6,9 +6,9 @@ set -e
|
||||
# @option --contents! The contents to save.
|
||||
|
||||
main() {
|
||||
base_dir="$LLM_FUNCTIONS_DIR/tmp/files"
|
||||
output_file="$base_dir/$argc_file_name"
|
||||
base_dir="${LLM_TOOL_CACHE_DIR:-/tmp}"
|
||||
mkdir -p "$base_dir"
|
||||
output_file="$base_dir/$argc_file_name"
|
||||
echo "$argc_contents" > "$output_file"
|
||||
echo "$output_file"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user