Crysalix/main.sh
TheHackdes f756ca2991 feat(README.md): add README for Manage OpenLDAP script
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
2026-05-04 18:33:16 +02:00

22 lines
370 B
Bash
Executable file
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/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