Hi @ppasotti, this is great! Somewhat surprising that no one has written a tool like this before. Is this coming to a snap near me soon? (I can run it from source, but I tried the edge snap and it’s not there yet.)
Small nits on the UX:
- Given that one will almost always specify the script, would
jhack script app/0 [script.py]
be a slightly nicer UI? You could still leave it off and get stdin, but no need for--input
or-i
.
- I think
crpc
might be even more useful – I’ve often wanted to do quick checks like that. I guess the first “c” in “crpc” means “charm”, but it seems to me that’s kinda redundant in this context. What about justjhack rpc
, or evenjhack eval
? (It’s very similar to Python’s owneval
but for a charm.)