コード例 #1
0
ファイル: mello.py プロジェクト: whitef0x0/gtd.py
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))
コード例 #2
0
ファイル: gtd.py プロジェクト: robeastham/gtd.py
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))
コード例 #3
0
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'
        )
コード例 #4
0
ファイル: display.py プロジェクト: whitef0x0/gtd.py
 def banner(self):
     '''Display an ASCII art banner for the beginning of program run'''
     print(get_banner(use_color=self.color))
コード例 #5
0
ファイル: display.py プロジェクト: robeastham/gtd.py
 def banner(self):
     '''Display an ASCII art banner for the beginning of program run'''
     print(get_banner(use_color=self.color))