Last active
August 29, 2015 14:04
-
-
Save kidig/7d4e25d528de11e27c18 to your computer and use it in GitHub Desktop.
Example for the python shovel.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from shovel import task | |
@task | |
def hello(name): | |
print "Hello, %s!" % name | |
@task | |
def kwargs(**kwargs): | |
print "Kwargs: %s" % kwargs | |
''' | |
Для запуска используем: | |
> shovel hello username | |
Hello, username! | |
> shovel kwargs --name 123 --val bar | |
{name: '123', val: 'bar'} | |
''' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment