How to use the invoke.tasks.task function in invoke

To help you get started, we’ve selected a few invoke examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github pyinvoke / invoke / tests / collection.py View on Github external
                @task(aliases=["other_name"])
                def my_task(c):
                    pass
github pyinvoke / invoke / tests / cli.py View on Github external
        @task(aliases=['mytask27'])
        def mytask2():
            pass
        @task(default=True)
github pyinvoke / invoke / tests / _support / decorators.py View on Github external
@task(optional=["myopt"])
def optional_values(c, myopt):
    pass
github pyinvoke / invoke / tests / _support / decorators.py View on Github external
@task(incrementable=["verbose"])
def incrementable_values(c, verbose=None):
    pass
github pyinvoke / invoke / tests / _support / decorators.py View on Github external
@task(iterable=["mylist"])
def iterable_values(c, mylist=None):
    pass
github pyinvoke / invoke / tests / collection.py View on Github external
            @task(aliases=["mytask27"])
            def mytask2(c):
                pass
github getsentry / sentry-javascript / tasks.py View on Github external
@task
def test():
    run('node_modules/.bin/jshint .')
    run('node_modules/.bin/mocha-phantomjs -R dot test/index.html')