Skip to content

v0.2.0 β€” a workspace in one command πŸš€

Latest

Choose a tag to compare

@hoshiyosan hoshiyosan released this 28 Jul 23:23
· 13 commits to main since this release

You no longer need a file before you can mount anything. Until now, trying airfs at all meant opening an editor, writing a sources.txt, saving it in the right place, and only then mounting. That is a lot of ceremony to answer "what does this thing actually do?" β€” so now you can say what your layers are on the command line and be looking at the result a second later.

  • ⚑ airfs mount -s, once per layer. airfs mount --target ~/scratch-ws -s ~/ai/personal -s ~/ai/project creates the target, writes its sources.txt, and serves the view. The order you pass the flags in is the precedence order, most general first β€” same rule as the file, because it is the file.
  • ✍️ What you typed is what gets written. ~/ai/personal stays ~/ai/personal in the file instead of being frozen into /home/you/..., so the configuration you end up with is one you would have written by hand and can keep editing that way.
  • πŸ›‘ A typo cannot cost you your configuration. -s replaces the file whole rather than appending to it β€” but the new list has to resolve first. Name a directory that is not there and you get exit 2 and the configuration you already had, untouched.

It replaces, it does not add. πŸ’₯ Every layer you want has to be on the command line; whatever the file said before, comments and ordering included, is gone, and there is no backup. That is deliberate β€” a flag that appended would build a precedence order nobody wrote β€” but point it at a workspace you care about only once you have read Declaring layers.