Blame Manuals/TCAR-UG/Docbook/Scripts/Bash/help.docbook

e68d9f
<sect1 id="scripts-bash-help">
e68d9f
e68d9f
    <title>The <function>help</function> functionality</title>
e68d9f
e68d9f
    <para>
e68d9f
        The <function>help</function> functionality is the interface
e68d9f
        the <command>centos-art.sh</command> script provides to
e68d9f
        control frequent documentation tasks (e.g., reading, editing,
e68d9f
        update output files, etc.) requied by specific documentation
e68d9f
        backends.  Documentation backends supported by
e68d9f
        <function>help</function> functionality are described in 
933061
        linkend="doc"/>.
e68d9f
    </para>
e68d9f
e68d9f
    <simplesect>
e68d9f
    <title>Synopsis</title>
d2638e
    <screen>centos-art help [OPTIONS] path/to/dir ...</screen>
d2638e
    <para>
d2638e
        The <parameter>path/to/dir</parameter> parameter specifies the
d2638e
        directory structure inside the working copy of The CentOS
d2638e
        Artwork Repository you want to process the related
d2638e
        documentation entry for. More than one directory structure can
d2638e
        be passed as <parameter>path/to/dir</parameter> parameter.
d2638e
    </para>
e68d9f
d2638e
    <para>
d2638e
        The <function>help</function> functionality accepts the
d2638e
        following options:
d2638e
    </para>
e68d9f
d2638e
    <variablelist>
d2638e
    <varlistentry>
d2638e
    <term><option>--quiet</option></term>
d2638e
    <listitem>
d2638e
    <para>
d2638e
        Supress all output messages except error messages.  When this
d2638e
        option is passed, all confirmation requests are supressed as
d2638e
        well and a possitive answer is assumed for them, just as if
d2638e
        the <option>--answer-yes</option> option had been provided.
d2638e
    </para>
d2638e
    </listitem>
d2638e
    </varlistentry>
e68d9f
d2638e
    <varlistentry>
d2638e
    <term><option>--answer-yes</option></term>
d2638e
    <listitem>
d2638e
    <para>
d2638e
        Assume <emphasis>yes</emphasis> to all confirmation requests.
d2638e
    </para>
d2638e
    </listitem>
d2638e
    </varlistentry>
e68d9f
d2638e
    <varlistentry>
d2638e
    <term><option>--dont-commit-changes</option></term>
d2638e
    <listitem>
d2638e
    <para>
d2638e
        Supress all commit and update actions realized over files,
d2638e
        before and after the action itself had took place over files
d2638e
        in the working copy.
d2638e
    </para>
d2638e
    </listitem>
d2638e
    </varlistentry>
e68d9f
d2638e
    <varlistentry>
d2638e
    <term><option>--backend="STRING"</option></term>
d2638e
    <listitem>
d2638e
    <para>
d2638e
        Specify <replaceable>STRING</replaceable> as default
d2638e
        documentation backend to use. Possible arguments to this
d2638e
        options are: <literal>texinfo</literal> or
d2638e
        <literal>docbook</literal>. If this option is not provided,
d2638e
        <literal>texinfo</literal> is used as default documentation
d2638e
        backend.
d2638e
    </para>
d2638e
    </listitem>
d2638e
    </varlistentry>
e68d9f
d2638e
    <varlistentry>
d2638e
    <term><option>--search="STRING"</option></term>
d2638e
    <listitem>
d2638e
    <para>
d2638e
        Go to node pointed by index entry <literal>STRING</literal>.
d2638e
    </para>
d2638e
    </listitem>
d2638e
    </varlistentry>
e68d9f
d2638e
    <varlistentry>
d2638e
    <term><option>--edit</option></term>
d2638e
    <listitem>
d2638e
    <para>
d2638e
        Edit documentation entry related to path specified by
d2638e
        <parameter>path/to/dir</parameter> parameter.
d2638e
    </para>
d2638e
    <para>
d2638e
        The <parameter>path/to/dir</parameter> parameter must point to
d2638e
        any directory inside the repository.  When more than one
d2638e
        <parameter>path/to/dir</parameter> are passed as non-option
d2638e
        arguments to the <command>centos-art.sh</command> script
d2638e
        command-line, they are queued for further edition.  The
d2638e
        edition itself takes place through your default text editor
d2638e
        (e.g., the one you specified in the <envar>EDITOR</envar>
d2638e
        environment variable) and the text editor opens one file at
d2638e
        time (i.e., the queue of files to edit is not loaded in the
d2638e
        text editor.).
d2638e
    </para>
d2638e
    </listitem>
d2638e
    </varlistentry>
e68d9f
d2638e
    <varlistentry>
d2638e
    <term><option>--read</option></term>
d2638e
    <listitem>
d2638e
    <para>
d2638e
        Read documentation entry specified by
d2638e
        <parameter>path/to/dir</parameter> path.  This option is used
d2638e
        internally by <command>centos-art.sh</command> script to print
