@@ -74,7 +74,7 @@ Options:
7474 -p, --pattern < file> Path to the pattern file to use. May be a file path or a URL.
7575 -a, --architecture < file> Path to the pattern architecture file to use. May be a file path or a URL.
7676 -s, --schema-directory < path> Path to the directory containing the meta schemas to use. (default: " ../calm/release" )
77- --strict When run in strict mode, the CLI will fail if any warnings are reported. (default: false)
77+ --strict When run in strict mode, the CLI will fail if any warnings are reported. (default: false)
7878 -f, --format < format> The format of the output (choices: " json" , " junit" , default: " json" )
7979 -o, --output < file> Path location at which to output the generated file.
8080 -v, --verbose Enable verbose logging. (default: false)
@@ -198,14 +198,24 @@ Usage: calm template [options]
198198Generate files from a CALM model using a Handlebars template bundle.
199199
200200Options:
201- -a, --architecture < path> Path to the CALM model JSON file.
202- -b, --bundle < path> Path to the template bundle directory.
201+ -a, --architecture < path> Path to the CALM model JSON file.
203202 -o, --output < path> Path to output directory.
203+ --clear-output-directory Completely delete the contents of the output path before generation.
204+ -b, --bundle < path> Path to the template bundle directory.
205+ -t, --template < path> Path to a single .hbs or .md template file
206+ -d, --template-dir < path> Path to a directory of .hbs/.md templates
204207 -u, --url-to-local-file-mapping < path> Path to mapping file which maps URLs to local paths.
205208 -v, --verbose Enable verbose logging. (default: false)
206209 -h, --help display help for command
207210` ` `
208211
212+ ` calm template` will create the output directory if it does not exist.
213+
214+ If the output directory exists, files will be modified if they already
215+ exist. Files that are not in the template bundle will be unmodified.
216+ The ` --clear-output-directory` option changes this behaviour to delete all
217+ files and subdirectories from the output path first.
218+
209219# ## Creating a Template Bundle
210220
211221A template bundle consists of:
@@ -241,13 +251,23 @@ Usage: calm docify [options]
241251Generate a documentation website off your CALM model.
242252
243253Options:
244- -a, --architecture < path> Path to the CALM model JSON file.
254+ -a, --architecture < path> Path to the CALM model JSON file.
245255 -o, --output < path> Path to output directory.
256+ --clear-output-directory Completely delete the contents of the output path before generation.
257+ -t, --template < path> Path to a single .hbs or .md template file
258+ -d, --template-dir < path> Path to a directory of .hbs/.md templates
246259 -u, --url-to-local-file-mapping < path> Path to mapping file which maps URLs to local paths.
247260 -v, --verbose Enable verbose logging. (default: false)
248261 -h, --help display help for command
249262` ` `
250263
264+ ` calm docify` will create the output directory if it does not exist.
265+
266+ If the output directory exists, files will be modified if they already
267+ exist. Other files will be unmodified.
268+ The ` --clear-output-directory` option changes this behaviour to delete all
269+ files and subdirectories from the output path first.
270+
251271Sample usage for you to try is as follows (assuming at root of project)
252272
253273` ` ` shell
0 commit comments