Skip to content

Commit 81c981f

Browse files
authored
Merge pull request #215 from dmur1/remove-pointless-sprintfs-from-doc-strings
remove pointless sprintfs from doc strings
2 parents 4ff1562 + f7d6e0e commit 81c981f

File tree

12 files changed

+25
-29
lines changed

12 files changed

+25
-29
lines changed

commands/crypto.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ func init() {
2626
}
2727

2828
func CryptoHelp() string {
29-
return fmt.Sprintf("search for crypto constants using yara rules with ret\n")
29+
return "search for crypto constants using yara rules with ret\n"
3030
}
3131

3232
func Crypto(args []string) {

commands/docker.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ func init() {
2929
}
3030

3131
func DockerHelp() string {
32-
return fmt.Sprintf("create a dockerfile from a template with ret\n")
32+
return "create a dockerfile from a template with ret\n"
3333
}
3434

3535
func makeDockerFile(port int) {

commands/ghidra.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func init() {
2727
}
2828

2929
func GhidraHelp() string {
30-
return fmt.Sprintf("ingests all added files then opens ghidra with ret\n")
30+
return "ingests all added files then opens ghidra with ret\n"
3131
}
3232

3333
func ghidraSpinner() {

commands/gist.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ func init() {
2828
}
2929

3030
func GistHelp() string {
31-
return fmt.Sprintf("make private gists with ret\n") +
32-
fmt.Sprintf(theme.ColorGray+"specify the path of one or more files to upload"+theme.ColorReset+"\n")
31+
return "make private gists with ret\n" +
32+
theme.ColorGray + "specify the path of one or more files to upload" + theme.ColorReset + "\n"
3333
}
3434

3535
func Gist(args []string) {

commands/ida.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ func init() {
2323
}
2424

2525
func IdaHelp() string {
26-
return fmt.Sprintf("opens all added files then opens ida with ret\n")
26+
return "opens all added files then opens ida with ret\n"
2727
}
2828

2929
func idaSpinner() {

commands/libc.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ func init() {
2525
}
2626

2727
func LibcHelp() string {
28-
return fmt.Sprintf("get a version of libc by copying it from a docker container with ret\n") +
29-
fmt.Sprintf(theme.ColorGray+"specify an image tag like \"ubuntu:24.04\" to get a specific version"+theme.ColorReset+"\n") +
30-
fmt.Sprintf(theme.ColorGray+"without args this command will use the tag \"ubuntu:latest\""+theme.ColorReset+"\n") +
31-
fmt.Sprintf(theme.ColorGray+"the file will be copied to the cwd and added with ret"+theme.ColorReset+"\n")
28+
return "get a version of libc by copying it from a docker container with ret\n" +
29+
theme.ColorGray + "specify an image tag like \"ubuntu:24.04\" to get a specific version" + theme.ColorReset + "\n" +
30+
theme.ColorGray + "without args this command will use the tag \"ubuntu:latest\"" + theme.ColorReset + "\n" +
31+
theme.ColorGray + "the file will be copied to the cwd and added with ret" + theme.ColorReset + "\n"
3232
}
3333

3434
func libcSpinner(stop chan bool) {

commands/notes.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ func init() {
3636
}
3737

3838
func NotesHelp() string {
39-
return fmt.Sprintf("take notes with ret\n") +
40-
fmt.Sprintf(theme.ColorGray+"use - to read from stdin"+theme.ColorReset+"\n")
39+
return "take notes with ret\n" +
40+
theme.ColorGray + "use - to read from stdin" + theme.ColorReset + "\n"
4141
}
4242

4343
func displayNotes() {

commands/proxy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ func init() {
2828
}
2929

3030
func ProxyHelp() string {
31-
return fmt.Sprintf("manage proxies with ret\n")
31+
return "manage proxies with ret\n"
3232
}
3333

3434
func proxyList() {

commands/sage.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package commands
22

33
import (
4-
"fmt"
54
"log"
65
"os"
76
"os/exec"
@@ -18,7 +17,7 @@ func init() {
1817
}
1918

2019
func SageHelp() string {
21-
return fmt.Sprintf("open sage with ret\n")
20+
return "open sage with ret\n"
2221
}
2322

2423
func Sage(args []string) {

commands/status.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ func init() {
2121
}
2222

2323
func StatusHelp() string {
24-
return fmt.Sprintf("displays the status for the current task with ret\n")
24+
return "displays the status for the current task with ret\n"
2525
}
2626

2727
func Status(args []string) {

0 commit comments

Comments
 (0)