Skip to content

purplexa/parophrys

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Parophrys - remote task CLI builder

This isn't packaged yet. To load it, cd into the repo and execute:

pip install --editable . --upgrade .

CLI Usage

paro --help

Library Usage

from parophrys import cli, do

@cli.command()
@cli.option('--flag', is_flag=True, help='my help text')
@cli.option('--parameter', help='more help text')
def my_command(flag, parameter=None):
    if flag:
        if parameter:
            do('command' + parameter)
        else:
            do('command')
    else:
        print 'did nothing'

And to run it:

paro -C 'Role::Something' my_command --flag --parameter my_file

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages