コード例 #1
0
ファイル: files.go プロジェクト: slowtokyo/eris-cli
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
ファイル: files.go プロジェクト: kustomzone/eris-cli
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))
}