- Global changes (already implemented, but left here for reference)
- Env var
KAPOW_URL is split into KAPOW_DATA_URL and KAPOW_CONTROL_URL.
- The
--url param present in some commands is also split in two: --data-url and --control-url
- Data Interface
- Rename
kapow set to kapow write, in order to better hint that no overwriting is done.
- Rename
kapow get to kapow read.
- Eventually, we'll add:
kapow set, which will overwrite the content of the given resource .
kapow delete, which will remove the content of the given resource.
- Control Interface
- Drop the concept of
index in favour of ID. This precludes any chance of race conditions ocurring.
- Replace
kapow route subcommands with iptables's syntax:
add replaced by --append | -A
remove replaced by --delete | -D
list replaced by --list | -L
frobnicate replaced by--dont-cross-the-streams | -X
- User interface (already implemented, but left here as reference)
- Only one init file (was:
.pow file) is provided to kapow server. If more are needed, they chan trivially included via the shell trick <(cat *.pow), or, from within the .pow file with a source.
The output of the --help should look something like:
Usage: kapow [OPTIONS] COMMAND [ARGS]...
Start aiohttp app.
Options:
--help Show this message and exit.
Commands:
route Manage current server HTTP routes
server Start a Kapow! server
read Get data from the current context (GET)
write Append data from the current context (POST)
set Set data from the current context (PUT)
delete Remove data from the current context (DELETE)
@nilp0inter, (no hurries at all!), can you review the contents of this issue sometime to ensure that they match your original email? Domo!
KAPOW_URLis split intoKAPOW_DATA_URLandKAPOW_CONTROL_URL.--urlparam present in some commands is also split in two:--data-urland--control-urlkapow settokapow write, in order to better hint that no overwriting is done.kapow gettokapow read.kapow set, which will overwrite the content of the given resource .kapow delete, which will remove the content of the given resource.indexin favour ofID. This precludes any chance of race conditions ocurring.kapow routesubcommands withiptables's syntax:addreplaced by--append | -Aremovereplaced by--delete | -Dlistreplaced by--list | -Lfrobnicatereplaced by--dont-cross-the-streams | -X.powfile) is provided tokapow server. If more are needed, they chan trivially included via the shell trick<(cat *.pow), or, from within the.powfile with a source.The output of the
--helpshould look something like:@nilp0inter, (no hurries at all!), can you review the contents of this issue sometime to ensure that they match your original email? Domo!