

############################
### USER INPUT: APP NAME
############################
get.directory(){
    local DEFAULT=$1
    local ANSWER=$(
        input.text "Directory" \
        --prefill "${DEFAULT}" \
        --required
    )

    if [[ $(is.scoped $ANSWER) == "true" ]]; then
        console.error "App name cannot be scoped"
        get.app-name
        exit 1
    fi

    if [[ $ANSWER == *"/"* ]]; then
        console.error "App name cannot contain slashes"
        get.app-name
        exit 1
    fi

    echo $ANSWER
}
