roswell.roswell/documents/html/ros-template.html
2018-02-19 12:39:35 +00:00

81 lines
2.8 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="generator" content="pandoc">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
<title>ros-template(1)</title>
<style type="text/css">code{white-space: pre;}</style>
<link rel="stylesheet" href="../ros.css">
<!--[if lt IE 9]>
<script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv-printshiv.min.js"></script>
<![endif]-->
</head>
<body>
<header>
<h1 class="title">ros-template(1)</h1>
<ul>
<li class="author">Roswell Project Team</li>
</ul>
</header>
<p>ros-template - Edit template for ros-init</p>
<h1 id="synopsis">synopsis</h1>
<ul>
<li><strong>ros template</strong> command args...</li>
</ul>
<h1 id="subcommands">Subcommands</h1>
<dl>
<dt>init template-name</dt>
<dd><p>Create new template in local-project directory.</p>
</dd>
<dt>deinit template-name</dt>
<dd><p>Remove a template from local-project directory.</p>
</dd>
<dt>list</dt>
<dd><p>Show file list and states of the files <em>type</em> <em>chmod</em> <em>rewrite</em> in templates.</p>
</dd>
<dt>checkout [template-name]</dt>
<dd><p>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.</p>
</dd>
<dt>add [template-name] [files ...]</dt>
<dd><p>Add files to current template.First parameter could taken as a template-name when current template are <em>default</em>.</p>
</dd>
<dt>cat [template-name] [files ...]</dt>
<dd><p>Show contents in the current template.</p>
</dd>
<dt>rm [template-name] [files ...]</dt>
<dd><p>Remove file form current template.</p>
</dd>
<dt>type [template-name] [type] [files ...]</dt>
<dd><p>Change file type. current choice for <em>type</em>s are <em>djula</em> or <em>copy</em> {{name}} {{author}} {{email}} {{universal_time}} are available variable in the template file.</p>
</dd>
<dt>chmod [template-name] [mode] [files ...]</dt>
<dd><p>Change file mode bits to generate. specify mode in octal format.</p>
</dd>
<dt>rewrite [template-name] file rewrite-rule</dt>
<dd><p>Change file name using djula template.Variables {{name}} {{author}} {{email}} {{universal_time}} are available for rewrite-rule.</p>
</dd>
<dt>export [template-name] [directory]</dt>
<dd><p>Export files in current template to current directory.</p>
</dd>
<dt>import [directory]</dt>
<dd><p>Import template in current directory</p>
</dd>
<dt>help</dt>
<dd><p>Show the subcommand help.</p>
</dd>
</dl>
<!-- somecommand -->
<!-- : description. end with a period. -->
<h1 id="description">description</h1>
<!-- # options -->
<!-- -->
<!-- # Environmental Variables -->
<h1 id="see-also">SEE ALSO</h1>
<p><em><a href="ros.html">ros</a></em>(1) <em><a href="ros-init.html">ros-init</a></em>(1) _</p>
</body>
</html>