(plugin *plugins.LoadedPlugin)
| 381 | } |
| 382 | |
| 383 | func pluginInfoTableOutput(plugin *plugins.LoadedPlugin) { |
| 384 | t := output.NewTableWriter() |
| 385 | t.SetTitle(fmt.Sprintf("Plugin: %s", plugin.Metadata.Name)) |
| 386 | t.AppendSeparator() |
| 387 | t.AppendRow(table.Row{"Version", plugin.Metadata.Version}) |
| 388 | t.AppendSeparator() |
| 389 | t.AppendRow(table.Row{"Description", plugin.Metadata.Description}) |
| 390 | t.AppendSeparator() |
| 391 | t.AppendRow(table.Row{"Commands", fmt.Sprintf("%d command(s)", len(plugin.Metadata.Commands))}) |
| 392 | t.AppendSeparator() |
| 393 | t.Render() |
| 394 | |
| 395 | pluginInfoFlagsTableOutput(plugin) |
| 396 | } |
| 397 | |
| 398 | func pluginInfoFlagsTableOutput(plugin *plugins.LoadedPlugin) { |
| 399 | if len(plugin.Metadata.Commands) == 0 { |
no test coverage detected