![]() |
![]()
| ![]() |
![]()
ros-template - Edit template for ros-init synopsis
Subcommands
DescriptionThe ros-template(1) command manages templates of projects. Create templateFirst, the init sub-command creates an empty template.
Many of sub-commands take a template name as first argument. But you can omit it by the checkout sub-commands. After the following, such sub-commands are applied to sample-template.
Next, the add sub-command adds local file[s] to template. Then, the list sub-command shows information of files in template.
The word copy means a strategy when applying the template. There are the following 2 strategies.
The type sub-command changes it. In addition, default strategy (copy) can be changed for each template by the type sub-command without file names (Ex. ros template type djula).
The sample.txt will be simply output as sample.txt in default. But you can change it by the rewrite sub-command. In the following example, it will be output as sample_<project name>.txt.
Note: Rewrite rules are always processed by Djula irrespective of strategy of the file. Apply templateros-init(1) can specify a template.
The file name and its content are processed by Djula as explained in the above. The following variables can be used in defaut.
In addition, you can use original variables as the followings.
Export and import templateBasically, ros-template(1) is designed to internally manage added files. However, if you want to, for example, manage it using Git in a local directory or to install distributed templates, you can use the export and import sub-commands. First, the export sub-command exports added files and a setting file roswell.init.<template name>.asd that is internally created and editted.
Second, the import sub-command imports them.
Note: If there is a template whose name is same, it will be overwritten. SEE ALSOros(1) ros-init(1) AUTHORSRoswell Project Team.
|