20 lines
363 B
Bash
Executable file
20 lines
363 B
Bash
Executable file
#!/bin/bash
|
||
|
||
source ./sources/functions.sh
|
||
|
||
banner "Manage OpenLDAP"
|
||
|
||
CHOIX=(
|
||
"1. Ajouter un nouveau utilisateur"
|
||
"2. Supprimer un utilisateur"
|
||
)
|
||
|
||
select_option() {
|
||
local choice
|
||
choice=$(printf "%s\n" "${CHOIX[@]}" | fzf --height=4 --reverse --cycle --prompt="❯ Choix : " --layout=reverse)
|
||
log info "Selection - ${choice}"
|
||
}
|
||
|
||
sleep 1.5
|
||
|
||
select_option
|