I want the CLI interface to be a prototype for interfaces dealing with a local-only DatHTTPD. Here are the commands I want to implement:
[ ] list: list all known sites by associated sitelist.
[ ] site add <domain> <url> [options]: add a new site record and begin peering it immediately. Overwrites the site entry if it already exists. Alias: edit
[ ] site remove <domain>: removes a domain and the associated archive if it isn't referenced by another site.
[ ] sitelist add <url> [options]: add a new sitelist record. DatHTTPD will add each site entry it finds and will return once it has added all of them.
[ ] sitelist remove <url>: remove the given sitelist. Associated sites will be removed, and any of its archives which are not referenced by another site will also be removed.
[ ] completion: emit a CLI completion script that you can add to .bashrc or whatever to enable auto-completion of DatHTTPD commands.
I want the CLI interface to be a prototype for interfaces dealing with a local-only DatHTTPD. Here are the commands I want to implement:
list
: list all known sites by associated sitelist.site add <domain> <url> [options]
: add a new site record and begin peering it immediately. Overwrites the site entry if it already exists. Alias: editsite remove <domain>
: removes a domain and the associated archive if it isn't referenced by another site.sitelist add <url> [options]
: add a new sitelist record. DatHTTPD will add each site entry it finds and will return once it has added all of them.sitelist remove <url>
: remove the given sitelist. Associated sites will be removed, and any of its archives which are not referenced by another site will also be removed.completion
: emit a CLI completion script that you can add to.bashrc
or whatever to enable auto-completion of DatHTTPD commands.