tibet-tag(1) -- creates a new TIBET tag

SYNOPSIS

tibet tag [[--name] [<root>.][<namespace>(.|:)]]<tagname> [--action | --compiled | --info | --templated] [--supertype <typename] [--dir <dirname>] [--dna <template>] [--xmlns <nsuri>] [--package <package>] [--config <cfg>]

DESCRIPTION

Creates a new TIBET tag using the supplied tag name and parameters.

Tag names can supply one, two or three parts, separated by . or :.

If three parts are supplied, they are used as the root namespace, the tag namespace and the tag name, respectively.

If two parts are supplied, they are used for the tag namespace and the tag name and the root namespace is defaulted to either APP or TP, depending on whether this command is being executed in an application project or the TIBET library.

If one part is supplied, and this command is being executed in an application project, the tag namespace is defaulted to the application project name and the root namespace is defaulted as it is when two parts are supplied. It is not a valid operation to execute this command with one part when executed inside of the TIBET library.

Depending on the DNA chosen the result will be creation of the tag and optionally a template, style sheet, and test file.

OPTIONS

CONFIGURATION SETTINGS

ENVIRONMENT VARIABLES

No process environment variables are required by this command.

EXAMPLES

Create a new tag in the default application namespace

$ tibet tag header

working in: /Users/ss/temporary/hello/_header_
processing directories...
processing templates...
templating complete...
positioning files...
positioning complete...
adjusting package entries...
<package src="~app_tags/APP.hello.header/"/> (added)
New configuration entries created. Review/Rebuild as needed.
Cleaning up working directory.
Type DNA 'templatedtag' cloned to ~app_tags/APP.hello.header as 'header'.

Note that the tag command does not define new namespaces so if you use this approach you should be referring to an existing namespace or you should be prepared to define the namespace as part of your application startup sequence.

Also note that TIBET has also updated the package@config so our tag loads:

<config id="scripts">
    <!-- put your source scripts here -->
    ...

    <script src="~app_src/APP.hello.Header.js"/>
</config>

TIBET SHELL

This command has no client-side TSH peer command.

TROUBLESHOOTING

SEE ALSO