bettercap: Index | Files

package caplets

import ""

Package caplets contains functions to enumerate, load and execute caplets.


Package Files

caplet.go doc.go env.go manager.go


const (
    EnvVarName     = "CAPSPATH"
    Suffix         = ".cap"
    InstallArchive = ""
    InstallBase    = "/usr/local/share/bettercap/"


var (
    InstallPathArchive = filepath.Join(InstallBase, "caplets-master")
    InstallPath        = filepath.Join(InstallBase, "caplets")

    LoadPaths = []string{

type Caplet Uses

type Caplet struct {
    Name string
    Path string
    Size int64
    Code []string

func List Uses

func List() []Caplet

func Load Uses

func Load(name string) (error, *Caplet)

func (*Caplet) Eval Uses

func (cap *Caplet) Eval(argv []string, lineCb func(line string) error) error

Package caplets imports 8 packages (graph) and is imported by 5 packages. Updated 2019-01-29. Refresh now. Tools for package owners.