diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2020-01-29 22:20:25 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-29 22:20:25 -0500 |
commit | 60a212c1c585f0c4c06ffcfeb9882520af8dbf35 (patch) | |
tree | 3c8feb302794b399e309544adb9f4890a6dc64ee /docs/features/misc.rst | |
parent | da4828013aeeaca5abd83da963231aeed80e8230 (diff) | |
parent | 322d46af90f16df3bccddbec98d3586251813609 (diff) | |
download | cmd2-git-60a212c1c585f0c4c06ffcfeb9882520af8dbf35.tar.gz |
Merge pull request #869 from python-cmd2/docs_os
Updated docs on integrating with various operating system features
Diffstat (limited to 'docs/features/misc.rst')
-rw-r--r-- | docs/features/misc.rst | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/docs/features/misc.rst b/docs/features/misc.rst index 68a92b6a..aa791236 100644 --- a/docs/features/misc.rst +++ b/docs/features/misc.rst @@ -15,21 +15,6 @@ Exiting Mention quit, and EOF handling built into ``cmd2``. -Shell Command -------------- - -``cmd2`` includes a ``shell`` command which executes it's arguments in the -operating system shell:: - - (Cmd) shell ls -al - -If you use the default :ref:`features/shortcuts_aliases_macros:Shortcuts` -defined in ``cmd2`` you'll get a ``!`` shortcut for ``shell``, which allows you -to type:: - - (Cmd) !ls -al - - select ------ @@ -91,15 +76,6 @@ HelpCategories_ example for a demonstration. .. _HelpCategories: https://github.com/python-cmd2/cmd2/blob/master/examples/help_categories.py -Exit code ---------- - -The ``self.exit_code`` attribute of your ``cmd2`` application controls what -exit code is returned from ``cmdloop()`` when it completes. It is your job to -make sure that this exit code gets sent to the shell when your application -exits by calling ``sys.exit(app.cmdloop())``. - - Default to shell ---------------- |