File: //opt/alt/python37/lib/python3.7/site-packages/exabgp/vendoring/__pycache__/cmd2.cpython-37.pyc
B
RP�e� � @ s� d Z ddlZddlZddlZddlZddlZddlZddlZddlZddl Z ddl
Z
ddlZddlZddl
Z
ddlZddlZddlmZ ddlmZmZ ddlmZ ddlmZ dZejd dkr�ej�� ejd d kr�eZG d
d� dej�Zdd
� Zdd� Zdd� Z eej!_"g Z#dPdd�Z$G dd� de%�Z&dZ'ej(�r~yddl)Z)dd� Z*dd� Z+W n" e,k
�rx dd� Z*e*Z+Y nX �ndejdk�r�dZ-y"ej.dd ej/ej/ej/d!� d Z-W n ej0e1e2fk
�r� Y nX e-�r�d"d� Z*d#d� Z+nd$d� Z*e*Z+n�dZ-y"ej.d%d ej/ej/ej/d!� d Z-W n� e3k
�r� y^d&Z4ej5d'd ej/ej/d(�Z6e6j7�8e4� e6j7�9� ej5d%d ej/ej/d(�Z6e6j:�;� e4k�r�d Z-W n ek
�r� Y nX Y n ek
�r� Y nX e-�r�d)d� Z*d*d� Z+nd+d� Z*e*Z+ej�<d,� G d-d.� d.e=�Z>G d/d0� d0e?�Z@d1d2� ZAd3d4� ZBG d5d6� d6eC�ZDG d7d8� d8e�ZEdQd:d;�ZFG d<d=� d=ejG�ZGG d>d?� d?e=�ZHG d@dA� dAeI�ZJG dBdC� dCe�ZKdDdE� ZLG dFdG� dGeM�ZNG dHdI� dIeM�ZOG dJdK� dKeO�ZPG dLdM� dMe jQ�ZReSdNk�r�ejTejUdO� dS )Ra, Variant on standard library's cmd with extra features.
To use, simply import cmd2.Cmd instead of cmd.Cmd; use precisely as though you
were using the standard library's cmd, while enjoying the extra features.
Searchable command history (commands: "hi", "li", "run")
Load commands from file, save to file, edit commands in file
Multi-line commands
Case-insensitive commands
Special-character shortcut commands (beyond cmd's "@" and "!")
Settable environment parameters
Optional _onchange_{paramname} called when environment parameter changes
Parsing commands with `optparse` options (flags)
Redirection to file with >, >>; input from file with <
Easy transcript-based testing of applications (see example/example.py)
Bash-style ``select`` available
Note that redirection with > and | will only work if `self.stdout.write()`
is used in place of `print`. The standard library's `cmd` module is
written to use `self.stdout.write()`,
- Catherine Devlin, Jan 03 2008 - catherinedevlin.blogspot.com
mercurial repository at https://www.assembla.com/wiki/show/python-cmd2
� N)�six)�InteractiveConsole�InteractiveInterpreter)�make_option)� pyparsingz0.6.8� � c @ s&