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
This commit is contained in:
commit
f756ca2991
5 changed files with 115 additions and 0 deletions
22
main.sh
Executable file
22
main.sh
Executable file
|
|
@ -0,0 +1,22 @@
|
|||
#!/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
|
||||
Loading…
Add table
Add a link
Reference in a new issue