#
# Copyright (C) KylinSoft. Co., Ltd. 2024. All Rights Reserved.
#

# bash complete for kyldop
#
 _ldop_cli()
 {
    local commands="-v --vesion --loglevel -d --debug -t --timeout add delete update list query apply unapply profile_state reload enable disable"
    local cur prev word cword
    _init_completion || return

    if [[ "$cword" -eq 1 ]]; then
        COMPREPLY=($(compgen -W "$commands" -- "$cur"))
    #elif [[]]; then
    #    COMPREPLY=($())
    else
        COMPREPLY=()
    fi

    return 0
 } &&
complete -F _ldop_cli kyldop
