Skip to content

Remove old google cloud config optins #249

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -475,9 +475,6 @@ if a file called `writeup.md` already exists the command will abort
"chatwebhookurl2": "",
"chatwebhookurl3": "",
"gisttoken": "",
"googlecloudproject": "",
"googlecloudregion": "",
"googlecloudsshkey": "",
"chefurl": "",
"ctftimeurl": ""
}
Expand Down
21 changes: 0 additions & 21 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@ var (
ChatWebhookUrl2 = ""
ChatWebhookUrl3 = ""
GistToken = ""
GoogleCloudProject = "default"
GoogleCloudRegion = "europe-west3-c"
GoogleCloudSSHKey = ""
ChefUrl = "https://gchq.github.io/CyberChef/"
CtfTimeUrl = ""
)
Expand All @@ -56,9 +53,6 @@ type Config struct {
ChatWebhookUrl2 string `json:"chatwebhookurl2"`
ChatWebhookUrl3 string `json:"chatwebhookurl3"`
GistToken string `json:"gisttoken"`
GoogleCloudProject string `json:"googlecloudproject"`
GoogleCloudRegion string `json:"googlecloudregion"`
GoogleCloudSSHKey string `json:"googlecloudsshkey"`
ChefUrl string `json:"chefurl"`
CtfTimeUrl string `json:"ctftimeurl"`
}
Expand Down Expand Up @@ -132,18 +126,6 @@ func ParseUserConfig() {
GistToken = userConfig.GistToken
}

if len(userConfig.GoogleCloudProject) > 0 {
GoogleCloudProject = userConfig.GoogleCloudProject
}

if len(userConfig.GoogleCloudRegion) > 0 {
GoogleCloudRegion = userConfig.GoogleCloudRegion
}

if len(userConfig.GoogleCloudSSHKey) > 0 {
GoogleCloudSSHKey = userConfig.GoogleCloudSSHKey
}

if len(userConfig.ChefUrl) > 0 {
ChefUrl = userConfig.ChefUrl
}
Expand Down Expand Up @@ -183,9 +165,6 @@ func WriteUserConfig() {
userConfig.ChatWebhookUrl2 = ChatWebhookUrl2
userConfig.ChatWebhookUrl3 = ChatWebhookUrl3
userConfig.GistToken = GistToken
userConfig.GoogleCloudProject = GoogleCloudProject
userConfig.GoogleCloudRegion = GoogleCloudRegion
userConfig.GoogleCloudSSHKey = GoogleCloudSSHKey
userConfig.ChefUrl = ChefUrl
userConfig.CtfTimeUrl = CtfTimeUrl

Expand Down