Skip to content

Commit

Permalink
Merge pull request #61 from TheFriendlyCoder/remove_ops_help
Browse files Browse the repository at this point in the history
Fixes #60 Removed "operators" section from online help
  • Loading branch information
TheFriendlyCoder committed May 7, 2018
2 parents 0c05694 + 5713edb commit 8d2f78f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
16 changes: 0 additions & 16 deletions src/friendlyshell/shell_help_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,20 +54,6 @@ def _list_commands(self):
self.info("COMMANDS")
self.info(tabulate.tabulate(command_list, headers="keys"))

def _list_operators(self):
"""Displays a list of built-in operators supported by Friendly Shell"""
operator_list = {
'Operator': ["!"],
'Description': [
"Redirects command to the native console"
],
'Examples': [
"'!dir /ah', '!ls -alh'"
]
}
self.info("OPERATORS")
self.info(tabulate.tabulate(operator_list, headers="keys"))

def do_help(self, arg=None):
"""Online help generation (this command)
Expand All @@ -79,8 +65,6 @@ def do_help(self, arg=None):
if arg is None:
self.debug("Showing default help output...")
self._list_commands()
self.info("\n")
self._list_operators()
return

# Sanity check: make sure we're asking for help for a command
Expand Down
1 change: 0 additions & 1 deletion tests/test_help_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ def do_something(self):
assert 'exit' in caplog.text
assert 'help' in caplog.text
assert 'something' in caplog.text
assert '!' in caplog.text
assert obj.do_something.__doc__ in caplog.text


Expand Down

0 comments on commit 8d2f78f

Please sign in to comment.