Skip to content

Commit

Permalink
chore: add TODOs to remove deprcated functionality in v4
Browse files Browse the repository at this point in the history
  • Loading branch information
Piccirello committed Sep 14, 2020
1 parent f0d02c8 commit 8a9c425
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/configuration/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,7 @@ func IsValidConfigOption(key string) bool {

// IsTranslatableConfigOption checks whether the key can be translated to a valid config option
func IsTranslatableConfigOption(key string) bool {
// TODO remove this function when releasing CLI v4 (DPLR-435)
if key == "config" || key == "project" {
return true
}
Expand All @@ -394,6 +395,7 @@ func IsTranslatableConfigOption(key string) bool {

// TranslateFriendlyOption to its config option name
func TranslateFriendlyOption(key string) string {
// TODO remove this function when releasing CLI v4 (DPLR-435)
if key == "config" {
return models.ConfigEnclaveConfig.String()
}
Expand All @@ -405,6 +407,7 @@ func TranslateFriendlyOption(key string) string {

// TranslateConfigOption to its friendly name
func TranslateConfigOption(key string) string {
// TODO remove this function when releasing CLI v4 (DPLR-435)
if key == models.ConfigEnclaveConfig.String() {
return "config"
}
Expand Down

0 comments on commit 8a9c425

Please sign in to comment.