morning

A simple module to do repetitive tasks in the morning.


License
BSD-3-Clause
Install
pip install morning==0.1.5

Documentation

https://badge.fury.io/py/morning.png https://travis-ci.org/Carreau/morning.png?branch=master https://pypip.in/d/morning/badge.png

Morning is a package that should (at some point in the future) deals with all the updates I need to do in the morning on my computer. That is to say :

  • Fetch all the git repos I'm working on.

  • Make sure they are on master:
    • If they are, and can be fast-forwarded, do it and potentially asking me wether or not

installing morning

Note

I'm using Python 3.5 HEAD, and I plan to try to use subprocess.run, so it might not run for you.

Using morning

$ cd this/is/a/git/backed/project
$ mornign add .
adding /Users/bussonniermatthias/this/is/a/git/backed/project to list of git repos to update
$ morning list
/users/bussonniermatthias/dev/flit
/users/bussonniermatthias/dev/ipython
/users/bussonniermatthias/dev/ipython_genutils
/users/bussonniermatthias/dev/ipython_kernel
/users/bussonniermatthias/dev/jupyter_client
/users/bussonniermatthias/dev/jupyter_core
/users/bussonniermatthias/dev/jupyter_nbconvert
/users/bussonniermatthias/dev/jupyter_nbformat
/users/bussonniermatthias/dev/jupyter_notebook
/users/bussonniermatthias/dev/morning
/users/bussonniermatthias/dev/brackets-visualtabs

Updating all these git repos:

# auto-fast-forward

use the following to tell morning to automatically fast forward your repo if on master, and behind origin.

$ git config morning.fast-forward True

End Target:

How it should look like:

Maybe it should also have custom hooks to update homebrew, or alike. Maybe a morning add . would be nice to track a specific component, and also a way to provide a command to run pre/post checkout. (can do that with git hooks)

Local configuration would be in .git/config in the [morning] section.

TODO

Use flit for installation