iDoneThis CLI Utility

Version Documentation Status Status Coverage License Code Climate

A simple, small, and opinionated Python CLI for interacting with the awesome iDoneThis service in a way that suits for my workflow.

This CLI allows you to record your grandiose accomplishments of the day did today as well as see what others on your team did.

You can find more docs on ReadTheDocs.

Record what you’ve done

$ idonethis -m 'Holy smoke I did it!' --token 'my-auth-token' --team 'backend'
Recorded what you've done, keep up the good work!

$ echo 'Holy smoke I did it!' | idonethis --token 'my-auth-token' --team 'backend'
Recorded what you've done, keep up the good work!

Or if you’re feeling fancy and want to use your $EDITOR

$ idonethis --token 'my-auth-token' --team 'backend'
Recorded what you've done, keep up the good work!

See what others have done

$ date
Thu Jun  4 19:10:11 EDT 2015

$ idonethis summary --token 'my-auth-token' --team 'backend'
The "backend" team did this on 2015-06-04

DanT
----

* Made a PR on something
* Created a little CLI for stuff

OtherGuy
--------

* Fixed all the things

Or if you want to see who was slacking yesterday

$ idonethis summary --date yesterday --token 'my-auth-token' --team 'backend'
The "backend" team did this on 2015-06-04

DanT
----

* Thought about doing work, then didn't

OtherGuy
--------

* Planning to fix all the things

Installation

You can install this off of PyPI using PIP.

$ pip install idonethis

Contributing

If you want to help make this project better you are officially an awesome person.

Pull requests or Github issues are always welcome. If you want to contribute a patch please do the following.

  1. Fork this repo and create a new branch
  2. Do work
  3. Add tests for your work (Mandatory)
  4. Submit a pull request
  5. Wait for Coveralls and Travis-CI to run through your PR
  6. I’ll review it and merge it

As a note, code without sufficient tests will not be merged.

Config File

By default a config file located in $HOME/.idonethis.json is loaded if it exists. If you have a config file elsewhere, or if you’re a fancy pants and use $XDG_CONFIG_HOME, you can provide it using the -c flag to the CLI.

Warning

Arguments proivided in the CLI will always take higher precedence than those in the config file.

Config Format

{
  "token": "hom3r",
  "team": "Springfield Isotopes"
}

Development

Python 2.7, 3.2, 3.3, 3.4, and Pypy 2.1 are all supported and integrated against. To run detox locally you’ll need all the interpreters... or you can do what I do and throw it over the fence to TravisCI and hope my config file hasn’t broken again.

  1. Create a new virtual environment
  2. Install development requirements from requirements.txt
  3. Run tests nosetests
  4. detox is installed and will run the test suite across all supported python platforms
  5. python setup.py build_sphinx will generate documentation into build/sphinx/html

TL;DR

$ virtualenv env
$ ./env/bin/pip install -qr requirements.txt
$ source env/bin/activate
(env) $ nosetests
(env) $ python setup.py build_sphinx
(env) $ detox

Release History

1.0.0 (2015-06-04)

  • Initial release with ability to add a new done, no summary functionality yet.
  • Add documentation and coverage/testing/ci support.
  • Add console script so the CLI is uable after being PIP installed.
  • Rename the repo from iDoneIt to match the iDoneThis API name.

License

MIT

The MIT License (MIT)

Copyright (c) 2015 Dan Tracy

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Documentation

Indices and tables