Skip to content

Commit b2eb3ee

Browse files
committed
Import protowhat bash history functionality
1 parent 8adca78 commit b2eb3ee

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

docs/reference.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,12 @@ Checking files
9090
.. autofunction:: pythonwhat.checks.check_wrappers.has_dir
9191
.. autofunction:: pythonwhat.local.run
9292

93+
Bash history checks
94+
-------------------
95+
96+
.. automodule:: protowhat.checks.check_bash_history
97+
:members:
98+
9399
Electives
94100
---------
95101

pythonwhat/checks/check_wrappers.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from protowhat.utils import _debug
22
from protowhat.checks.check_simple import allow_errors
3+
from protowhat.checks.check_bash_history import has_command
34
from protowhat.checks.check_files import check_file, has_dir
45
from pythonwhat.checks.check_funcs import check_part, check_part_index, check_node
56
from pythonwhat.checks.has_funcs import has_equal_part
@@ -775,6 +776,8 @@ def rename_function(func, name):
775776

776777
scts["run"] = run
777778

779+
scts["has_command"] = has_command
780+
778781
scts["check_file"] = check_file
779782
scts["has_dir"] = has_dir
780783

0 commit comments

Comments
 (0)