list

package
v0.9.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 4, 2026 License: BSD-3-Clause Imports: 7 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL