From 814addefd8b37a20ac9a27de1f4271cfec0a9a3b Mon Sep 17 00:00:00 2001 From: vindarel Date: Sat, 11 Mar 2023 16:34:33 +0100 Subject: [PATCH] scripting: script names are case insensitive it's easier for the CLI. Let's not bother between simpleHTTPserver or SimpleHTTPServer or simplehttpserver --- docs/scripting.md | 2 ++ scripting.lisp | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/scripting.md b/docs/scripting.md index e6bcddf..df28571 100644 --- a/docs/scripting.md +++ b/docs/scripting.md @@ -16,6 +16,8 @@ Call built-in scripts: $ ciel -s simpleHTTPserver 9000 ``` +> Note: script names are case insensitive. + An example script: ```lisp diff --git a/scripting.lisp b/scripting.lisp index b466b2d..25480d5 100644 --- a/scripting.lisp +++ b/scripting.lisp @@ -3,9 +3,10 @@ (defparameter *ciel-version* "0.1" "Read from .asd or version.lisp-expr file.") -(defparameter *scripts* (dict) +(defparameter *scripts* (dict 'equalp) "Available scripts. - Hash-table: file name (sans extension) -> file content (string).") + Hash-table: file name (sans extension) -> file content (string). + The name is case-insensitive (it's easier for typing things in the terminal).") (defun maybe-ignore-shebang (in) "If this file starts with #!, delete the shebang line,