MCPcopy Index your code
hub / github.com/devspace-sh/devspace / Remove

Method Remove

pkg/devspace/plugin/plugin.go:216–230  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

214}
215
216func (c *client) Remove(name string) error {
217 path, metadata, err := c.GetByName(name)
218 if err != nil {
219 return err
220 } else if metadata == nil {
221 return fmt.Errorf("couldn't find plugin %s", name)
222 }
223
224 pluginFolder, err := c.PluginFolder()
225 if err != nil {
226 return err
227 }
228
229 return os.RemoveAll(filepath.Join(pluginFolder, Encode(path)))
230}
231
232func (c *client) List() ([]Metadata, error) {
233 pluginFolder, err := c.PluginFolder()

Callers

nothing calls this directly

Calls 4

GetByNameMethod · 0.95
PluginFolderMethod · 0.95
EncodeFunction · 0.85
ErrorfMethod · 0.45

Tested by

no test coverage detected