예제 #1
0
파일: main.py 프로젝트: UWNETLAB/pdpp
def sub(dirname):
    """Creates a new subproject in a directory named <dirname>.
    Adds dodo.py to <dirname>. Use this to create a new task directory."""
    in_project_directory()
    from pdpp.tasks.sub_task import SubTask
    SubTask(target_dir=rem_slash(dirname)).initialize_task()
    click.echo(f"Your new subproject, {dirname}, was created.")
예제 #2
0
파일: main.py 프로젝트: UWNETLAB/pdpp
def new(dirname):
    """Creates a new directory named <dirname>, with subdirectories 'input', 'output', and 'src'.
    Adds dodo.py to <dirname>. Use this to create a new task directory."""
    in_project_directory()
    from pdpp.tasks.standard_task import StandardTask
    StandardTask(target_dir=rem_slash(dirname)).initialize_task()
    click.echo(f"Your new task directory, {dirname}, was created.")
예제 #3
0
파일: main.py 프로젝트: UWNETLAB/pdpp
def custom(dirname: str):
    in_project_directory()
    from pdpp.tasks.custom_task import CustomTask
    CustomTask(target_dir=rem_slash(dirname)).initialize_task()
    click.echo(f"Your new task directory, {dirname}, was created.")
예제 #4
0
파일: main.py 프로젝트: UWNETLAB/pdpp
def rig():
    in_project_directory()
    from pdpp.questions.question_0 import q0
    q0().rig_task()
예제 #5
0
파일: main.py 프로젝트: UWNETLAB/pdpp
def extant():
    in_project_directory()
    from pdpp.questions.question_extant import q_extant
    q_extant().rig_task()
예제 #6
0
파일: main.py 프로젝트: UWNETLAB/pdpp
def enable():
    in_project_directory()
    from pdpp.automation.task_enabler import task_enabler
    task_enabler()
예제 #7
0
파일: main.py 프로젝트: UWNETLAB/pdpp
def run():
    in_project_directory()
    from pdpp.automation.doit_run import doit_run
    doit_run()
예제 #8
0
파일: main.py 프로젝트: UWNETLAB/pdpp
def graph(files, style):
    in_project_directory()
    from pdpp.utils.graph_dependencies import depgraph
    """Creates a dependency graph to visualize how the tasks in your project relate to each other."""
    full_style = next((s for s in GRAPH_STYLE_LIST if s.NAME == style), None)
    depgraph(files, full_style)