Commit graph

257 commits

Author SHA1 Message Date
vindarel
b23214917c init file: add --no-userinit
and add --noinform that was missing in Clingon options.

Move the useful load-without-shebang in utils.lisp, now available for
all systems.

"make" alone calls make build
2023-05-04 16:53:40 +02:00
vindarel
f7a4f06335 docs: simpler clingon example
we can write the 3 examples one after the other without "this is not
defined" errors, without relying to a funcall.
2023-05-04 15:10:49 +02:00
vindarel
429de4d907 (minor) docs: add HTML content to index.html for browsers sans JS 2023-05-02 20:06:04 +02:00
vindarel
dc2c40d4fd scripts: add finder.lisp 2023-05-02 20:04:41 +02:00
vindarel
2cb5ce9bb4 README install instructions: ASDF for PLN
for #23
2023-04-24 16:39:07 +02:00
vindarel
36f255b6ed (minor) move CI tasks to Makefile: install QL and system deps
[ci skip]
2023-04-24 16:39:07 +02:00
vindarel
b65572e3b9 add file-notify, add webapp script
[ci skip]
2023-04-24 16:39:07 +02:00
vindarel
ad63aae024 scripting: we can parse the script options with Clingon 2023-04-20 16:45:26 +02:00
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
392c9c0e28 .asd: quickload cl+ssl if not found (fix Ultralisp?)
for #20 again
2023-03-25 17:00:39 +01:00
vindarel
93ac03ca51 (minor) docs: need the latest cl-str 2023-03-21 21:25:10 +01:00
vindarel
7876fcd146 export missing serapeum:ecase-of 2023-03-19 13:56: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
0feaee281b scripts: no error handling in apipointer, it's done when running the script 2023-03-11 19:17:59 +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
49b7f1a7bc scripts: allow scripts with or without a shebang line
We strip the shebang line out, if there is one,
so than the same .lisp file can be called with

ciel -s <name>.lisp

or

./name
2023-03-11 16:40:34 +01:00
vindarel
ef9ef8d72e CI: we want the latest cl-str 2023-03-11 15:25:12 +01:00
vindarel
f544fdbe77 CI: rename artifact to "ciel-v0", not "ciel-repl-v0" 2023-03-10 15:30:38 +01:00
vindarel
b33d99e4d2 add cl-json-pointer with shorter functions 2023-03-10 13:56:59 +01:00
vindarel
890c4a8a55 rm trivial-types:tuple and tuplep
not sure of its value
and it conflicts too easily with a word we might want to use
ourselves:

(loop for tuple in '((a b) (c d)) => conflict on :tuple symbol
when trying to quickload ciel.

although… strange, why the conflict?
2023-03-10 12:44:54 +01:00
vindarel
cee2f5c960 add local nickname in ciel-user: routes for easy-routes 2023-03-09 18:17:36 +01:00
vindarel
0186419b28 README: mention scripting with a shebang line 2023-03-08 17:24:24 +01:00
vindarel
b933eac663 README: .org -> .md, for better presentation on Github.
[ci skip]
2023-03-08 17:20:54 +01:00
vindarel
2c93b1576c scripts: use :flag, not :counter, and fix running files 2023-03-08 16:51:07 +01:00
vindarel
d6588d08cd README: Lisp links 2023-02-24 12:12:28 +01:00
vindarel
24f627c64f .asd: require cl+ssl, warn if missing
for #20
2023-02-24 11:58:42 +01:00
vindarel
7ebde8ea2c (minor) export disable-shell-passthrough
fixes #21
2023-02-22 12:25:51 +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
cd1e0b7bb6 script simpleHTTPserver: catch "port in use" error 2023-01-21 00:00:29 +01:00
vindarel
78dd04d9fd scripting: run scripts in the right working directory (not the script's) 2023-01-21 00:00:26 +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
6cdf17ccbe (minor) remove short help -h 2022-12-30 00:39:39 +01:00
vindarel
5411f211ec scripting: add and use Clingon 2022-12-29 15:42:10 +01:00
vindarel
ae7410c77f (minor) scripting: a simple shebang works 2022-12-28 15:21:46 +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