_cmdline module¶
-
exception
pyflyby._cmdline.
AbortActions
¶
-
class
pyflyby._cmdline.
Modifier
(modifier, filename)¶ -
_tempfile
()¶
-
input_content
¶ Computes attribute value and caches it in instance.
Example:
class MyClass(object): @cached_attribute def myMethod(self): # ...
Use “del inst.myMethod” to clear cache.
-
input_content_filename
¶ Computes attribute value and caches it in instance.
Example:
class MyClass(object): @cached_attribute def myMethod(self): # ...
Use “del inst.myMethod” to clear cache.
-
output_content
¶ Computes attribute value and caches it in instance.
Example:
class MyClass(object): @cached_attribute def myMethod(self): # ...
Use “del inst.myMethod” to clear cache.
-
output_content_filename
¶ Computes attribute value and caches it in instance.
Example:
class MyClass(object): @cached_attribute def myMethod(self): # ...
Use “del inst.myMethod” to clear cache.
-
-
pyflyby._cmdline.
_default_on_error
(filename)¶
-
pyflyby._cmdline.
_sigpipe_handler
(*args)¶
-
pyflyby._cmdline.
action_external_command
(command)¶
-
pyflyby._cmdline.
action_ifchanged
(m)¶
-
pyflyby._cmdline.
action_print
(m)¶
-
pyflyby._cmdline.
action_query
(prompt='Proceed?')¶
-
pyflyby._cmdline.
action_replace
(m)¶
-
pyflyby._cmdline.
filename_args
(args, on_error=<function _default_on_error>)¶ Return list of filenames given command-line arguments.
- Return type
list
of Filename
-
pyflyby._cmdline.
hfmt
(s)¶
-
pyflyby._cmdline.
maindoc
()¶
-
pyflyby._cmdline.
parse_args
(addopts=None, import_format_params=False, modify_action_params=False)¶ Do setup for a top-level script and parse arguments.
-
pyflyby._cmdline.
print_version_and_exit
(extra=None)¶
-
pyflyby._cmdline.
process_actions
(filenames, actions, modify_function, reraise_exceptions=())¶
-
pyflyby._cmdline.
symlink_callback
(option, opt_str, value, parser)¶
-
pyflyby._cmdline.
symlink_error
(m)¶
-
pyflyby._cmdline.
symlink_follow
(m)¶
-
pyflyby._cmdline.
symlink_replace
(m)¶
-
pyflyby._cmdline.
symlink_skip
(m)¶
-
pyflyby._cmdline.
syntax
(message=None, usage=None)¶