refactor: imports

This commit is contained in:
l3uddz
2022-04-01 20:42:05 +01:00
parent a73b07a041
commit 19a5e73c19
40 changed files with 91 additions and 53 deletions

View File

@@ -3,10 +3,11 @@
package main
import (
"github.com/kirsle/configdir"
"golang.org/x/sys/unix"
"os"
"path/filepath"
"github.com/kirsle/configdir"
"golang.org/x/sys/unix"
)
func defaultConfigPath() string {

View File

@@ -3,9 +3,10 @@ package main
import (
"errors"
"fmt"
"github.com/kirsle/configdir"
"os"
"path/filepath"
"github.com/kirsle/configdir"
)
func defaultConfigPath() string {

View File

@@ -3,6 +3,12 @@ package main
import (
"context"
"fmt"
"io"
"os"
"path/filepath"
"strings"
"time"
"github.com/alecthomas/kong"
"github.com/goccy/go-yaml"
"github.com/l3uddz/nabarr"
@@ -15,11 +21,6 @@ import (
"github.com/natefinch/lumberjack"
"github.com/rs/zerolog"
"github.com/rs/zerolog/log"
"io"
"os"
"path/filepath"
"strings"
"time"
)
type config struct {

View File

@@ -2,13 +2,14 @@ package pvr
import (
"errors"
"strings"
"github.com/l3uddz/nabarr"
"github.com/l3uddz/nabarr/cache"
"github.com/l3uddz/nabarr/media"
"github.com/l3uddz/nabarr/radarr"
"github.com/l3uddz/nabarr/sonarr"
"github.com/lefelys/state"
"strings"
)
type PVR interface {

View File

@@ -1,10 +1,11 @@
package main
import (
"github.com/rs/zerolog/log"
"os"
"os/signal"
"syscall"
"github.com/rs/zerolog/log"
)
func waitShutdown() {

View File

@@ -3,11 +3,12 @@ package main
import (
"bufio"
"fmt"
"os"
"github.com/alecthomas/kong"
"github.com/blang/semver"
"github.com/l3uddz/nabarr/build"
"github.com/rhysd/go-github-selfupdate/selfupdate"
"os"
)
type updateFlag string

View File

@@ -2,6 +2,7 @@ package main
import (
"fmt"
"github.com/alecthomas/kong"
)