diff --git a/documents/ros-init.md b/documents/ros-init.md index 5dc9947..134e462 100644 --- a/documents/ros-init.md +++ b/documents/ros-init.md @@ -2,7 +2,7 @@ ros-init - Create a roswell script (optionally based on a template) # Synopsis -**ros init NAME [TEMPLATE [ARGS...]]** +**ros init [TEMPLATE] NAME [ARGS...]]** TEMPLATE diff --git a/documents/ros-template.md b/documents/ros-template.md new file mode 100644 index 0000000..60738e9 --- /dev/null +++ b/documents/ros-template.md @@ -0,0 +1,60 @@ +ros-template - Edit template for ros-init + +# synopsis + +* **ros template** command args... + +# Subcommands + +init template-name + + : Create new template in local-project directory. + +list + + : Show file list and states of the files *type* *chmod* *rewrite* in templates. + +checkout [template-name] + + : When invoked without template-name,this command shows candidates for current templates to operate.If with template-name, this command choose the name as current template. + +add [template-name] [files ...] + + : Add files to current template.First parameter could taken as a template-name when current template are *default*. + +cat [template-name] [files ...] + + : Show contents in the current template. + +rm [template-name] [files ...] + + : Remove file form current template. + +type [template-name] [type] [files ...] + + : Change file type. current choice for *type*s are *djula* or *copy* {{name}} {{author}} {{email}} {{universal_time}} are available variable in the template file. + +chmod [template-name] [mode] [files ...] + + : Change file mode bits to generate. specify mode in octal format. + +rewrite [template-name] file rewrite-rule + + : Change file name using djula template.Variables {{name}} {{author}} {{email}} {{universal_time}} are available for rewrite-rule. + +help + + : Show the subcommand help. + + + + + +# description + + + + + +# SEE ALSO +_ros_(1) _ros-init_(1)