feat: added plugin and profile list commands
This commit is contained in:
parent
94887aae9e
commit
947fbba854
2 changed files with 176 additions and 3 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue