mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-11-24 08:47:04 +08:00
优化工作路径拼接方法
This commit is contained in:
@@ -72,6 +72,13 @@ var (
|
||||
ebookConvert = "ebook-convert"
|
||||
)
|
||||
|
||||
func CheckConvertCommand() error {
|
||||
args := []string{ "--version" }
|
||||
cmd := exec.Command(ebookConvert, args...)
|
||||
|
||||
return cmd.Run()
|
||||
}
|
||||
|
||||
// 接口文档 https://manual.calibre-ebook.com/generated/en/ebook-convert.html#table-of-contents
|
||||
//根据json配置文件,创建文档转化对象
|
||||
func NewConverter(configFile string, debug ...bool) (converter *Converter, err error) {
|
||||
|
||||
Reference in New Issue
Block a user