🚚 Get rid of internal package
I don't need to hide anything
This commit is contained in:
parent
a9fe6f30fc
commit
5282c1fd26
4 changed files with 6 additions and 6 deletions
|
|
@ -18,7 +18,7 @@ tasks:
|
|||
sources:
|
||||
- cmd/convids/**/*.go
|
||||
- convids/**/*.go
|
||||
- internal/cli/*.go
|
||||
- cli/err/*go
|
||||
generates:
|
||||
- build/convids
|
||||
cmds:
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
package cli
|
||||
package err
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
|
@ -4,8 +4,8 @@ import (
|
|||
"fmt"
|
||||
"os"
|
||||
|
||||
e "codeberg.org/danjones000/utils/cli/err"
|
||||
"codeberg.org/danjones000/utils/convids"
|
||||
"codeberg.org/danjones000/utils/internal/cli"
|
||||
"github.com/spf13/pflag"
|
||||
)
|
||||
|
||||
|
|
@ -26,11 +26,11 @@ func main() {
|
|||
}
|
||||
|
||||
data, err := convids.NewData(dataPath)
|
||||
cli.HandleErr(err)
|
||||
e.HandleErr(err)
|
||||
|
||||
convids.WalkFiles(data, false, false, func(s *convids.Show, path string) error {
|
||||
fmt.Printf("%s for %+v\n", path, s)
|
||||
return nil
|
||||
})
|
||||
fmt.Println("\nDone!")
|
||||
fmt.Println("Done!")
|
||||
}
|
||||
|
|
|
|||
|
|
@ -71,7 +71,7 @@ func (d *Data) AllShows(silent bool) iter.Seq[*Show] {
|
|||
continue
|
||||
}
|
||||
if !silent {
|
||||
fmt.Println("\nChecking", show, "shows\n")
|
||||
fmt.Println("Checking", show, "shows\n")
|
||||
}
|
||||
for s := range sh.All() {
|
||||
if s == nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue