提交 14478c42 编写于 作者: aaronchen2k2k's avatar aaronchen2k2k

support -d without -y

上级 739d62c1
......@@ -21,6 +21,11 @@ func Generate(deflt string, yml string, total int, fieldsToExportStr string, out
vari.InputDir = filepath.Dir(yml) + string(os.PathSeparator)
constant.Total = total
if deflt != "" && yml == "" {
yml = deflt
deflt = ""
}
fieldsToExport := strings.Split(fieldsToExportStr, ",")
rows, colTypes := gen.GenerateForDefinition(deflt, yml, fieldsToExport, total)
content := Print(rows, format, table, colTypes, fieldsToExport)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册