Example #1
0
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.")
Example #2
0
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.")
Example #3
0
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.")
Example #4
0
def rig():
    in_project_directory()
    from pdpp.questions.question_0 import q0
    q0().rig_task()
Example #5
0
def extant():
    in_project_directory()
    from pdpp.questions.question_extant import q_extant
    q_extant().rig_task()
Example #6
0
def enable():
    in_project_directory()
    from pdpp.automation.task_enabler import task_enabler
    task_enabler()
Example #7
0
def run():
    in_project_directory()
    from pdpp.automation.doit_run import doit_run
    doit_run()
Example #8
0
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)