14
14
# You should have received a copy of the GNU General Public License
15
15
# along with this program; if not, write to the Free Software
16
16
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24
29
from bzrlib.errors import BzrError
28
35
SHELL_BLACKLIST = set(['rm', 'ls'])
29
36
COMPLETION_BLACKLIST = set(['shell'])
31
39
class BlackListedCommand(BzrError):
32
40
def __init__(self, command):
33
41
BzrError.__init__(self, "The command %s is blacklisted for shell use" %
36
45
class CompletionContext(object):
37
46
def __init__(self, text, command=None, prev_opt=None, arg_pos=None):