refactor: minor changes and fixes

This commit is contained in:
David Allen 2025-08-30 00:23:53 -06:00
parent b791b84890
commit dc8a9cff20
Signed by: towk
GPG key ID: 0430CDBE22619155
5 changed files with 11 additions and 25 deletions

View file

@ -114,7 +114,6 @@ var listPluginsCmd = &cobra.Command{
Msg("response returned bad status")
os.Exit(1)
}
fmt.Println(string(body))
err = json.Unmarshal(body, &plugins)
if err != nil {
log.Error().Err(err).
@ -125,7 +124,7 @@ var listPluginsCmd = &cobra.Command{
for _, pluginName := range args {
// make request to /list endpoint
res, body, err = c.MakeRequest(client.HTTPEnvelope{
Path: fmt.Sprintf("/plugins/%s", pluginName),
Path: fmt.Sprintf("/plugins/%s/info", pluginName),
Method: http.MethodGet,
})
if err != nil {