Blame Automation/Modules/Hello/Manuals/hello.asciidoc

Alain Reguera Delgado 98c81b
hello(1)
Alain Reguera Delgado 98c81b
========
Alain Reguera Delgado 98c81b
Alain Reguera Delgado 98c81b
Name
Alain Reguera Delgado 98c81b
----
Alain Reguera Delgado 98c81b
Alain Reguera Delgado 98c81b
hello - Print out greetings and exit successfully.
Alain Reguera Delgado 98c81b
Alain Reguera Delgado 98c81b
Synopsis
Alain Reguera Delgado 98c81b
--------
Alain Reguera Delgado 98c81b
Alain Reguera Delgado 95c8a9
*centos-art hello [OPTIONS]*
Alain Reguera Delgado 98c81b
Alain Reguera Delgado 98c81b
Description
Alain Reguera Delgado 98c81b
-----------
Alain Reguera Delgado 98c81b
Alain Reguera Delgado 98c81b
The *hello* module is very simple. Its main purpose is to print out
Alain Reguera Delgado 98c81b
the ``Hello, World!'' greeting to standard output and exit
Alain Reguera Delgado 98c81b
successfully.  You can use options to change the greeting message and
Alain Reguera Delgado 98c81b
the way it is printed out. The *hello* module provides a very simple
Alain Reguera Delgado 98c81b
example you can use as base to understand how modules work inside
Alain Reguera Delgado 95c8a9
*centos-art.sh* script. You can this understanding to start writing
Alain Reguera Delgado 95c8a9
your own modules for *centos-art.sh* script.
Alain Reguera Delgado 98c81b
Alain Reguera Delgado 98c81b
Options
Alain Reguera Delgado 98c81b
-------
Alain Reguera Delgado 98c81b
Alain Reguera Delgado 98c81b
The *hello* module accepts the following options:
Alain Reguera Delgado 98c81b
Alain Reguera Delgado 95c8a9
*-h | --help*::
Alain Reguera Delgado 98c81b
    Print out module's documentation.
Alain Reguera Delgado 98c81b
Alain Reguera Delgado 95c8a9
*-v | --version*::
Alain Reguera Delgado 98c81b
    Print out module's version and legal status.
Alain Reguera Delgado 98c81b
Alain Reguera Delgado 95c8a9
*-d | --debug*::
Alain Reguera Delgado 98c81b
    Run the script in debugging mode. This option is very useful if
Alain Reguera Delgado 95c8a9
    you want to get a closer look to module environments being
Alain Reguera Delgado 95c8a9
    executed and destroyed at run-time.
Alain Reguera Delgado 95c8a9
Alain Reguera Delgado 95c8a9
*-g "TEXT" | --greeting="TEXT"*::
Alain Reguera Delgado 95c8a9
    Set a different greeting message to be printed out. This option
Alain Reguera Delgado 95c8a9
    accepts a value as argument. The text you provide must not have
Alain Reguera Delgado 95c8a9
    empty spaces on it. By default, when you don't provide this
Alain Reguera Delgado 95c8a9
    option, *hello* module prints out ``Hello, World'' as greeting. If
Alain Reguera Delgado 95c8a9
    translations of this message are available for your locale, they
Alain Reguera Delgado 95c8a9
    will be printed instead.
Alain Reguera Delgado 95c8a9
Alain Reguera Delgado 95c8a9
*-l | --lower*::
Alain Reguera Delgado 95c8a9
    Print greeting message in lowercase. The final output is printed
Alain Reguera Delgado 95c8a9
    out all in one line.
Alain Reguera Delgado 95c8a9
Alain Reguera Delgado 95c8a9
*-u | --upper*::
Alain Reguera Delgado 95c8a9
    Print greeting message in uppercase. The final output is printed
Alain Reguera Delgado 95c8a9
    out all in one line.
Alain Reguera Delgado 95c8a9
Alain Reguera Delgado 95c8a9
*-c | --camel*::
Alain Reguera Delgado 95c8a9
    Print greeting messages in camel-case (e.g., "HeLlO, WoRlD!").
Alain Reguera Delgado 95c8a9
    The output is printed out one character per line. This might not
Alain Reguera Delgado 95c8a9
    have sense but it helps to describe how execution of sibling
Alain Reguera Delgado 95c8a9
    modules work. Notice that, when printing final output, punctuation
Alain Reguera Delgado 95c8a9
    marks doesn't count for formating.
Alain Reguera Delgado 95c8a9
Alain Reguera Delgado 95c8a9
*-r | --random*::
Alain Reguera Delgado 95c8a9
    Print letters of a greeting message in a random order (e.g.,
Alain Reguera Delgado 95c8a9
    rdodldrl!,,!).  The final output is printed out one character per
Alain Reguera Delgado 95c8a9
    line. This might not have sense but it helps to describe how
Alain Reguera Delgado 95c8a9
    recursive execution of sibling modules work.
Alain Reguera Delgado 98c81b
Alain Reguera Delgado 98c81b
Exit Status
Alain Reguera Delgado 98c81b
-----------
Alain Reguera Delgado 98c81b
Alain Reguera Delgado 98c81b
The *hello* module ends its execution with one of the following exit
Alain Reguera Delgado 98c81b
status:
Alain Reguera Delgado 98c81b
Alain Reguera Delgado 98c81b
* 0 -- Exit successfully without errors.
Alain Reguera Delgado 98c81b
* 1 -- Exit with errors.
Alain Reguera Delgado 98c81b
Alain Reguera Delgado 98c81b
Authors
Alain Reguera Delgado 98c81b
-------
Alain Reguera Delgado 98c81b
Alain Reguera Delgado 98c81b
The *hello* module has received contribution from the following
Alain Reguera Delgado 98c81b
people:
Alain Reguera Delgado 98c81b
Alain Reguera Delgado 98c81b
* Alain Reguera Delgado <mailto:al@centos.org.cu[al@centos.org.cu]>, 2013
Alain Reguera Delgado 98c81b
Alain Reguera Delgado 98c81b
Copyright
Alain Reguera Delgado 98c81b
---------
Alain Reguera Delgado 98c81b
Alain Reguera Delgado 98c81b
Copyright (C) 2009-2013 The CentOS Artwork SIG
Alain Reguera Delgado 98c81b
Alain Reguera Delgado 98c81b
This program is free software; you can redistribute it and/or modify
Alain Reguera Delgado 98c81b
it under the terms of the GNU General Public License as published by
Alain Reguera Delgado 98c81b
the Free Software Foundation; either version 2 of the License, or (at
Alain Reguera Delgado 98c81b
your option) any later version.
Alain Reguera Delgado 98c81b
Alain Reguera Delgado 98c81b
This program is distributed in the hope that it will be useful, but
Alain Reguera Delgado 98c81b
WITHOUT ANY WARRANTY; without even the implied warranty of
Alain Reguera Delgado 98c81b
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Alain Reguera Delgado 98c81b
General Public License for more details.
Alain Reguera Delgado 98c81b
Alain Reguera Delgado 98c81b
You should have received a copy of the GNU General Public License
Alain Reguera Delgado 98c81b
along with this program; if not, write to the Free Software
Alain Reguera Delgado 98c81b
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
Alain Reguera Delgado 98c81b
Alain Reguera Delgado 98c81b
// vim: set syntax=asciidoc: