Scripts/Functions
=================

The Scripts/Functions directory exists to organize common and specific functionalities related to the centos-art.sh script. Common functionalities are loaded once the centos-art.sh script is executed and made available for specific functionalities to reuse.

The Scripts/Functions directory and all files inside it are under version control.

Content rendition inside `Scripts/Functions' directory is not supported.

Inside Scripts/Functions directory, specific functionalities are organized in the following directories:

  * Scripts Functions Prepare

Inside Scripts/Functions directory, common functionalities are stored in files prefixed with the cli string as described below:

 -- Function: cli "$@"
     The cli functionality initializes the command-line interface (cli) of centos-art.sh script. This function evaluates the first argument provided to centos-art.sh script and call the specific functionality that respondes to it. The cli function is directly called from centos-art.sh itself once global variables are defined, working copy verification performed, common functionalities exported into the execution environment, and signals trapped. The cli function receives all positional parameters passed to centos-art.sh as argument.

     The cli function creates the a new environment inside that one created by centos-art.sh script execution. Variables defined herein will be avaialble to all specific functionalities and common functionalities used inside specific functionalities.

      -- Variable: FUNCNAM
          The FUNCNAM variable stores the function name passed as first argument to centos-art.sh script using the file convenction specified by cli_getRepoName function.

      -- Variable: FUNCDIR
          The FUNCDIR variable stores the absolute path of directory holding centos-art.sh script functions, both common and specific.

      -- Variable: FUNCDIRNAM
          ...

      -- Variable: FUNCSCRIPT
          ...

      -- Variable: ARGUMENTS
          ...