Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cmd = &cobra.Command{ Use: "df", Short: "System's \"df\" filtered for /dev devices and human readable", Args: cobra.NoArgs, Run: func(c *cobra.Command, args []string) { out, err := exec_utils.ExecStr("df", "-h") if err != nil { log.Fatalln(err) } lines := strings.Split(out, "\n") for i, line := range lines { if strings.HasPrefix(line, "/dev") || i == 0 { fmt.Println(line) } } }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.