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