build: refractor internal tools.

This commit is contained in:
Alexandre Pujol 2024-03-10 19:07:55 +00:00
parent df21886965
commit b0d52d68f4
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
3 changed files with 29 additions and 5 deletions

View file

@ -11,7 +11,6 @@ import (
"strings"
"github.com/arduino/go-paths-helper"
"github.com/roddhjav/apparmor.d/pkg/util"
)
type Tldr struct {
@ -49,7 +48,7 @@ func (t Tldr) Download() error {
}
pages := []string{"tldr-main/pages/linux", "tldr-main/pages/common"}
return util.ExtratTo(gzPath, t.Dir, pages)
return extratTo(gzPath, t.Dir, pages)
}
// Parse the tldr pages and return a list of scenarios