cmd: track-dir
[contents]

Contents

Syntax

The syntax for the track-dir command is:

nift track-dir dir (content-extension) (template-path) (output-extension)
nsm track-dir dir (content-extension) (template-path) (output-extension)

Description

The track-dir command is for tracking all untracked files in a specified directory to be generated during a build with Nift, content-extension, template-path and output-extension are optional (default values are specified in the project configuration file .nsm/nift.config). Surround any strings containing spaces with single or double quotes.

Note: track-dir and track-from-file are much faster for tracking large volumes of files than track.

Example

Example of track-dir being used:

nift track-dir content/docs
nsm track-dir content/blog/posts ".md"