Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
robertopreste committed Apr 9, 2019
1 parent f1e8615 commit b13d5c4
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 4 deletions.
44 changes: 42 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,51 @@ Ignore all terminal commands while it's lunchtime!


* Free software: MIT license
* Documentation: https://lunchtime.readthedocs.io.
* Documentation: https://lunchtime.readthedocs.io
* GitHub repo: https://github.com/robertopreste/lunchtime


Features
--------

* TODO
This is a simple command-line application that will ignore all terminal commands while it's running.

Background
==========

Most of us have a boss or supervisor that usually walks in right at lunch time, asking for updates on the job. This is quite annoying, and often things end up with people starving while they show their results to the boss.

For this reason I decided to build this tool, so you can pretend your computer is not working and hopefully convince your boss to leave and have lunch at a decent time!

**PLEASE NOTE: use at your own risk!** Use this tool wisely, as it might lead to unexpected consequences (for your job) if misused.

Installation
------------

It is possible to install lunchtime using pip::

pip install lunchtime

Both Python2 and Python3 are supported.

Please refer to the Installation_ section of the documentation for more details.

Usage
-----

Simply launch lunchtime and enjoy a broken terminal::

$ lunchtime

A new clean terminal will open, where you can type your commands and no response will be produced. The lunchtime will stop when the ``exit`` command is issued.

If you want to astonish your boss even more, you can use the ``--crazy`` option::

$ lunchtime --crazy

In this case, a weird string will be returned after each command!

Please refer to the Usage_ section of the documentation for more details.

Credits
-------
Expand All @@ -39,3 +77,5 @@ This package was created with Cookiecutter_ and the `cc-pypackage`_ project temp

.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`cc-pypackage`: https://github.com/robertopreste/cc-pypackage
.. _Installation: https://lunchtime.readthedocs.io/en/latest/installation.html
.. _Usage: https://lunchtime.readthedocs.io/en/latest/usage.html
22 changes: 20 additions & 2 deletions docs/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,24 @@
Usage
=====

To use lunchtime in a project::
Simply launch lunchtime and enjoy a broken terminal::

import lunchtime
$ lunchtime

A new clean terminal will open, where you can type your commands and no response will be produced. The lunchtime will stop when the ``exit`` command is issued.

If you want to astonish your boss even more, you can use the ``--crazy`` option::

$ lunchtime --crazy
# or also
$ lunchtime -c

In this case, a weird string will be returned after each command!

When starting and stopping lunchtime, a simple message is printed and a 2-second sleep is performed. If you're in a hurry because your boss is approaching, you can use the ``--silent`` option to skip these and jump right into the (broken) terminal::

$ lunchtime --silent
# or also
$ lunchtime -s

As usual, type ``exit`` to go back to your functioning terminal.

0 comments on commit b13d5c4

Please sign in to comment.