wip: a list command
This commit is contained in:
-15
@@ -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() {
|
||||
if err := rootCmd.Execute(); err != nil {
|
||||
fmt.Fprintln(os.Stderr, err)
|
||||
|
||||
Reference in New Issue
Block a user