Skip to content

Commit

Permalink
Merge pull request #67 from kristovatlas/display-banner
Browse files Browse the repository at this point in the history
Add banner string
  • Loading branch information
Kristov Atlas authored Jul 9, 2016
2 parents e851bd4 + a183ae0 commit acfe1e5
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,8 @@ def main():
"""Main function."""
global glob_check_num

_print_banner()

config_checks = read_config(const.DEFAULT_CONFIG_FILE)
completely_failed_tests = []
for config_check in config_checks:
Expand Down Expand Up @@ -460,5 +462,21 @@ def is_match(regex, string, ignore_case=False):

return re.match(regex, string, regex_flags) is not None

def _print_banner():
banner = (("---------------------------------------------------------------"
"---------------------------\n"
"%s%sosx-config-check%s\n"
"Download the latest copy of this tool at: "
"https://github.com/kristovatlas/osx-config-check \n"
"Report bugs/issues:\n"
"\t* GitHub: "
"https://github.com/kristovatlas/osx-config-check/issues \n"
"\t* Twitter: https://twitter.com/kristovatlas \n"
"---------------------------------------------------------------"
"---------------------------\n") %
(const.COLORS['BOLD'], const.COLORS['OKBLUE'],
const.COLORS['ENDC']))
print _underline_hyperlink(banner)

if __name__ == "__main__":
main()

0 comments on commit acfe1e5

Please sign in to comment.