| #!/bin/bash |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| function cli { |
| |
| |
| local FUNCNAM='' |
| local ACTIONNAM='' |
| local ACTIONVAL='' |
| local REGEX='' |
| local ARGUMENTS='' |
| local CLINAME='' |
| local CLIVERSION='' |
| local CLIDESCRIP='' |
| local CLICOPYRIGHT='' |
| |
| |
| CLINAME='centos-art.sh' |
| CLIVERSION='Beta' |
| CLIDESCRIP="`gettext "Automate frequent tasks inside CentOS Artwork Repository."`" |
| CLICOPYRIGHT="Copyright (C) 2009, 2010 Alain Reguera Delgado" |
| |
| |
| cli_doParseArgumentsReDef "$@" |
| |
| |
| |
| |
| |
| cli_getActionArguments |
| |
| |
| if [[ ! "$EDITOR" =~ '/usr/bin/(vim|emacs|nano)' ]];then |
| EDITOR='/usr/bin/vim' |
| fi |
| |
| |
| cli_checkFiles $EDITOR 'x' |
| |
| |
| |
| |
| REGEX='.+' |
| |
| |
| |
| |
| |
| cli_getActions |
| |
| } |