aboutsummaryrefslogtreecommitdiff
path: root/docs/gettingstarted.rst
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2021-02-28 18:22:56 +0100
committerCharles Cabergs <me@cacharle.xyz>2021-02-28 18:22:56 +0100
commited231c21894da3520929fc385027d57bbe0485a2 (patch)
tree78cad4d2b85ac3baf951292225752ccd14acc2c3 /docs/gettingstarted.rst
parentb1e0674c4f91c39c426a145686c1c37f57528b46 (diff)
downloadminishell_test-ed231c21894da3520929fc385027d57bbe0485a2.tar.gz
minishell_test-ed231c21894da3520929fc385027d57bbe0485a2.tar.bz2
minishell_test-ed231c21894da3520929fc385027d57bbe0485a2.zip
Merging common content between README.rst and index.rst in gettingstarted.rst
Diffstat (limited to 'docs/gettingstarted.rst')
-rw-r--r--docs/gettingstarted.rst42
1 files changed, 42 insertions, 0 deletions
diff --git a/docs/gettingstarted.rst b/docs/gettingstarted.rst
new file mode 100644
index 0000000..e45ff38
--- /dev/null
+++ b/docs/gettingstarted.rst
@@ -0,0 +1,42 @@
+Getting Started
+---------------
+
+Installation
+++++++++++++
+
+.. code-block::
+
+ $ pip3 install minishell-test
+ $ pip3 install --user minishell-test # if you don't have root access
+
+Compatibility
++++++++++++++
+
+Your executable **must** support the ``-c`` option which allow to pass command as string.
+
+.. code-block::
+
+ $ bash -c 'echo bonjour je suis | cat -e'
+ bonjour je suis$
+ $ ./minishell -c 'echo bonjour je suis | cat -e'
+ bonjour je suis$
+
+
+.. note::
+ With this setup ``argv[2]`` is what you would usually get in ``line`` from ``get_next_line``.
+
+Usage
++++++
+
+Run all the predefined tests:
+
+.. code-block::
+
+ $ cd <MINISHELL>
+ $ minishell_test
+
+.. warning::
+ If you get ``command not found``, do either of those things:
+
+ * ``~/.local/bin`` to your ``PATH`` environment variable.
+ * run ``$ python3 -m minishell_test`` instead of ``$ minishell_test``