Skip to content

Commit a686048

Browse files
committed
trunk fmt
1 parent 711875a commit a686048

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

pkg/digitalocean/digitalocean.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ func CheckAuth(config config.Config) error {
109109
if err != nil {
110110
return fmt.Errorf("Failed to authenticate with DigitalOcean API: %w", err)
111111
}
112-
log.Good("Successfully authenticated with DigitalOcean API")
112+
log.Good("Successfully authenticated with DigitalOcean API")
113113

114114
// Check Spaces authentication
115115
_, err = s3.ListBuckets(config)

pkg/log/log.go

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,35 +5,35 @@ import (
55
)
66

77
const (
8-
ColorReset = "\033[0m"
9-
ColorRed = "\033[31m"
10-
ColorGreen = "\033[32m"
11-
ColorBlue = "\033[34m"
12-
ColorYellow = "\033[33m"
13-
ColorWhite = "\033[37m"
8+
ColorReset = "\033[0m"
9+
ColorRed = "\033[31m"
10+
ColorGreen = "\033[32m"
11+
ColorBlue = "\033[34m"
12+
ColorYellow = "\033[33m"
13+
ColorWhite = "\033[37m"
1414
)
1515

1616
func Info(msg string, args ...interface{}) {
17-
formatted := fmt.Sprintf(msg, args...)
18-
fmt.Println(ColorWhite, formatted, ColorReset)
17+
formatted := fmt.Sprintf(msg, args...)
18+
fmt.Println(ColorWhite, formatted, ColorReset)
1919
}
2020

2121
func Wait(msg string, args ...interface{}) {
22-
formatted := fmt.Sprintf(msg, args...) + "..."
23-
fmt.Println(ColorBlue, formatted, ColorReset)
22+
formatted := fmt.Sprintf(msg, args...) + "..."
23+
fmt.Println(ColorBlue, formatted, ColorReset)
2424
}
2525

2626
func Good(msg string, args ...interface{}) {
27-
formatted := fmt.Sprintf(msg, args...)
28-
fmt.Println(ColorGreen, formatted, ColorReset)
27+
formatted := fmt.Sprintf(msg, args...)
28+
fmt.Println(ColorGreen, formatted, ColorReset)
2929
}
3030

3131
func Warn(msg string, args ...interface{}) {
32-
formatted := fmt.Sprintf(msg, args...)
33-
fmt.Println(ColorYellow, formatted, ColorReset)
32+
formatted := fmt.Sprintf(msg, args...)
33+
fmt.Println(ColorYellow, formatted, ColorReset)
3434
}
3535

3636
func Error(msg string, args ...interface{}) {
37-
formatted := fmt.Sprintf(msg, args...)
38-
fmt.Println(ColorRed, formatted, ColorReset)
37+
formatted := fmt.Sprintf(msg, args...)
38+
fmt.Println(ColorRed, formatted, ColorReset)
3939
}

0 commit comments

Comments
 (0)