change: Removed chunk storage dir from being a global variable, and added some more tests

This commit is contained in:
Nicholas Novak
2023-11-08 16:24:27 -08:00
parent 378d121566
commit 1766cd4f48
6 changed files with 80 additions and 38 deletions

View File

@@ -141,11 +141,9 @@ var VisualizeChunkCommand = &cobra.Command{
Args: cobra.ExactArgs(1),
RunE: func(cmd *cobra.Command, args []string) error {
// Initialize the server in the specified directory
storage.ChunkFileDirectory = args[0]
// Create a new server to read from those files
var chunkServer storage.SimpleServer
chunkServer.StorageDir = args[0]
prog := tea.NewProgram(initChunkViewer(&chunkServer), tea.WithAltScreen())