added code to clone package manager

This commit is contained in:
2021-10-01 14:38:13 +04:00
parent be985942b9
commit fc5e834552
10 changed files with 250 additions and 9 deletions

View File

@@ -270,6 +270,15 @@ var CliAction = func(ctx *cli.Context) error {
}
//--------------------------------
if PullPlugin != "" {
err := plugin.DownloadPlugin(PullPlugin)
if err != nil {
fmt.Println(err)
} else {
fmt.Println("Success")
}
}
return nil

View File

@@ -32,6 +32,7 @@ var (
// -- REMOVE ON REGULAR RELEASE --
Generate string
Modulename string
PullPlugin string
//--------------------------------
)
@@ -209,4 +210,11 @@ var AppConfigFlags = []cli.Flag{
Destination: &Modulename,
},
//--------------------------------
&cli.StringFlag{
Name: "PullPlugin",
Aliases: []string{"pp"},
Usage: "Pulls plugin from git repos",
EnvVars: []string{"PULLPLUGIN"},
Destination: &PullPlugin,
},
}