nest generate guard <guard>

Generate a guard declaration

Arguments

NameDescription
guardThe name of the guard

Options

NameDescription
-d, --dry-runReport actions that would be taken without writing out results
-p, --project <project>Project in which to generate files
--flatEnforce flat structure of generated element
--specEnforce spec files generation (default: true)
--no-specDisable spec files generation
-c, --collection <collection>Schematics collection to use