meta_package_manager.bitbar package¶
Submodules¶
meta_package_manager.bitbar.meta_package_manager.7h module¶
Module contents¶
Default update cycle is set to 7 hours so we have a chance to get user’s attention once a day. Higher frequency might ruin the system as all checks are quite resource intensive, and Homebrew might hit GitHub’s API calls quota.
-
meta_package_manager.bitbar.
echo
(message)[source]¶ Print message to the output.
Not unlike
click.echo()
, this method is required to support discrepencies in the way strings are handled in different Python versions and platforms.
-
meta_package_manager.bitbar.
fix_environment
()[source]¶ Tweak environment variable to find non-default system-wide binaries.
macOS does not put
/usr/local/bin
or/opt/local/bin
in thePATH
for GUI apps. For some package managers this is a problem. Additioanlly Homebrew and Macports are using different pathes. So, to make sure we can always get to the necessary binaries, we overload the path. Current preference order would equate to Homebrew, Macports, then system.
-
meta_package_manager.bitbar.
print_error
(message, submenu=u'')[source]¶ Print a formatted error line by line.
A red, fixed-width font is used to preserve traceback and exception layout.
Print menu structure using BitBar’s plugin API.
-
meta_package_manager.bitbar.
print_package_items
(packages, submenu=u'')[source]¶ Print a menu entry for each outdated packages available for upgrade.