Ejemplo n.º 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))
}
Ejemplo n.º 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))
}