about summary refs log tree commit diff
path: root/kaakaa/tools
diff options
context:
space:
mode:
authorArun Isaac2026-04-12 04:10:50 +0100
committerArun Isaac2026-04-12 04:11:35 +0100
commitbe1495966157c20bce6c248ce3858baf9960e335 (patch)
tree20b66adc80266b6dcf3c9c8edb8be51caffc4a8e /kaakaa/tools
parenta7184e55668f54b999109479f56b6fb797ce4d44 (diff)
downloadkaagum-be1495966157c20bce6c248ce3858baf9960e335.tar.gz
kaagum-be1495966157c20bce6c248ce3858baf9960e335.tar.lz
kaagum-be1495966157c20bce6c248ce3858baf9960e335.zip
Let tool kinds be constants, rather than functions.
It makes little sense for a tool kind to be a function of the tool
call arguments.
Diffstat (limited to 'kaakaa/tools')
-rw-r--r--kaakaa/tools/base.scm6
1 files changed, 3 insertions, 3 deletions
diff --git a/kaakaa/tools/base.scm b/kaakaa/tools/base.scm
index ebab33d..cbbb6a5 100644
--- a/kaakaa/tools/base.scm
+++ b/kaakaa/tools/base.scm
@@ -135,7 +135,7 @@ Line numbers start from 1. Output is the raw file contents without line numbers.
         #:title (lambda* (#:key path (start-line 1) end-line)
                   (format #f "read ~a:~a-~a"
                           path start-line (or end-line "")))
-        #:kind (const "read")))
+        #:kind "read"))
 
 (define %list
   (tool #:description "List files recursively.
@@ -165,7 +165,7 @@ For example, to match all scheme (.scm) files, use \"\\.scm$\"")))
                   (if pattern
                       (format #f "list ~s in ~a" pattern root)
                       (format #f "list ~a" root)))
-        #:kind (const "search")))
+        #:kind "search"))
 
 (define %search
   (tool #:description "Print lines that match a pattern (similar to grep)
@@ -215,7 +215,7 @@ For example, to match all scheme (.scm) files, use \"\\.scm$\"")))
                               files-pattern files-root pattern)
                       (format #f "search for lines matching ~s in files under ~a"
                               pattern files-root)))
-        #:kind (const "search")))
+        #:kind "search"))
 
 (define %base-tools
   `(("read" . ,%read)