#!/usr/bin/env bash

koopa::fedora_install_google_cloud_sdk() { # {{{1
    # """
    # Install Google Cloud SDK.
    # @note Updated 2021-06-16.
    # @seealso
    # - https://cloud.google.com/sdk/docs/downloads-yum
    # """
    local name_fancy
    name_fancy='Google Cloud SDK'
    if koopa::is_installed 'gcloud'
    then
        koopa::alert_is_installed "$name_fancy"
        return 0
    fi
    koopa::install_start "$name_fancy"
    koopa::fedora_add_google_cloud_sdk_repo
    koopa::fedora_dnf_install 'google-cloud-sdk'
    koopa::install_success "$name_fancy"
    return 0
}

koopa::fedora_uninstall_google_cloud_sdk() { # {{{1
    # """
    # Uninstall Google Cloud SDK.
    # @note Updated 2021-06-16.
    # """
    local name
    name='google-cloud-sdk'
    koopa::fedora_dnf_remove "$name"
    koopa::fedora_dnf_delete_repo "$name"
    return 0
}

#!/usr/bin/env bash

koopa::fedora_install_google_cloud_sdk() { # {{{1
    # """
    # Install Google Cloud SDK.
    # @note Updated 2021-06-16.
    # @seealso
    # - https://cloud.google.com/sdk/docs/downloads-yum
    # """
    local name_fancy
    name_fancy='Google Cloud SDK'
    if koopa::is_installed 'gcloud'
    then
        koopa::alert_is_installed "$name_fancy"
        return 0
    fi
    koopa::install_start "$name_fancy"
    koopa::fedora_add_google_cloud_sdk_repo
    koopa::fedora_dnf_install 'google-cloud-sdk'
    koopa::install_success "$name_fancy"
    return 0
}

koopa::fedora_uninstall_google_cloud_sdk() { # {{{1
    # """
    # Uninstall Google Cloud SDK.
    # @note Updated 2021-06-16.
    # """
    koopa::fedora_dnf_remove 'google-cloud-sdk'
    # FIXME Need to ensure repo is removed here.
    return 0
}

--- 
+++ 
@@ -26,9 +26,7 @@
     # Uninstall Google Cloud SDK.
     # @note Updated 2021-06-16.
     # """
-    local name
-    name='google-cloud-sdk'
-    koopa::fedora_dnf_remove "$name"
-    koopa::fedora_dnf_delete_repo "$name"
+    koopa::fedora_dnf_remove 'google-cloud-sdk'
+    # FIXME Need to ensure repo is removed here.
     return 0
 }
Add support for Google Cloud SDK uninstalelr
