vindarel
a92914cfd0
scripting: Clingon trick to pass unknown options to the script without "--"
...
a caveat: it does not catch legitimate unknown options given before
the script name,
and it catches known options given after it, though we would like not
to.
$ ./script.lisp -v
-v is caught for CIEL.
$ ./script.lisp -- -v
-v is passed to script.
$ ciel -x -s script
-x is not caught as unknown for CIEL but passed along to script.
$ ciel -v -x -s script
the -v at first position allows to see that -x is passed along.
$ ./script.lisp -x 4242
for other cases, we don't need a "--" and that's pretty cool.
Damn, was it worth spending a day on it?
2023-04-19 15:23:43 +02:00
vindarel
5537394226
scripting: isolate a main function with #+ciel
2023-04-18 09:26:19 +02:00
vindarel
93ac03ca51
(minor) docs: need the latest cl-str
2023-03-21 21:25:10 +01:00
vindarel
5ba99d4e98
(minor) docs: scripting intro, footer
2023-03-16 19:48:13 +01:00
vindarel
5f85407fcc
docs index: change base path to ciel-lang.org
2023-03-16 18:09:23 +01:00
vindarel
568da2f2ef
Create CNAME
2023-03-16 16:05:36 +01:00
vindarel
96d1de48a9
scripts: use json-pointer/synonyms for even shorter function names
2023-03-14 12:24:11 +01:00
vindarel
69dd197eb9
scripting: new (toy) script: API Pointer
2023-03-11 16:40:34 +01:00
vindarel
814addefd8
scripting: script names are case insensitive
...
it's easier for the CLI.
Let's not bother between simpleHTTPserver or SimpleHTTPServer or simplehttpserver
2023-03-11 16:40:34 +01:00
vindarel
52dbafab61
FAQ with a shebang line for SBCL
2023-03-11 16:40:34 +01:00
vindarel
b33d99e4d2
add cl-json-pointer with shorter functions
2023-03-10 13:56:59 +01:00
vindarel
2c93b1576c
scripts: use :flag, not :counter, and fix running files
2023-03-08 16:51:07 +01:00
vindarel
519f432d4f
scripting: add --scripts to list all available scripts
2023-01-21 00:01:48 +01:00
vindarel
095544beab
script simpleHTTPserver: list and serve files
2023-01-21 00:00:29 +01:00
vindarel
9a4082f427
(minor) regenerate dependencies list
2023-01-20 23:25:24 +01:00
vindarel
9f7937dab2
add spinneret
...
it depends on:
:depends-on ("parenscript" <---- but there is a system spinneret/cl, is spinneret needed here?
"alexandria"
"cl-ppcre"
"global-vars"
"serapeum"
"trivial-gray-streams")
2023-01-20 23:24:14 +01:00
vindarel
5411f211ec
scripting: add and use Clingon
2022-12-29 15:42:10 +01:00
vindarel
331099b3c8
FAQ: scripting
2022-12-28 15:21:16 +01:00
vindarel
0d95880caa
scripting: register and call built-in scripts by name
2022-12-28 15:11:46 +01:00
vindarel
3c371c9a81
scripts: add quicksearch.lisp
...
[ci skip]
2022-12-14 19:44:35 +01:00
vindarel
d3a896e79f
scripting: add simple HTTP server with Hunchentoot
2022-12-14 12:06:58 +01:00
vindarel
255b90871e
scripting: --eval one-liners
2022-12-14 00:47:26 +01:00
vindarel
baf2d2dd51
scripting: enable shebang line 🚀
2022-12-10 00:01:08 +01:00
vindarel
2804f115d0
move nicknames to ciel-user, add one for os/filesystem
2022-12-09 20:02:41 +01:00
vindarel
c0ee6f5921
doc script++
2022-12-09 16:20:21 +01:00
vindarel
9aea9a6ab7
(minor) update Serapeum doc
...
[ci skip]
2022-12-09 15:34:51 +01:00
vindarel
40961e60a3
(minor) docs: fix headers level
2022-12-09 15:33:20 +01:00
vindarel
59b164c1b8
doc++
2022-12-09 15:27:47 +01:00
vindarel
eba9f86cff
Naming: the core is ciel-core, the binary is ciel
...
previously: ciel and ciel-repl
2022-12-09 14:27:28 +01:00
vindarel
70acbfb580
README: system deps, Ultralisp link, can't share a core image
2022-12-09 13:49:55 +01:00
vindarel
19f59202aa
Augment docstrings (a couple gotchas)
2022-09-22 15:01:42 +02:00
vindarel
4a8a5bce7b
JSON: use Shasht instead of cl-json
2022-09-21 16:04:40 +02:00
vindarel
4a14cf624c
add local nickname: os and /os for uiop/os
2022-04-14 08:35:33 +02:00
vindarel
d73649b00e
import uiop:define-package
2022-04-14 07:57:01 +02:00
vindarel
8954c5f4ef
re-export if-let, when-let[*] from alexandria
2022-03-02 22:26:15 +01:00
vindarel
b61e2e3e6c
hash tables: export alexandria:hash-table-keys/values, ensure-gethash
2022-02-28 11:42:01 +01:00
vindarel
6f18a6d74e
database: rm Mito and add cl-dbi
2022-01-21 08:31:42 +01:00
vindarel
82ca7b7ed8
Developer utilities: add Quicksearch
2022-01-07 17:41:20 +01:00
vindarel
6e4b6fca45
Don't ship iterate.
...
We can't import loop and iterate without symbol conflicts,
both need to be learned anyways,
and the Cookbook allows to learn loop by example.
2021-09-02 04:50:37 +02:00
vindarel
d300c316b1
add subseq* from alexandria-2
2021-08-11 12:15:02 +02:00
vindarel
1a7a01842d
add FOF
2021-08-10 15:13:03 +02:00
vindarel
d6528a0f16
doc: typing with --> before defstar, no "undeclaim"
2021-06-09 17:49:12 +02:00
vindarel
f1f151e827
doc: arrow macro simplest alternative is nested function calls, duh
2021-06-09 17:48:44 +02:00
vindarel
cb36169ef5
re-export repl-utilities in ciel/repl only ("summary" is too common)
2021-06-04 13:22:18 +02:00
vindarel
1318a62b47
don't enable pythonic triple quote syntax by default
2021-06-03 15:40:54 +02:00
vindarel
9bef88b30d
type declarations: add --> for "declaim ftype" (from serapeum:->)
2021-05-23 13:51:04 +02:00
vindarel
e82ce1adf4
type declarations with defstar
2021-05-21 08:26:31 +02:00
vindarel
9b0462cd06
re-export enable-[punch, pythonic] syntax (again)
2021-05-14 12:21:23 +02:00
vindarel
d8a93824a4
doc: add forgotten navbar with "More", add three special pages (symbols from xyz)
2021-05-12 12:07:25 +02:00
vindarel
05db28860e
(minor) update doc, REPL commands start with %
2021-05-12 11:59:43 +02:00