du

package
v0.79.0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cmd = &cobra.Command{
	Use:   "du [<dir>]",
	Short: "Own implemetation of \"du\"",
	Args:  cobra.MaximumNArgs(1),
	Run: func(c *cobra.Command, args []string) {
		dir, err := os.Getwd()
		if err != nil {
			fmt.Println(err)
			os.Exit(1)
		}
		if len(args) == 1 {
			dir = args[0]
		}
		du_utils.RunDiskUsage(!FlagNoHumanReadable, FlagThreshold, dir, FlagMaxDepth, false)
	},
}
View Source
var FlagMaxDepth int
View Source
var FlagNoHumanReadable bool
View Source
var FlagThreshold string

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