feat(fnox.toml): add fnox provider configuration feat(main.sh): create main shell script for Manage OpenLDAP feat(mise.toml): add tools and env configurations for mise feat(sources/functions.sh): create functions shell script for Manage OpenLDAP
22 lines
370 B
Bash
Executable file
22 lines
370 B
Bash
Executable file
#!/bin/bash
|
||
|
||
clear
|
||
|
||
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
|