Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Command = &cobra.Command{ Use: "List", Short: "list all embedded files to stdout", Long: `errors logged to stderr with status 1.`, Run: func(cmd *cobra.Command, args []string) { clogFs := config.CoreFs() c := crayon.Color() err := fs.WalkDir(clogFs, ".", func(path string, d fs.DirEntry, err error) error { if err != nil { slog.Error(err.Error()) } clogFsStat, _ := fs.Stat(clogFs, path) if clogFsStat.IsDir() { fmt.Printf("%v/\n", c.I(path)) } else { fmt.Printf("%v\n", path) } return nil }) if err != nil { slog.Error("Cannot List embedded files" + err.Error()) } }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.