def main(argv=None):
""" Execute the application.
Arguments are taken from sys.argv by default.
"""
args = _cmdline(argv)
logger.start(args.logging_level)
logger.info("executing githeat")
try:
g = Git(os.getcwd())
except (InvalidGitRepositoryError, GitCommandError, GitCommandNotFound):
print("Are you sure you're in an initialized git directory?")
return 0
githeat = Githeat(g, **vars(args))
githeat.run()
logger.info("successful completion")
return 0
# Make it executable.
评论列表
文章目录