-
Notifications
You must be signed in to change notification settings - Fork 4
UserNotes:brigand
I wanted to try cmd.io, but I don't have any big projects in mind for the moment. I built a command that writes a line of text to a github wiki page.
Source code: https://github.com/brigand/wiki-chat
It dumps messages here: https://github.com/brigand/wiki-chat/wiki/Chat
I was able to create a github oauth token and store it in wiki-chat:config
without any trouble. I'd be curious
to know if you can get the token somehow.
There is a problem though. For some reason, messages with spaces are getting cut off after the first word.
I'm using echo "$1" >> Chat.md
so I don't think the script is the problem. If I double quote it, like this, it works (thanks Matt). Maybe a bug.
ssh alpha.cmd.io brigand/wiki-chat '"some message"'
I updated the build on docker hub and cmd.io automatically updated it, which is cool.