🚚 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:
|
sources:
|
||||||
- cmd/convids/**/*.go
|
- cmd/convids/**/*.go
|
||||||
- convids/**/*.go
|
- convids/**/*.go
|
||||||
- internal/cli/*.go
|
- cli/err/*go
|
||||||
generates:
|
generates:
|
||||||
- build/convids
|
- build/convids
|
||||||
cmds:
|
cmds:
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
package cli
|
package err
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
@ -4,8 +4,8 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
|
e "codeberg.org/danjones000/utils/cli/err"
|
||||||
"codeberg.org/danjones000/utils/convids"
|
"codeberg.org/danjones000/utils/convids"
|
||||||
"codeberg.org/danjones000/utils/internal/cli"
|
|
||||||
"github.com/spf13/pflag"
|
"github.com/spf13/pflag"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
@ -26,11 +26,11 @@ func main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
data, err := convids.NewData(dataPath)
|
data, err := convids.NewData(dataPath)
|
||||||
cli.HandleErr(err)
|
e.HandleErr(err)
|
||||||
|
|
||||||
convids.WalkFiles(data, false, false, func(s *convids.Show, path string) error {
|
convids.WalkFiles(data, false, false, func(s *convids.Show, path string) error {
|
||||||
fmt.Printf("%s for %+v\n", path, s)
|
fmt.Printf("%s for %+v\n", path, s)
|
||||||
return nil
|
return nil
|
||||||
})
|
})
|
||||||
fmt.Println("\nDone!")
|
fmt.Println("Done!")
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -71,7 +71,7 @@ func (d *Data) AllShows(silent bool) iter.Seq[*Show] {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if !silent {
|
if !silent {
|
||||||
fmt.Println("\nChecking", show, "shows\n")
|
fmt.Println("Checking", show, "shows\n")
|
||||||
}
|
}
|
||||||
for s := range sh.All() {
|
for s := range sh.All() {
|
||||||
if s == nil {
|
if s == nil {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue