Skip to content

Commit

Permalink
Remove paths from the 'pat version' output
Browse files Browse the repository at this point in the history
They are all included in the debug log.
  • Loading branch information
martinhpedersen committed Oct 25, 2021
1 parent 051431c commit d7cc80b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
13 changes: 0 additions & 13 deletions internal/directories/directories.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package directories

import (
"errors"
"fmt"
"log"
"os"
"path/filepath"
Expand Down Expand Up @@ -53,18 +52,6 @@ func initDir(dir *string, basePath string, methodName string) {
}
}

func PrintDirectories() {
data := DataDir()
cfg := ConfigDir()
state := StateDir()

fmt.Printf("Config directory: \t%s\n", cfg)
if data != cfg || state != cfg {
fmt.Printf("Mailbox directory:\t%s\n", data)
fmt.Printf("Logs directory: \t%s\n", state)
}
}

func MigrateLegacyDataDir() {
if f, err := os.Stat(ConfigDir()); err != nil && f.IsDir() {
debug.Printf("new config directory %s already exists, we have already migrated", ConfigDir())
Expand Down
1 change: 0 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@ var commands = []Command{
Desc: "Print the application version",
HandleFunc: func(args []string) {
fmt.Printf("%s %s\n", buildinfo.AppName, buildinfo.VersionString())
directories.PrintDirectories()
},
},
{
Expand Down

1 comment on commit d7cc80b

@xylo04
Copy link
Contributor

@xylo04 xylo04 commented on d7cc80b Oct 25, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 between debug logging and pat help, there's enough sources for this information.

Please sign in to comment.