From 3503bc978e2f62e617b9771a04eac17dd8eca8d5 Mon Sep 17 00:00:00 2001 From: Emily McMullan Date: Wed, 27 Sep 2023 16:59:57 -0400 Subject: [PATCH] display link to static report Signed-off-by: Emily McMullan --- cmd/analyze.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmd/analyze.go b/cmd/analyze.go index ecfd6bc..d5ab293 100644 --- a/cmd/analyze.go +++ b/cmd/analyze.go @@ -20,6 +20,7 @@ import ( "github.com/konveyor/analyzer-lsp/engine" outputv1 "github.com/konveyor/analyzer-lsp/output/v1/konveyor" "github.com/konveyor/analyzer-lsp/provider" + "go.lsp.dev/uri" "gopkg.in/yaml.v2" "github.com/spf13/cobra" @@ -678,6 +679,9 @@ func (a *analyzeCommand) GenerateStaticReport(ctx context.Context) error { if err != nil { return err } + uri := uri.File(filepath.Join(a.output, "static-report", "index.html")) + cleanedURI := filepath.Clean(string(uri)) + a.log.Info("Static report created. Access it at this URL:", "URL", cleanedURI) return nil }