mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 10:46:57 -07:00
new: modules enabled by default can now be controlled with the -autostart argument
This commit is contained in:
parent
72ac7e63fc
commit
5727fa3c56
3 changed files with 17 additions and 5 deletions
11
core/core.go
11
core/core.go
|
@ -41,6 +41,17 @@ func UniqueInts(a []int, sorted bool) []int {
|
|||
return uniq
|
||||
}
|
||||
|
||||
func CommaSplit(csv string) []string {
|
||||
filtered := make([]string, 0)
|
||||
for _, part := range strings.Split(csv, ",") {
|
||||
part = Trim(part)
|
||||
if part != "" {
|
||||
filtered = append(filtered, part)
|
||||
}
|
||||
}
|
||||
return filtered
|
||||
}
|
||||
|
||||
func ExecSilent(executable string, args []string) (string, error) {
|
||||
path, err := exec.LookPath(executable)
|
||||
if err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue