Last active
April 28, 2022 18:38
-
-
Save jobquiroz/5cd7e354addfb089b5aab96cd0b76aa3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Version 1 | |
project_id = %system gcloud config get-value core/project | |
project_id = project_id[0] | |
# Version 2 | |
project_id = ! gcloud config list --format 'value(core.project)' 2>/dev/null | |
PROJECT_ID = project_id[0] | |
# Version 3 | |
project_id=!gcloud config get-value project | |
project_id = project_id[0] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment