def info(workflow, banner): '''Learn more about gtd.py''' if workflow: click.secho(WORKFLOW_TEXT, fg='yellow') raise GTDException(0) elif banner: print(get_banner()) else: print('gtd.py version {c}{0}{r}'.format(__version__, c=Colors.green, r=Colors.reset)) print('{c}https://github.com/delucks/gtd.py/{r}\nPRs welcome\n'.format(c=Colors.green, r=Colors.reset))
def info(ctx, workflow, banner): '''Learn more about gtd.py''' if workflow: click.secho(WORKFLOW_TEXT, fg='yellow') raise GTDException(0) elif banner: print(get_banner(use_color=ctx.config.color)) else: on = Colors.green if ctx.config.color else '' off = Colors.reset if ctx.config.color else '' print(f'gtd.py version {on}{__version__}{off}') print( f'Visit {on}https://github.com/delucks/gtd.py/{off} for more information' )
def banner(self): '''Display an ASCII art banner for the beginning of program run''' print(get_banner(use_color=self.color))