pman: option --force-create
This commit is contained in:
parent
3b379eb799
commit
92363cd543
7
bin/pman
7
bin/pman
@ -35,7 +35,7 @@ function show_action() {
|
||||
################################################################################
|
||||
|
||||
function _init_config() {
|
||||
if [ ! -f .pman.conf ]; then
|
||||
if [ ! -f .pman.conf -o -n "$ForceCreate" ]; then
|
||||
ac_set_tmpfile config
|
||||
cp "$ConfigFile" "$config"
|
||||
"${EDITOR:-nano}" "$config"
|
||||
@ -210,9 +210,10 @@ ConfigFile=
|
||||
action=init
|
||||
Origin=
|
||||
Push=1
|
||||
ForceCreate=
|
||||
args=(
|
||||
"gérer un projet git"
|
||||
"repo|develop|upstream|dist
|
||||
"repo|config|develop|upstream|dist
|
||||
|
||||
INITIALISATION
|
||||
|
||||
@ -244,6 +245,8 @@ ne pas pousser les branches vers leur origine après leur création"
|
||||
--push Push=1 "++\
|
||||
pousser les branches vers leur origine après leur création.
|
||||
c'est l'option par défaut"
|
||||
-f,--force-create ForceCreate=1 "\
|
||||
Avec config, forcer la (re)création du fichier .pman.conf"
|
||||
)
|
||||
parse_args "$@"; set -- "${args[@]}"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user