better cli syntax for |fuse

This commit is contained in:
raghu 2021-06-26 11:13:19 -04:00
parent 81114ae8d2
commit 7d6bf5134e
2 changed files with 9 additions and 5 deletions

View File

@ -12,7 +12,10 @@
|%
+$ fuse-arg
$: des=desk
res=[?([%cancel ~] [bas=path con=(list [path germ])])]
:: specified as [germ path] instead of [path germ] so
:: users can write mate//=home= instead of [/=home= %mate]
::
res=[?([%cancel ~] [bas=path con=(list [germ path])])]
==
::
++ parse-fuse-source
@ -21,6 +24,7 @@
:: This is a slight overload of the label, but
:: it provides a nicer interface for the user so
:: we'll go with it.
::
?: ?=([%tas *] r.bec)
?: =(p.r.bec %track)
[p.bec q.bec %trak]
@ -51,6 +55,6 @@
(path-to-fuse-source bas.res.arg)
%+ turn
con.res.arg
|= [pax=path g=germ]
|= [g=germ pax=path]
^- [fuse-source germ]
[(path-to-fuse-source pax) g]

View File

@ -1,7 +1,7 @@
Usage:
|fuse %dest base-beak ~[[/~nel/home= %mate] [/~zod/kids/track %meet]]
|fuse %old-desk base-beak ~[[/~nus/test= %only-that]], =overwrite &
|fuse %dest base-beak mate//~nel/home= meet//~zod/kids/track
|fuse %old-desk base-beak only-that//~nus/test=, =overwrite &
|fuse %desk-to-cancel-fuse-into %cancel
A %fuse request in clay replaces the contents of %destination-desk
@ -10,7 +10,7 @@ strategies. This has no dependence on the previous state of %dest
so any commits/work there will be overwritten.
|fuse extends this concept with the idea of a tracked source. When
specifying beaks to include in your fuse, specify %trak instead of
specifying beaks to include in your fuse, specify %track instead of
a case. This will tell |fuse to retrieve the latest version of the
source beak AND to rerun the %fuse request whenever that tracked
source changes. A fuse can have many tracked sources, or none. The