]> git.notmuchmail.org Git - notmuch/commit - devel/nmbug/nmbug-status
nmbug-status: Consolidate functions and main code
authorW. Trevor King <wking@tremily.us>
Mon, 10 Feb 2014 18:40:27 +0000 (10:40 -0800)
committerDavid Bremner <david@tethera.net>
Tue, 11 Feb 2014 02:45:28 +0000 (22:45 -0400)
commite4d79bfddb7e8f34f991c9d4ee0256c530187c23
tree839a649474fb3ad5d8f15d95d22320af46d11251
parenta2b64211b285e35e8f57583809eab98c431a8cd5
nmbug-status: Consolidate functions and main code

The definitions of Thread, output_with_separator, and print_view were
between the main argparse and view-printing code.  Group them together
with our existing read_config at the top of the module, which makes
for easier reading in the main section.

I also:

* Made 'headers' a print_view argument instead of a module-level
  global.  The list -> tuple conversion avoids having a mutable
  default argument, which makes some people jumpy ;).

* Made 'db' a print_view argument instead of relying on the global
  namespace to access it from print_view.
devel/nmbug/nmbug-status