Skip to content

Commit 1b1ff78

Browse files
committed
Include local install path in 'info' command
1 parent d31b330 commit 1b1ff78

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

main.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66
"log"
77
"net/http"
88
"os"
9+
"path/filepath"
910
"runtime"
1011
"strings"
1112

@@ -109,8 +110,14 @@ func infoPackage(c *cli.Context) error {
109110
fmt.Printf("Name: %s\n", pkg.Name())
110111
fmt.Printf("Version: %s\n", pkg.Version())
111112
fmt.Printf("Summary: %s\n", pkg.Summary())
113+
fmt.Printf("URL: %s\n", pkg.Source().URL)
114+
fmt.Printf("Build system: %s\n", pkg.Source().BuildSystem)
115+
fmt.Printf("Build arguments: %v\n", pkg.Source().BuildArguments)
112116
fmt.Printf("Description: %s\n", pkg.Description())
113117
fmt.Printf("Installed: %s\n", isInstalled)
118+
if isInstalled == "yes" {
119+
fmt.Printf("Install location: %s\n", filepath.Join(site.GetArtifactsDir(), pkg.Source().Directory))
120+
}
114121
return nil
115122
}
116123

pkg/site.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ func (s *RizinSite) InstallPackage(pkg Package) error {
221221
&minorVersion,
222222
})
223223
installedFilePath := filepath.Join(s.Path, installedFile)
224+
log.Printf("Installed package %s at %s\n", pkg.Name(), installedFilePath)
224225
return updateInstalledPackages(installedFilePath, s.installedPackages)
225226
}
226227

0 commit comments

Comments
 (0)