Skip to content

Commit 082c6c2

Browse files
committed
Remove trailing whitespace in decrypt.go and init.go
Cleaned up unnecessary trailing whitespace in cmd/decrypt.go and cmd/init.go to improve code readability and maintain consistency.
1 parent 892976a commit 082c6c2

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

cmd/decrypt.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ func runDecrypt(cmd *cobra.Command, args []string) error {
7777
}
7878

7979
fmt.Printf("%s ✅ %s decrypted successfully -> %s\n", utils.ColorGreen, encryptedPath, fileMapping.Input)
80-
80+
8181
// Handle copy_to if specified
8282
if fileMapping.CopyTo != "" {
8383
// Ensure copy_to directory exists
@@ -89,15 +89,15 @@ func runDecrypt(cmd *cobra.Command, args []string) error {
8989
continue
9090
}
9191
}
92-
92+
9393
// Copy the decrypted file to the copy_to location
9494
if err := utils.CopyFile(fileMapping.Input, fileMapping.CopyTo); err != nil {
9595
fmt.Printf("%s ⚠️ Warning: Failed to copy %s to %s: %v\n", utils.ColorYellow, fileMapping.Input, fileMapping.CopyTo, err)
9696
} else {
9797
fmt.Printf("%s 📋 Copied to %s\n", utils.ColorGreen, fileMapping.CopyTo)
9898
}
9999
}
100-
100+
101101
fmt.Println()
102102
successCount++
103103
}

cmd/init.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ func runInit(cmd *cobra.Command, args []string) error {
5555

5656
// Determine which template to use
5757
var cfg *config.Config
58-
58+
5959
if templateName != "" {
6060
// Template provided via flag
6161
cfg = config.TemplateConfig(templateName)
@@ -71,17 +71,17 @@ func runInit(cmd *cobra.Command, args []string) error {
7171
fmt.Println(" 6. Kubernetes (K8s)")
7272
fmt.Println(" 7. Microservices")
7373
fmt.Println()
74-
74+
7575
choice, err := utils.ReadLine("Enter your choice (1-7) [1]: ")
7676
if err != nil {
7777
return err
7878
}
79-
79+
8080
// Default to 1 if empty
8181
if choice == "" {
8282
choice = "1"
8383
}
84-
84+
8585
switch choice {
8686
case "1":
8787
cfg = config.DefaultConfig()
@@ -108,7 +108,7 @@ func runInit(cmd *cobra.Command, args []string) error {
108108
cfg = config.DefaultConfig()
109109
templateName = "default"
110110
}
111-
111+
112112
fmt.Printf("%s 📝 Using %s template\n\n", utils.ColorBlue, templateName)
113113
} else {
114114
// Non-interactive mode, use default

0 commit comments

Comments
 (0)