./dtcw createTask exportNotion
createTask
About This Task
createTask scaffolds a new project-local custom task. It writes a ready-to-edit
Groovy script — with the // @task marker already in place — into your project’s
scripts directory, so dtcw discovers and runs it without any further wiring.
This creates scripts/exportNotion.groovy. Run it with ./dtcw exportNotion and
see it listed via ./dtcw tasks.
Setup and Configuration
-
The task name must start with a letter and contain only letters, digits, hyphens or underscores. If omitted, the name defaults to
customTask. -
The target directory defaults to
scripts/; override it with theDTC_PROJECT_SCRIPTS_DIRenvironment variable. -
createTasknever overwrites an existing file — pick a new name or edit the existing script directly.
The generated skeleton shows how to read docToolchainConfig.groovy and reuse
docToolchain’s bundled helpers via the dtc.scriptsHome system property.
Further Reading and Resources
-
copyTask — copy an installed task to modify it
Source
View the source of this task: scripts/createTask.groovy on GitHub
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.