#!/bin/bash

cliHandleConfigCommands()
{
    local action="$initial_command2"

    case "$action" in
        "update")
            local encoded_pairs="$initial_command3"
            if [[ -z "$encoded_pairs" ]]; then
                isError "config update requires the encoded pair string."
                cliShowConfigHelp
            fi
            configUpdateBatch "$encoded_pairs"
            ;;

        "")
            cliShowConfigHelp
            ;;

        *)
            isNotice "Invalid config command: $action"
            cliShowConfigHelp
            ;;
    esac
}
