I'm interested in adding more command line support for ZeroNet and zites, though I doubt if I will use them very often XD Some hardcore GNU/Linux, BSD devs/hackers will like them I guess. As mentioned in this post on ZeroMe, if there some APIs (more supports), a dev on GNU/Linux or BSD can even easily do everything with cmdline, with super low system requirement, as no need for a GUI system setup.
Currently what I have is: A Shell Script for Manually Signing User Content, and some bots which can be transformed for cmdline usage. Signing and publishing
content.json with cmd takes too long time, because
zeronet.py tries to start a new instance first [Edit 1]. Guess it's possible to add an option for avoiding it, and the process can also be thrown to background, too.
And here are some rough ideas:
$ zerohello list feeds -> List newsfeeds, with feed_id
$ zerohello reply feed:FEED_ID -> Reply to a post/comment/mention
$ zeromail list -> List new zeromail
$ echo "Hello!" | zeromail reply binchan2 -> Reply to ZeroMail, or with
cat tmp_reply.md for long text.
$ zerotalk list | grep zeronet -> List new topics on ZeroTalk with keyword "zeronet", topics are all with topic_id.
$ zerotalk list topics:binchan2 -> List all topics of a user
$ zerotalk show topic:TOPIC_ID -> Show topic and comments of a topic
$ zerotalk follow topic:TOPIC_ID -> Follow a topic, aka add a topic to ZeroHello Newsfeeds timeline.
$ zerotalk comment topic:TOPIC_ID -> comment to a topic
$ zerome create profile -> create a new profile on ZeroMe (with interactive script)
$ zerome show post:POST_ID -> Show a post (image to ASCII) and its comments
$ zerome --interactive -> Run ZeroMe in interactive mode, with
tmux for multiple windows.
Also here is the awesome cli apps list on Github, if someone wants to explore some related projects.
Edit 1: here is zeronet-websocket for using websocket in cmdline, with it we can sign and publish content, run ZeroFrame API cmd without trying to start a new ZeroNet instance first. Thank 空澄砂夜 (Sorasumi Sayo) for the suggestion and the work!
Edit 2: zeronet-websocket from edit 1 is based on Nodejs, now we also have Python version of ZeroFrame API websocket wrapper and cmd examples for ZeroNet, ZeroName, etc. Thank Git Center!
Edit 3: Wow! Now websocket call is directly supported in official ZeroNet \o/
Pack a websocket client to allow run any ZeroFrame API call from command line using. Eg.:
zeronet.py siteCmd 1yoursite fileGet content.json