refactor: Changed some variable names after the new refactoring
This commit is contained in:
parent
806eedf3b9
commit
438c015767
@ -4,6 +4,7 @@ import (
|
|||||||
"errors"
|
"errors"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
|
"git.nicholasnovak.io/nnovak/spatial-db/server"
|
||||||
"git.nicholasnovak.io/nnovak/spatial-db/storage"
|
"git.nicholasnovak.io/nnovak/spatial-db/storage"
|
||||||
"git.nicholasnovak.io/nnovak/spatial-db/world"
|
"git.nicholasnovak.io/nnovak/spatial-db/world"
|
||||||
tea "github.com/charmbracelet/bubbletea"
|
tea "github.com/charmbracelet/bubbletea"
|
||||||
@ -40,7 +41,7 @@ var (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type chunkViewerModel struct {
|
type chunkViewerModel struct {
|
||||||
chunkServer *storage.SimpleServer
|
chunkServer *server.SimpleServer
|
||||||
|
|
||||||
visibleChunkRows int
|
visibleChunkRows int
|
||||||
visibleChunkCols int
|
visibleChunkCols int
|
||||||
@ -127,7 +128,7 @@ func (m chunkViewerModel) View() string {
|
|||||||
return s.String()
|
return s.String()
|
||||||
}
|
}
|
||||||
|
|
||||||
func initChunkViewer(chunkServer *storage.SimpleServer) chunkViewerModel {
|
func initChunkViewer(chunkServer *server.SimpleServer) chunkViewerModel {
|
||||||
var model chunkViewerModel
|
var model chunkViewerModel
|
||||||
|
|
||||||
model.chunkServer = chunkServer
|
model.chunkServer = chunkServer
|
||||||
@ -142,7 +143,7 @@ var VisualizeChunkCommand = &cobra.Command{
|
|||||||
RunE: func(cmd *cobra.Command, args []string) error {
|
RunE: func(cmd *cobra.Command, args []string) error {
|
||||||
|
|
||||||
// Create a new server to read from those files
|
// Create a new server to read from those files
|
||||||
var chunkServer storage.SimpleServer
|
var chunkServer server.SimpleServer
|
||||||
chunkServer.StorageDir = args[0]
|
chunkServer.StorageDir = args[0]
|
||||||
|
|
||||||
prog := tea.NewProgram(initChunkViewer(&chunkServer), tea.WithAltScreen())
|
prog := tea.NewProgram(initChunkViewer(&chunkServer), tea.WithAltScreen())
|
||||||
|
Loading…
Reference in New Issue
Block a user