mirror of
https://github.com/rsteube/carapace-bin.git
synced 2025-05-14 11:44:32 +00:00
21 lines
589 B
Go
21 lines
589 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/rsteube/carapace"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var count_objectsCmd = &cobra.Command{
|
|
Use: "count-objects",
|
|
Short: "Count unpacked number of objects and their disk consumption",
|
|
Run: func(cmd *cobra.Command, args []string) {},
|
|
GroupID: groups[group_interrogator].ID,
|
|
}
|
|
|
|
func init() {
|
|
carapace.Gen(count_objectsCmd).Standalone()
|
|
count_objectsCmd.Flags().BoolP("human-readable", "H", false, "print sizes in human readable format")
|
|
count_objectsCmd.Flags().BoolP("verbose", "v", false, "be verbose")
|
|
rootCmd.AddCommand(count_objectsCmd)
|
|
}
|