wip: a list command

This commit is contained in:
2026-05-12 21:05:34 -06:00
parent 66fc781260
commit 8f03b92bc4
-15
View File
@@ -19,21 +19,6 @@ var rootCmd = &cobra.Command{
}, },
} }
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
},
}
func Execute() { func Execute() {
if err := rootCmd.Execute(); err != nil { if err := rootCmd.Execute(); err != nil {
fmt.Fprintln(os.Stderr, err) fmt.Fprintln(os.Stderr, err)