added new module

This commit is contained in:
2023-02-14 20:33:30 +00:00
parent e1debe8f53
commit c7a665fdc8
21 changed files with 714 additions and 721 deletions

View File

@@ -1,7 +1,7 @@
package plugin
import (
"git.sr.ht/~akilan1999/p2p-rendering-computation/config"
"github.com/Akilan1999/p2p-rendering-computation/config"
"github.com/go-git/go-git/v5"
"net/url"
"os"
@@ -29,7 +29,7 @@ func DownloadPlugin(pluginurl string) error {
return err
}
// clones a repo and stores it at the plugin directory
_, err = git.PlainClone(config.PluginPath + "/" + folder, false, &git.CloneOptions{
_, err = git.PlainClone(config.PluginPath+"/"+folder, false, &git.CloneOptions{
URL: pluginurl,
Progress: os.Stdout,
})
@@ -38,7 +38,6 @@ func DownloadPlugin(pluginurl string) error {
return err
}
return nil
}
@@ -60,6 +59,6 @@ func DeletePlugin(pluginname string) error {
if err != nil {
return err
}
return nil
}
}