Phase 4: commands in Bjolang
- A package of user commands in $XDG_CONFIG_HOME/bjosh/commands. Its module commands.bjo exports bjosh-extension: value commands, shell commands and a prompt function. - (bjosh api): the types and functions a package imports. - (bjosh user): builds the package when it is stale, and loads it with (std plugin) at each start. `reload` builds and loads it again. - bjosh --new-commands writes a package with an example. - No Native AOT, because it cannot load modules. bin/bjosh starts src/main.exe. - tests/extension.bjo. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
f8c4ad64bc
commit
84bd2f3382
11 changed files with 686 additions and 29 deletions
|
|
@ -3,8 +3,8 @@
|
|||
(version "0.1.0")
|
||||
(description "A shell: POSIX command lines, job control, and built-in commands in Bjolang that pass values. Linux.")
|
||||
(license "MPL-2.0")
|
||||
;; A native executable too, src/main: a shell must start fast.
|
||||
(aot #t)
|
||||
;; No Native AOT: it cannot load the user's commands (plan.org, phase 4).
|
||||
;; bin/bjosh starts src/main.exe.
|
||||
|
||||
(depends
|
||||
;; The line editor and the terminal. On disk until it has a remote.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue