~lindsay/poke

cli task manager inspire by invoke and fabric

531234f handle aliase conflict

~lindsay pushed to ~lindsay/poke git

7 days ago

9999b80 autopep8

~lindsay pushed to ~lindsay/elapid git

7 days ago

#Poke

CLI manager inpired by invoke, with type hints and asyncio.

#Quick Start

#!/bin/env python3
# tasks.py 

from poke import task, Context
@task(name='hello')
async def hello():
    "print hello message"
    print('hello')

@task
async def whoami(c: Context):
    """get self username"""
    proc = await c.shell('whoami')
    await proc.wait()
# run in tasks.py dir with
poke hello
# or 
POKEPATH=path/to/file poke hello