buckket / twtxt

Decentralised, minimalist microblogging service for hackers.
http://twtxt.readthedocs.org/en/stable/
MIT License
1.91k stars 79 forks source link

Add config CLI command to edit twtxt config file #84

Closed timofurrer closed 8 years ago

timofurrer commented 8 years ago

This command behaves similar to other config CLI commands for example the one from git:

$ twtxt config twtxt.nick tuxtimo  # set nick
$ twtxt config twtxt.nick  # get nick
tuxtimo
$ twtxt config --remove twtxt.nick  # remove nick
$ twtxt config --edit  # edit config file with editor
DracoBlue commented 8 years ago

Nice! Can you modify README/docs, too?

timofurrer commented 8 years ago

Sure, I will asap.

buckket commented 8 years ago

For editing you could use: http://click.pocoo.org/5/utils/#launching-editors Instead of catching all exceptions silently you should at least log them via logger.debug().

timofurrer commented 8 years ago

I'll use the click method - I'll update the PR as soon as I'm at home.

timofurrer commented 8 years ago

Update PR accordingly!