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

	do.Name = args[0]
	do.Path = args[1]
	IfExit(files.GetFiles(do))
}
Пример #2
0
func Get(cmd *cobra.Command, args []string) {
	if do.CSV == "" {
		IfExit(ArgCheck(2, "eq", cmd, args))
		do.Name = args[0]
		do.Path = args[1]
	} else {
		do.Name = ""
		do.Path = ""
	}
	IfExit(files.GetFiles(do))
}