d2638e
        out the reference you can follow to know more about an error
d2638e
        message.
d2638e
    </para>
d2638e
    </listitem>
d2638e
    </varlistentry>
e68d9f
d2638e
    <varlistentry>
d2638e
    <term><option>--update</option></term>
d2638e
    <listitem>
d2638e
    <para>
d2638e
        Update output files rexporting them from the specified backend
d2638e
        source files.
d2638e
    </para>
d2638e
    </listitem>
d2638e
    </varlistentry>
e68d9f
d2638e
    <varlistentry>
d2638e
    <term><option>--copy</option></term>
d2638e
    <listitem>
d2638e
    <para>
d2638e
        Duplicate documentation entries inside the working copy of the
d2638e
        repository.
d2638e
    </para>
d2638e
    <para>
d2638e
        When documentation entries are copied, it is required to pass
d2638e
        two non-option parameters in the command-line.  The first
d2638e
        non-option parameter is considered the source location and the
d2638e
        second one the target location.  Both source location and
d2638e
        target location must point to a directory under the working
d2638e
        copy.
d2638e
    </para>
d2638e
    </listitem>
d2638e
    </varlistentry>
e68d9f
d2638e
    <varlistentry>
d2638e
    <term><option>--delete</option></term>
d2638e
    <listitem>
d2638e
    <para>
d2638e
        Delete documentation entries specified by
d2638e
        <parameter>path/to/dir</parameter> inside the working copy. It
d2638e
        is possible to delete more than one documentation entry by
d2638e
        specifying more <parameter>path/to/dir</parameter> parameters
d2638e
        in the command-line.
d2638e
    </para>
d2638e
    </listitem>
d2638e
    </varlistentry>
e68d9f
d2638e
    <varlistentry>
d2638e
    <term><option>--rename</option></term>
d2638e
    <listitem>
d2638e
    <para>
d2638e
        Rename documentation entries inside the working copy.  
d2638e
    </para>
d2638e
    <para>
d2638e
        When documentation entries are renamed, it is required to pass
d2638e
        only two non-option parameters to the command-line. The first
d2638e
        non-option parameter is considered the source location and the
d2638e
        second one the target location.  Both source location and
d2638e
        target location must point to a directory under the working
d2638e
        copy.
d2638e
    </para>
d2638e
    </listitem>
d2638e
    </varlistentry>
e68d9f
d2638e
    </variablelist>
e68d9f
d2638e
    <para>
d2638e
        When documentation entries are removed (e.g., through
d2638e
        <option>--delete</option> or <option>--rename</option>
d2638e
        options), the <function>help</function> functionality takes
d2638e
        care of updating nodes, menus and cross references related to
d2638e
        documentation entries in order to keep the manual structure in
d2638e
        a correct state.
d2638e
    </para>
e68d9f
    </simplesect>
e68d9f
e68d9f
    <simplesect>
e68d9f
    <title>Examples</title>
e68d9f
d2638e
    <variablelist> 
d2638e
    <varlistentry>
d2638e
    <term><userinput>centos-art help --edit trunk/Identity</userinput></term>
d2638e
    <listitem>
e68d9f
    <para>
d2638e
        This command edits the documentation entry related to
d2638e
        <filename class="directory">trunk/Identity</filename>
d2638e
        directory inside the repository working copy.
d2638e
    </para>
d2638e
    </listitem>
d2638e
    </varlistentry>
e68d9f
d2638e
    <varlistentry>
d2638e
    <term><userinput>centos-art help --read trunk/Identity</userinput></term>
d2638e
    <listitem>
d2638e
    <para>
d2638e
        This command reads the documentation entry related to
d2638e
        <filename class="directory">trunk/Identity</filename>
d2638e
        directory inside the repository working copy.
e68d9f
    </para>
d2638e
    </listitem>
d2638e
    </varlistentry>
d2638e
    </variablelist> 
e68d9f
    </simplesect>
e68d9f
e68d9f
    <simplesect>
d2638e
    <title>Author</title>
d2638e
    <para>
d2638e
        Written by Alain Reguera Delgado.
d2638e
    </para>
e68d9f
    </simplesect>
e68d9f
e68d9f
    <simplesect>
d2638e
    <title>Reporting Bugs</title>
d2638e
    <para>
d2638e
        Report bugs to &TCAML;.
d2638e
    </para>
e68d9f
    </simplesect>
e68d9f
e68d9f
    <simplesect>
d2638e
    <title>Copyright</title>
d2638e
    <para>
d2638e
        Copyright © 2009, 2010, 2011 &TCAS;.
d2638e
    </para>
d2638e
    <para>
d2638e
        This  is free software.  You may redistribute copies of it
d2638e
        under the terms of the <xref linkend="licenses-gpl"/>.  There
d2638e
        is NO WARRANTY, to the extent permitted by law.
d2638e
    </para>
e68d9f
    </simplesect>
e68d9f
e68d9f
</sect1>