diff --git a/scripts/release.sh b/scripts/release.sh new file mode 100755 index 0000000..16d5d7b --- /dev/null +++ b/scripts/release.sh @@ -0,0 +1,20 @@ +#!/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 \ No newline at end of file