alux-cli-multicall
Reads an alux-cli program as a multicall executable: one binary installed under the name of each of its first-layer commands, BusyBox-style.
The program is the ordinary one, with no multicall syntax: its first layer is what the executable answers to. Multicall compiles it to its command paths and answers two things:
names(): the first-layer command names, which an installer links to the executable and a--listcommand prints;invocation(argv): the command line to run. Invoked as a first-layer command's name,cat -u f, that name is also the first word, and help shows the command beneath no program name; invoked under any other name,box cat -u f, the words select as usual. Itscommandnames the first-layer command the words select, so an interpreter compiles only that one.
Any interpreter runs the invocation, alux-cli-direct included:
use ;
use CliDirect;
use Multicall;
use ext;
use Arc;
;
let multicall = new;
assert_eq!;
let run = ;
assert_eq!;
assert_eq!;