scripting: script names are case insensitive

it's easier for the CLI.

Let's not bother between simpleHTTPserver or SimpleHTTPServer or simplehttpserver
This commit is contained in:
vindarel 2023-03-11 16:34:33 +01:00
parent 52dbafab61
commit 814addefd8
2 changed files with 5 additions and 2 deletions

View file

@ -16,6 +16,8 @@ Call built-in scripts:
$ ciel -s simpleHTTPserver 9000
```
> Note: script names are case insensitive.
An example script:
```lisp

View file

@ -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,