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.")
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.")
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.")
def rig(): in_project_directory() from pdpp.questions.question_0 import q0 q0().rig_task()
def extant(): in_project_directory() from pdpp.questions.question_extant import q_extant q_extant().rig_task()
def enable(): in_project_directory() from pdpp.automation.task_enabler import task_enabler task_enabler()
def run(): in_project_directory() from pdpp.automation.doit_run import doit_run doit_run()
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)