Skip to content

Commit 766addd

Browse files
committed
Print repository path after get
1 parent 5bf53dc commit 766addd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cmd_get.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,12 @@ func doGet(c *cli.Context) error {
7777
if getInfo, err = g.get(target); err != nil {
7878
return fmt.Errorf("failed to get %q: %w", target, err)
7979
}
80+
fd := os.Stdout.Fd()
81+
if !isatty.IsTerminal(fd) && !isatty.IsCygwinTerminal(fd) {
82+
if getInfo.localRepository != nil {
83+
fmt.Println(getInfo.localRepository.FullPath)
84+
}
85+
}
8086
}
8187
}
8288
if err = scr.Err(); err != nil {

0 commit comments

Comments
 (0)