[IMP] cli: suggest auto complete script
Add a hint to how to build autocompletion values for odoo-bin closes odoo/documentation#3008 Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
This commit is contained in:
parent
e9c26512e6
commit
025e365a9b
@ -51,6 +51,14 @@ Help & version
|
|||||||
|
|
||||||
shows Odoo version e.g. "Odoo Server 13.0"
|
shows Odoo version e.g. "Odoo Server 13.0"
|
||||||
|
|
||||||
|
.. tip:: You can enable auto-completion in your shell by running
|
||||||
|
|
||||||
|
.. code-block:: bash
|
||||||
|
|
||||||
|
echo "complete -W '`./odoo-bin --help | \
|
||||||
|
sed -e 's/[^a-z_-]\(-\+[a-z0-9_-]\+\)/\n\1\n/' | \
|
||||||
|
grep -- '^-' | sort | uniq | tr '\n' ' '`' odoo-bin" >> ~/.bash_completion
|
||||||
|
|
||||||
.. _reference/cmdline/server:
|
.. _reference/cmdline/server:
|
||||||
|
|
||||||
Running the server
|
Running the server
|
||||||
|
Loading…
Reference in New Issue
Block a user