mirror of
https://gitlab.com/vindarel/ciel.git
synced 2026-01-30 04:11:24 -08:00
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:
parent
52dbafab61
commit
814addefd8
2 changed files with 5 additions and 2 deletions
|
|
@ -16,6 +16,8 @@ Call built-in scripts:
|
|||
$ ciel -s simpleHTTPserver 9000
|
||||
```
|
||||
|
||||
> Note: script names are case insensitive.
|
||||
|
||||
An example script:
|
||||
|
||||
```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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue