Skip to content

Commit

Permalink
Add version notes to README
Browse files Browse the repository at this point in the history
  • Loading branch information
eliangcs committed Oct 18, 2016
1 parent b78bdd8 commit e9abc8c
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions README.rst
Expand Up @@ -101,8 +101,8 @@ requests.
> httpie
http http://localhost
Besides ``httpie`` command, you can also use ``env`` to print the current
session:
Since v0.6.0, apart from ``httpie`` command, you can also use ``env`` to print
the current session:

.. code-block:: bash
Expand Down Expand Up @@ -164,6 +164,8 @@ To exit a session, simply enter:
Output Redirection
------------------

*New in v0.6.0.*

You can redirect the output of a command to a file by using the syntax:

.. code-block:: bash
Expand Down Expand Up @@ -226,6 +228,8 @@ larger text or binary data, you may want to save the response to a file. Usage:
Pipeline
--------

*New in v0.7.0.*

HTTP Prompt supports simplified pipeline syntax, where you can pipe the output
to a shell command:

Expand Down Expand Up @@ -259,6 +263,8 @@ Another cool trick is to use jq_ to parse JSON data:
Shell Substitution
------------------

*New in v0.7.0.*

Shell substitution happens when you put a shell command between two backticks
like ``\`...\```. This syntax allows you compute a value from the shell
environment and assign the value to a parameter::
Expand All @@ -270,14 +276,16 @@ environment and assign the value to a parameter::

# Get password from a file. Suppose the file has a content of
# "secret_api_key".
> password==``cat ./apikey.txt``
> password==`cat ./apikey.txt`
> httpie
http http://localhost:8000 apikey==secret_api_key


Configuration
-------------

*New in v0.4.0.*

When launched for the first time, HTTP Prompt creates a user config file at
``$XDG_CONFIG_HOME/http-prompt/config.py`` (or ``%LOCALAPPDATA%/http-prompt/config.py``
on Windows). By default, it's ``~/.config/http-prompt/config.py`` (or
Expand All @@ -291,6 +299,8 @@ up with a text editor and follow the guidance inside.
Persistent Context
------------------

*New in v0.4.0.*

HTTP Prompt keeps a data structure called *context* to represent your current
session. Every time you enter a command modifying your context, HTTP Prompt
saves the context to your filesystem, enabling you to resume your previous
Expand Down

0 comments on commit e9abc8c

Please sign in to comment.