diff options
author | kotfu <kotfu@kotfu.net> | 2018-05-10 11:11:40 -0600 |
---|---|---|
committer | kotfu <kotfu@kotfu.net> | 2018-05-10 11:11:40 -0600 |
commit | ce5092fd9c2e23baa0952aac665e7c26ed85a03a (patch) | |
tree | 3fa946fff879de07fd9743a24770c298a2ea6a68 /cmd2/constants.py | |
parent | 9d4d929709ffbcfcbd0974d8193c44d514f5a9b4 (diff) | |
download | cmd2-git-ce5092fd9c2e23baa0952aac665e7c26ed85a03a.tar.gz |
Remove cmd2.Cmd.redirector for #381
Diffstat (limited to 'cmd2/constants.py')
-rw-r--r-- | cmd2/constants.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/cmd2/constants.py b/cmd2/constants.py index 838650e5..af0a44cc 100644 --- a/cmd2/constants.py +++ b/cmd2/constants.py @@ -4,9 +4,13 @@ import re -# Used for command parsing, tab completion and word breaks. Do not change. +# Used for command parsing, output redirection, tab completion and word +# breaks. Do not change. QUOTES = ['"', "'"] -REDIRECTION_CHARS = ['|', '>'] +REDIRECTION_PIPE = '|' +REDIRECTION_OUTPUT = '>' +REDIRECTION_APPEND = '>>' +REDIRECTION_CHARS = [REDIRECTION_PIPE, REDIRECTION_OUTPUT] # Regular expression to match ANSI escape codes ANSI_ESCAPE_RE = re.compile(r'\x1b[^m]*m') |