Index of the command module
-
m
paste.script.command
...
-
a
difflib
...
-
a
dist
...
-
a
parser
...
-
a
python_version
...
-
a
system_plugins
...
-
C
BadCommand
...
-
C
Command
...
-
a
default_interactive
...
-
a
group_name
...
-
a
hidden
...
-
a
max_args_error
...
-
a
min_args_error
...
-
a
required_args
...
-
f
__init__
...
-
f
ask
...
- Prompt the user. Default can be true, false, 'careful' or
'none'. If 'none' then the user must enter y/n. If
'careful' then the user must enter yes/no (long form).
-
f
challenge
...
- Prompt the user for a variable.
-
f
ensure_dir
...
- Ensure that the directory exists, creating it if necessary.
Respects verbosity and simulation.
-
f
ensure_file
...
- Ensure a file named filename exists with the given
content. If --interactive has been enabled, this will ask
the user what to do if a file exists with different content.
-
f
here
...
-
f
indent_block
...
- Indent the block of text (each line is indented). If you give
initial, then that is used in lieue of indent for the
first line.
-
f
insert_into_file
...
- Inserts text into the file, right after the given marker.
Markers look like: -*- <marker_name>[:]? -*-, and the text
will go on the immediately following line.
-
f
logging_file_config
...
- Setup logging via the logging module's fileConfig function with the
specified config_file, if applicable.
-
f
pad
...
-
f
parse_args
...
-
f
parse_vars
...
- Given variables like ['a=b', 'c=d'] turns it into {'a':
'b', 'c': 'd'}
-
f
quote_first_command_arg
...
- There's a bug in Windows when running an executable that's
located inside a path with a space in it. This method handles
that case, or on non-Windows systems or an executable with no
spaces, it just leaves well enough alone.
-
f
read_vars
...
- Given a configuration filename, this will return a map of values.
-
f
run
...
-
f
run_command
...
- Runs the command, respecting verbosity and simulation.
Returns stdout, or None if simulating.
-
f
shorten
...
- Return a shorted form of the filename (relative to the current
directory), typically for displaying in messages. If
*paths are present, then use os.path.join to create the
full filename before shortening.
-
f
standard_parser
...
- Create a standard OptionParser instance.
-
f
svn_command
...
- Run an svn command, but don't raise an exception if it fails.
-
f
write_vars
...
- Given a configuration filename, this will add items in the
vars mapping to the configuration file. Will create the
configuration file if it doesn't exist.
-
C
NoDefault
...
-
C
NotFoundCommand
...
-
f
__init__
...
-
f
ensure_dir
...
- Ensure that the directory exists, creating it if necessary.
Respects verbosity and simulation.
-
f
here
...
-
f
insert_into_file
...
- Inserts text into the file, right after the given marker.
Markers look like: -*- <marker_name>[:]? -*-, and the text
will go on the immediately following line.
-
f
pad
...
-
f
parse_args
...
-
f
run
...
-
f
run_command
...
- Runs the command, respecting verbosity and simulation.
Returns stdout, or None if simulating.
-
f
get_commands
...
-
f
invoke
...
-
f
parse_exe_file
...
-
f
popdefault
...
-
f
run
...