1
0
Commit Graph

52 Commits

Author SHA1 Message Date
b1bf13bb01 add svc:directory, mostly for use in debugging messages 2025-03-25 23:47:01 +00:00
05991225de anoia.svc allow open of a service that is not yet running
we change the inotify watcher so that it attempts to monitor
/run/service as well as /run/service/foo. If foo doesn't yet exist
then that call to addwatch fails, so we need to be looking at the
parent if we are to be told when foo gets created
2025-03-25 23:37:58 +00:00
8440378a39 anoia: make dirname handle tralning / like posix 2025-03-24 22:37:24 +00:00
45047dc023 squahs falls back 2025-03-21 21:09:05 +00:00
be03e9e8c8 service outputs falls back to properties (untested) 2025-03-18 18:38:04 +00:00
2b0972ed73 svc.open accepts a /nix/store folder not an outputs folder
this mostly makes things simpler
2025-03-11 00:21:44 +00:00
7e2b0068e6 nixfmt-rfc-style
There is nothing in this commit except for the changes made by
nix-shell -p nixfmt-rfc-style --run "nixfmt ."

If this has mucked up your open branches then sorry about that. You
can probably nixfmt them to match before merging
2025-02-10 21:55:08 +00:00
4bb081ffcf export anoia.svc:fileno so it can be used with event loops 2025-02-10 21:21:08 +00:00
464d046b5a append-path spec behaviour for repeated / 2024-12-17 17:24:16 +00:00
ac8b971cc0 new fn append-path in anoia
complains if you try to ../../../
2024-12-11 17:26:44 +00:00
13087d17e3 use assert macros in anoia/init.fnl
there is no circularity (maybe there was once?)
2024-12-11 17:25:39 +00:00
e604d628e3 fennel anoia.process.spawn
runs a subprocess and invokes a callback whenever its io
descriptors are ready
2024-09-06 00:11:33 +01:00
e2a597589b anoia.fs.find-executable looks for bin in colon-sep list of directories 2024-09-06 00:08:40 +01:00
12275f6896 add more test for table= 2024-09-04 21:21:30 +01:00
6287b92000 fix bugs handling base64 padding 2024-08-31 22:43:25 +01:00
34f37d60d9 missed adding this 2024-08-28 20:56:52 +01:00
1f97409474 add popen2 to anoia.fs 2024-08-28 06:49:43 +01:00
81a6480a4f anoia add base64 deode 2024-08-27 22:42:03 +01:00
b475a680fb define-tests macro, evals body only when inside fennelrepl --test 2024-08-24 22:26:25 +01:00
43612af71a anoia: %% is alias for string.formt 2024-08-24 13:56:54 +01:00
5695c47496 add dig to anoia 2024-08-23 23:27:29 +01:00
45a7f96bd4 anoia table= compares tables 2024-08-14 22:36:28 +01:00
79445fd962 support multi-arg assoc 2024-08-14 22:34:37 +01:00
eb79928b37 anoia.svc allow writing outputs 2024-08-08 11:37:50 +01:00
0a629df48d anoia.fs: improve error messages 2024-08-08 11:36:47 +01:00
8fa3443923 Revert "anoia.svc use timeout for inotify"
This reverts commit eca8e37e7a.
2024-07-30 17:37:38 +01:00
eca8e37e7a anoia.svc use timeout for inotify
in case we miss a message, check the directory every 5s
anyway
2024-07-26 23:40:40 +01:00
d300373b96 anoia fs.dir use case not match
match was accidentally pinning the return from readdir against the
function parameter. Which didn't work.
2024-07-26 23:37:40 +01:00
3df1ec76ff cleanup whitespace and commas
* [] is now [ ]
* {} is now { }
* commas in arglists go at end of line not beginning

In short, I ran the whole thing through nixfmt-rfc-style but only
accepted about 30% of its changes. I might grow accustomed to more
of it over time
2024-06-30 17:16:28 +01:00
74cf3e0711 add anoia.net.constants for SOCK_{STREAM,DGRAM} etc
we use an ugly bit of C preprocessor to get the values from
header files, because certain constants are different on MIPS
than on other architectures
2024-04-26 16:43:09 +01:00
cdb23b147c convert anoia.fs to use lualinux 2024-04-25 21:14:37 +01:00
dbd1264352 convert anoia.fs to use lualinux instead of lfs 2024-04-24 20:44:32 +01:00
8af4e9fd5b package anoia assert macros and point fennelrepl at them 2024-04-20 14:59:14 +01:00
7e19d80130 anoia: add assert macro module
contains expect and expect=
2024-04-20 14:04:32 +01:00
ea2b25168e add uevent-watch, which toggles services based on uevent msgs 2024-04-15 21:15:07 +01:00
b231664a06 anoia: add basename, dirname 2024-04-11 23:11:20 +01:00
f4bf3029fa anoia: alphabetize exports 2024-04-11 23:11:13 +01:00
e4ac7f19dc fix ifwait deps 2024-03-16 20:16:49 +00:00
5184ff63f7 add anoia.nl, a convenience wrapper on netlink 2024-03-06 23:19:47 +00:00
9730cdd63b add assoc to anoia 2024-03-06 23:19:47 +00:00
84fa8d65f4 fennel: system: verbose log of command that was run 2024-02-21 19:27:14 +00:00
b3e505abf4 anoia.system print command if it failed 2023-09-13 17:50:40 +01:00
8f97c5bf3c anoia service :events method behaves as iterator 2023-09-12 20:46:52 +01:00
7904c6bfe9 anoia users now need lfs
... and we need to figure out how to do transitive
dependencies, because this is not a great experience
2023-09-12 18:46:04 +01:00
d49cbbb8ed test for acquire-wan-address 2023-09-11 00:07:49 +01:00
22275f311c anoia: add simple hash function and base64 encoder 2023-09-10 12:14:39 +01:00
870da62a1e anoia.svc outputs may be directories (read as table) 2023-09-09 00:30:02 +01:00
9dd3cf23b4 anoia.fs.mktree replaces mkdir
This uses lfs to make the tree in-process instead of
shelling out to the mkdir command
2023-09-08 21:17:42 +01:00
4e9227dff3 move rmtree to anoia library 2023-09-08 21:03:18 +01:00
353a199ab2 odhcpc script: parse ADDRESSES and PREFIXES
so downstream doesn't have to
2023-09-05 22:42:25 +01:00