Skip to content

Commit

Permalink
chore: simplify exported function name
Browse files Browse the repository at this point in the history
tl;dr Gitmirror > CmdGitmirror
  • Loading branch information
telemachus committed Dec 4, 2024
1 parent 3308afa commit 6d74347
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/gitmirror/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ import (
)

func main() {
os.Exit(cli.CmdGitmirror(os.Args))
os.Exit(cli.Gitmirror(os.Args))
}
4 changes: 2 additions & 2 deletions internal/cli/gitmirror.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ type cfg struct {
quiet bool
}

// CmdGitmirror runs a subcommand and returns success or failure to the shell.
func CmdGitmirror(args []string) int {
// Gitmirror runs a subcommand and returns success or failure to the shell.
func Gitmirror(args []string) int {
cfg, err := parse(args)
if err != nil {
fmt.Fprintf(os.Stderr, "%s: %s\n", cmd, err)
Expand Down

0 comments on commit 6d74347

Please sign in to comment.