wip: moving things around to logically group them
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
package cmd
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
var listCmd = &cobra.Command{
|
||||
Use: "list [directory]",
|
||||
Short: "List the contents of a directory",
|
||||
Long: "List the contents of a directory. Only shows one level deep.",
|
||||
Args: cobra.MaximumNArgs(1),
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
|
||||
fileStorePath := os.Getenv("STORAGE_PATH")
|
||||
resolveFileStorePath(fileStorePath)
|
||||
readFilesFromFileStorePath(fileStorePath)
|
||||
|
||||
return nil
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user