feat: added plugin and profile list commands

This commit is contained in:
David Allen 2025-08-29 23:51:43 -06:00
parent 94887aae9e
commit 947fbba854
Signed by: towk
GPG key ID: 0430CDBE22619155
2 changed files with 176 additions and 3 deletions

View file

@ -177,7 +177,7 @@ var downloadProfileCmd = &cobra.Command{
Send()
for _, profileID := range args {
query = fmt.Sprintf("/profile/%s", profileID)
query = fmt.Sprintf("/profiles/%s", profileID)
res, body, err = c.MakeRequest(client.HTTPEnvelope{
Path: query,
Method: http.MethodGet,
@ -233,7 +233,7 @@ var downloadPluginCmd = &cobra.Command{
Send()
for _, pluginName := range args {
query = fmt.Sprintf("/plugin/%s", pluginName)
query = fmt.Sprintf("/plugins/%s", pluginName)
res, body, err = c.MakeRequest(client.HTTPEnvelope{
Path: query,
Method: http.MethodGet,