github.com/wawandco/oxpecker-plugins@v0.1.1/tools/pop/plugin.go (about)

     1  package pop
     2  
     3  import (
     4  	"github.com/wawandco/oxpecker/plugins"
     5  )
     6  
     7  var (
     8  	_ plugins.Plugin = (*Plugin)(nil)
     9  )
    10  
    11  type Plugin struct {
    12  	// subcommands we will invoke depending on parameters
    13  	// these are filled when Receive is called.
    14  	subcommands []plugins.Command
    15  }
    16  
    17  func (p *Plugin) Name() string {
    18  	return "pop"
    19  }
    20  
    21  func (p *Plugin) ParentName() string {
    22  	return ""
    23  }