Пример #1
0
func InspectData(cmd *cobra.Command, args []string) {
	IfExit(ArgCheck(1, "ge", cmd, args))

	if len(args) == 1 {
		args = append(args, "all")
	}

	do.Name = args[0]
	do.Path = args[1]
	IfExit(data.InspectData(do))
}
Пример #2
0
func InspectData(cmd *cobra.Command, args []string) {
	IfExit(ArgCheck(1, "ge", cmd, args))

	do.Name = args[0]
	if len(args) == 1 {
		do.Operations.Args = []string{"all"}
	} else {
		do.Operations.Args = []string{args[1]}
	}

	IfExit(data.InspectData(do))
}