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
%dillhere. - 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 %cliboxto create a new desk called `%clibox.|mount %cliboxto access the%cliboxdesk 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]/cliboxto 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+Xuntil you see the~zod:cliboxprompt. - Type
add ~zodand hitENTERto add~zodto a list of ships in the state. - Type
lisand hitENTERto print the list of ships to the terminal.