Example #1
0
def twice(*args):
    'Run a command twice'
    argv = [sys.argv[0]] + list(args)

    print('first time:')
    parsable(argv)

    print('second time:')
    parsable(argv)
Example #2
0
@parsable
def extract(filename):
    """Extract code from markdown file."""
    TODO()


@parsable
def annotate(*files):
    '''
    Annotate markdown files with high-latency results of analyst.
    '''
    TODO()


@parsable
def suggest(filename):
    '''
    Get real-time feedback from low-latency results of analyst.
    '''
    TODO()


@parsable
def precommit():
    """Reformat and annotate all code before a git commit."""
    reformat(CORPUS)


if __name__ == '__main__':
    parsable()