Skip to content

Commit

Permalink
feat: show whether plugins support parse legacy files.
Browse files Browse the repository at this point in the history
  • Loading branch information
aooohan committed Apr 22, 2024
1 parent 5e0040d commit d19e12b
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions cmd/commands/info.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,17 @@ func infoCmd(ctx *cli.Context) error {
}
source := s.Plugin

pterm.Println("Plugin info:")
pterm.Println("Plugin Info:")
pterm.Println("Name ", "->", pterm.LightBlue(source.Name))
pterm.Println("Version ", "->", pterm.LightBlue(source.Version))
pterm.Println("Homepage", "->", pterm.LightBlue(source.Homepage))
pterm.Println("Desc ", "->", pterm.LightBlue(source.Description))
pterm.Println("Desc ", "->")
pterm.Println(pterm.LightBlue(source.Description))
if len(source.LegacyFilenames) == 0 {
pterm.Println("Legacy Files ->", pterm.LightRed("None"))
} else {
pterm.Println("Legacy Files ->", pterm.LightBlue(source.LegacyFilenames))
}
source.ShowNotes()
return nil
}

0 comments on commit d19e12b

Please sign in to comment.