a simple CLI skeleton and sandbox to get started with urbit CLIs
- Learn more about urbit Command Line Interfaces here.
- Learn more about parsing commands with Hoon here.
- Learn more about the terminal driver vane
%dill
here. - See other skeletons.
Files to mess around with:
/app/clibox.hoon
/sur/clibox.hoon
/lib/command-parser.hoon
/mar/clibox/action.hoon
- Clone this repo.
- Boot up a ship (fakezod or moon or whatever you use).
|new-desk %clibox
to create a new desk called `%clibox.|mount %clibox
to access the%clibox
desk from the unix command line.- At the unix command line
rm -rf [ship-name]/clibox/*
to empty out the contents of the desk. cp -r clibox/* [ship-name]/clibox
to copy the contents of this repo into your new desk.- At the dojo command line
|commit %clibox
. - Install with
|install our %clibox
. - Link the command line app with
|link %clibox
. - Switch through command line apps with
Ctrl+X
until you see the~zod:clibox
prompt. - Type
add ~zod
and hitENTER
to add~zod
to a list of ships in the state. - Type
lis
and hitENTER
to print the list of ships to the terminal.