Revert "feat(cli): run watch mode"

This commit is contained in:
Maidul Islam
2024-08-29 12:44:24 -04:00
committed by GitHub
parent d0292aa139
commit 585f0d9f1b
7 changed files with 150 additions and 413 deletions
-14
View File
@@ -4,7 +4,6 @@ import (
"bytes"
"crypto/sha256"
"encoding/base64"
"encoding/hex"
"fmt"
"math/rand"
"os"
@@ -299,16 +298,3 @@ func GenerateRandomString(length int) string {
}
return string(b)
}
func GenerateETagFromSecrets(secrets []models.SingleEnvironmentVariable) string {
sortedSecrets := SortSecretsByKeys(secrets)
content := []byte{}
for _, secret := range sortedSecrets {
content = append(content, []byte(secret.Key)...)
content = append(content, []byte(secret.Value)...)
}
hash := sha256.Sum256(content)
return fmt.Sprintf(`"%s"`, hex.EncodeToString(hash[:]))
}