Module bp_cli
[hide private]
[frames] | no frames]

Module bp_cli

source code

Provide Command Line Interface (CLI) functionality

Classes [hide private]
  PhoneModelError
  CLI
BitPim Command Line Interface implementation
Functions [hide private]
 
valid_command(arg)
Check of this arg is a valid command or not
source code
Variables [hide private]
  InvalidCommand_Error = 1
  NotImplemented_Error = 2
  InvalidDir_Error = 3
  DirExists_Error = 4
  _commands = frozenset(['cli', 'cp', 'll', 'ls', 'mkdir', 'rm',...
  wildcards = re.compile(r'.*[\*\+\|\?\+]')
Function Details [hide private]

valid_command(arg)

source code 

Check of this arg is a valid command or not

Parameters:
  • arg - input arg, most likely passed from command line
Returns:
T if this is a valid command, F otherwise

Variables Details [hide private]

_commands

Value:
frozenset(['cli', 'cp', 'll', 'ls', 'mkdir', 'rm', 'rmdir'])