Commit 998514d

mo khan <mo@mokhan.ca>
2026-01-27 21:35:49
feat: colour code the tool name in the output
1 parent ee69854
Changed files (1)
lib
lib/elelem/toolbox.rb
@@ -25,8 +25,10 @@ module Elelem
     end
 
     def header(name, args, state: "+")
-      name = tool_for(name)&.name || "#{name}?"
-      "\n#{state} #{name}(#{args})"
+      tool = tool_for(name)
+      color = tool ? "36" : "33"
+      name = tool&.name || "#{name}?"
+      "\n#{state} \e[#{color}m#{name}\e[0m(#{args})"
     end
 
     def run(name, args)