mirror of
https://github.com/bettercap/bettercap
synced 2025-08-20 21:43:18 -07:00
new: new caplets module to manage system caplets
This commit is contained in:
parent
9721c1d6e0
commit
e79ba4952e
6 changed files with 213 additions and 3 deletions
|
@ -5,6 +5,7 @@ import (
|
|||
"fmt"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"sort"
|
||||
"strings"
|
||||
"sync"
|
||||
|
||||
|
@ -38,6 +39,10 @@ func List() []Caplet {
|
|||
}
|
||||
}
|
||||
|
||||
sort.Slice(caplets, func(i, j int) bool {
|
||||
return strings.Compare(caplets[i].Name, caplets[j].Name) == -1
|
||||
})
|
||||
|
||||
return caplets
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue