20 lines
No EOL
533 B
Bash
Executable file
20 lines
No EOL
533 B
Bash
Executable file
#!/bin/bash
|
|
|
|
main () {
|
|
[[ -f ./libs/shflags ]] && . ./libs/shflags || eval "$(curl --silent https://gitlab.g3e.fr/h6n/tools/-/raw/main/libs/shflags)"
|
|
|
|
|
|
|
|
DEFINE_string 'tag' 'v0.0.0' 'region cible' 't'
|
|
DEFINE_string 'name' 'totor' 'region cible' 'n'
|
|
DEFINE_boolean 'dryrun' false 'enable dry-run mode' 'd'
|
|
|
|
FLAGS "$@" || exit $?
|
|
eval set -- "${FLAGS_ARGV}"
|
|
|
|
echo "${FLAGS_tag} - ${FLAGS_name} . ${FLAGS_dryrun}"
|
|
}
|
|
|
|
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
|
|
main "$@"
|
|
fi |