refactor: updated cmd request and added plugin info

This commit is contained in:
David Allen 2025-08-30 00:04:17 -06:00
parent 4d96010199
commit 0f6f8957f6
Signed by: towk
GPG key ID: 0430CDBE22619155
3 changed files with 72 additions and 4 deletions

View file

@ -214,7 +214,7 @@ var downloadPluginCmd = &cobra.Command{
makeshift download plugin smd jinja2
`,
Args: cobra.ExactArgs(1),
Short: "Download a plugin",
Short: "Download a raw plugin",
Run: func(cmd *cobra.Command, args []string) {
var (
host, _ = cmd.Flags().GetString("host")
@ -233,7 +233,7 @@ var downloadPluginCmd = &cobra.Command{
Send()
for _, pluginName := range args {
query = fmt.Sprintf("/plugins/%s", pluginName)
query = fmt.Sprintf("/plugins/%s/raw", pluginName)
res, body, err = c.MakeRequest(client.HTTPEnvelope{
Path: query,
Method: http.MethodGet,