fix #9

Merged
abs3nt merged 2 commits from fix into main 2023-02-09 15:30:18 +00:00
39 changed files with 73 additions and 42 deletions
Showing only changes of commit b9b8b4e9f0 - Show all commits

8
.idea/.gitignore vendored Normal file
View File

@ -0,0 +1,8 @@
# Default ignored files
/shelf/
/workspace.xml
# Editor-based HTTP Client requests
/httpRequests/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml

9
.idea/gospt.iml Normal file
View File

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="WEB_MODULE" version="4">
<component name="Go" enabled="true" />
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

8
.idea/modules.xml Normal file
View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/gospt.iml" filepath="$PROJECT_DIR$/.idea/gospt.iml" />
</modules>
</component>
</project>

6
.idea/vcs.xml Normal file
View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>

2
go.mod
View File

@ -1,4 +1,4 @@
module gospt module gitea.asdf.cafe/abs3nt/gospt
go 1.19 go 1.19

View File

@ -1,7 +1,7 @@
package main package main
import ( import (
"gospt/src/cmd" "gitea.asdf.cafe/abs3nt/gospt/src/cmd"
) )
func main() { func main() {

View File

@ -10,8 +10,8 @@ import (
"os/exec" "os/exec"
"path/filepath" "path/filepath"
"gospt/src/config" "gitea.asdf.cafe/abs3nt/gospt/src/config"
"gospt/src/gctx" "gitea.asdf.cafe/abs3nt/gospt/src/gctx"
"github.com/zmb3/spotify/v2" "github.com/zmb3/spotify/v2"
spotifyauth "github.com/zmb3/spotify/v2/auth" spotifyauth "github.com/zmb3/spotify/v2/auth"

View File

@ -1,7 +1,7 @@
package cmd package cmd
import ( import (
"gospt/src/commands" "gitea.asdf.cafe/abs3nt/gospt/src/commands"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,7 +1,7 @@
package cmd package cmd
import ( import (
"gospt/src/commands" "gitea.asdf.cafe/abs3nt/gospt/src/commands"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,7 +1,7 @@
package cmd package cmd
import ( import (
"gospt/src/commands" "gitea.asdf.cafe/abs3nt/gospt/src/commands"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -4,7 +4,7 @@ import (
"fmt" "fmt"
"os" "os"
"gospt/src/commands" "gitea.asdf.cafe/abs3nt/gospt/src/commands"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -4,7 +4,7 @@ import (
"fmt" "fmt"
"os" "os"
"gospt/src/commands" "gitea.asdf.cafe/abs3nt/gospt/src/commands"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,7 +1,7 @@
package cmd package cmd
import ( import (
"gospt/src/commands" "gitea.asdf.cafe/abs3nt/gospt/src/commands"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -3,7 +3,7 @@ package cmd
import ( import (
"strconv" "strconv"
"gospt/src/commands" "gitea.asdf.cafe/abs3nt/gospt/src/commands"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,7 +1,7 @@
package cmd package cmd
import ( import (
"gospt/src/commands" "gitea.asdf.cafe/abs3nt/gospt/src/commands"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,7 +1,7 @@
package cmd package cmd
import ( import (
"gospt/src/commands" "gitea.asdf.cafe/abs3nt/gospt/src/commands"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,7 +1,7 @@
package cmd package cmd
import ( import (
"gospt/src/commands" "gitea.asdf.cafe/abs3nt/gospt/src/commands"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,7 +1,7 @@
package cmd package cmd
import ( import (
"gospt/src/commands" "gitea.asdf.cafe/abs3nt/gospt/src/commands"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,7 +1,7 @@
package cmd package cmd
import ( import (
"gospt/src/commands" "gitea.asdf.cafe/abs3nt/gospt/src/commands"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,7 +1,7 @@
package cmd package cmd
import ( import (
"gospt/src/commands" "gitea.asdf.cafe/abs3nt/gospt/src/commands"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,7 +1,7 @@
package cmd package cmd
import ( import (
"gospt/src/commands" "gitea.asdf.cafe/abs3nt/gospt/src/commands"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,7 +1,7 @@
package cmd package cmd
import ( import (
"gospt/src/commands" "gitea.asdf.cafe/abs3nt/gospt/src/commands"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -8,9 +8,9 @@ import (
"path/filepath" "path/filepath"
"strings" "strings"
"gospt/src/auth" "gitea.asdf.cafe/abs3nt/gospt/src/auth"
"gospt/src/config" "gitea.asdf.cafe/abs3nt/gospt/src/config"
"gospt/src/gctx" "gitea.asdf.cafe/abs3nt/gospt/src/gctx"
"github.com/cristalhq/aconfig" "github.com/cristalhq/aconfig"
"github.com/cristalhq/aconfig/aconfigyaml" "github.com/cristalhq/aconfig/aconfigyaml"

View File

@ -3,7 +3,7 @@ package cmd
import ( import (
"strconv" "strconv"
"gospt/src/commands" "gitea.asdf.cafe/abs3nt/gospt/src/commands"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,7 +1,7 @@
package cmd package cmd
import ( import (
"gospt/src/tui" "gitea.asdf.cafe/abs3nt/gospt/src/tui"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,7 +1,7 @@
package cmd package cmd
import ( import (
"gospt/src/commands" "gitea.asdf.cafe/abs3nt/gospt/src/commands"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,7 +1,7 @@
package cmd package cmd
import ( import (
"gospt/src/commands" "gitea.asdf.cafe/abs3nt/gospt/src/commands"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,7 +1,7 @@
package cmd package cmd
import ( import (
"gospt/src/commands" "gitea.asdf.cafe/abs3nt/gospt/src/commands"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -4,8 +4,8 @@ import (
"os" "os"
"path/filepath" "path/filepath"
"gospt/src/commands" "gitea.asdf.cafe/abs3nt/gospt/src/commands"
"gospt/src/tui" "gitea.asdf.cafe/abs3nt/gospt/src/tui"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -4,8 +4,8 @@ import (
"os" "os"
"path/filepath" "path/filepath"
"gospt/src/commands" "gitea.asdf.cafe/abs3nt/gospt/src/commands"
"gospt/src/tui" "gitea.asdf.cafe/abs3nt/gospt/src/tui"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,7 +1,7 @@
package cmd package cmd
import ( import (
"gospt/src/commands" "gitea.asdf.cafe/abs3nt/gospt/src/commands"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,7 +1,7 @@
package cmd package cmd
import ( import (
"gospt/src/commands" "gitea.asdf.cafe/abs3nt/gospt/src/commands"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -3,7 +3,7 @@ package cmd
import ( import (
"strconv" "strconv"
"gospt/src/commands" "gitea.asdf.cafe/abs3nt/gospt/src/commands"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -14,7 +14,7 @@ import (
"strings" "strings"
"time" "time"
"gospt/src/gctx" "gitea.asdf.cafe/abs3nt/gospt/src/gctx"
"github.com/zmb3/spotify/v2" "github.com/zmb3/spotify/v2"
_ "modernc.org/sqlite" _ "modernc.org/sqlite"

View File

@ -1,8 +1,8 @@
package tui package tui
import ( import (
"gospt/src/commands" "gitea.asdf.cafe/abs3nt/gospt/src/commands"
"gospt/src/gctx" "gitea.asdf.cafe/abs3nt/gospt/src/gctx"
"github.com/zmb3/spotify/v2" "github.com/zmb3/spotify/v2"
) )

View File

@ -4,7 +4,7 @@ import (
"fmt" "fmt"
"time" "time"
"gospt/src/commands" "gitea.asdf.cafe/abs3nt/gospt/src/commands"
"github.com/charmbracelet/bubbles/list" "github.com/charmbracelet/bubbles/list"
) )

View File

@ -5,7 +5,7 @@ import (
"strings" "strings"
"time" "time"
"gospt/src/gctx" "gitea.asdf.cafe/abs3nt/gospt/src/gctx"
"github.com/atotto/clipboard" "github.com/atotto/clipboard"
"github.com/charmbracelet/bubbles/key" "github.com/charmbracelet/bubbles/key"

View File

@ -3,7 +3,7 @@ package tui
import ( import (
"fmt" "fmt"
"gospt/src/gctx" "gitea.asdf.cafe/abs3nt/gospt/src/gctx"
tea "github.com/charmbracelet/bubbletea" tea "github.com/charmbracelet/bubbletea"
"github.com/zmb3/spotify/v2" "github.com/zmb3/spotify/v2"

View File

@ -5,8 +5,8 @@ import (
"sync" "sync"
"time" "time"
"gospt/src/commands" "gitea.asdf.cafe/abs3nt/gospt/src/commands"
"gospt/src/gctx" "gitea.asdf.cafe/abs3nt/gospt/src/gctx"
"github.com/charmbracelet/bubbles/list" "github.com/charmbracelet/bubbles/list"
"github.com/zmb3/spotify/v2" "github.com/zmb3/spotify/v2"