Blame Manuals/Tcar-ug/Scripts/Bash/help.docbook

e68d9f
<sect1 id="scripts-bash-help">
e68d9f
89114c
    <title><function>help</function> — Standardize Documentation
89114c
    Tasks</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
89114c
    <screen>centos-art help [OPTIONS] [DIRECTORY]</screen>
89114c
d2638e
    <para>
89114c
        The <varname>DIRECTORY</varname> parameter specifies the
89114c
        directory path, inside the working copy of &TCAR;, where the
89114c
        files you want to process the related documentation entry for.
89114c
        This paramter can be provided more than once in order to
89114c
        process more than one directory path in a single command
89114c
        execution or not provided at all.  When this parameter is not
89114c
        provided, the current directory path where the command was
89114c
        called from is used instead.
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
89114c
        option is passed, all confirmation requests are supressed and
89114c
        a possitive answer is assumed for them, just as if the
89114c
        <option>--answer-yes</option> option would have 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>
89114c
    <term><option>--backend="NAME"</option></term>
d2638e
    <listitem>
d2638e
    <para>
89114c
        The <varname>NAME</varname> argument in this option specifies
89114c
        what backend to use when processing documentation. Possible
89114c
        arguments to this 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>
89114c
    <term><option>--search="ID"</option></term>
d2638e
    <listitem>
d2638e
    <para>
89114c
        Go to node pointed by <varname>ID</varname> argument. When
89114c
        texinfo backend is used, this arguments refers the node you
89114c
        want to read documentation for. When docbook backend is used,
89114c
        this argument refers the section id you want to read
89114c
        documentation for.
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
89114c
        <varname>DIRECTORY</varname> parameter.
d2638e
    </para>
d2638e
    <para>
89114c
        The <varname>DIRECTORY</varname> parameter must point to any
89114c
        directory inside the working copy.  When more than one
89114c
        <varname>DIRECTORY</varname> 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
89114c
        <varname>DIRECTORY</varname> 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>
89114c
        Duplicate documentation entries inside the working copy.
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
89114c
        <varname>DIRECTORY</varname> inside the working copy. It is
89114c
        possible to delete more than one documentation entry by
89114c
        specifying more <varname>DIRECTORY</varname> parameters in the
89114c
        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
89114c
        a consistent state.
d2638e
    </para>
e68d9f
e68d9f
</sect1>