Skip to content

Commit

Permalink
configs completed documents
Browse files Browse the repository at this point in the history
  • Loading branch information
fadeAce committed Aug 5, 2018
1 parent 4915104 commit 5d0ca7a
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 2 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,7 @@ _-t :_ where the output files targeting at.
_-h :_ for help with command line params

#### get executable file:
[release](https://github.com/fadeAce/EXCELspliter/releases)
[release](https://github.com/fadeAce/EXCELspliter/releases)

#### advanced usage & config file:
for advanced usage and versatile functions , you may get it from `-h` console print helper , which shows a series functions that should be configured in `yaml` file.
3 changes: 3 additions & 0 deletions doc/中文文档.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,6 @@ _-h :_ 获得参数示意帮助

#### 直接运行可执行程序:
[下载](https://github.com/fadeAce/EXCELspliter/releases)

#### 高级使用 & 配置文件:
配置格式使用yaml语言规范,具体规则请在-h中进一步阅读
30 changes: 29 additions & 1 deletion spliter.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,35 @@ func main() {
head := flag.Bool("head", false, "whether to keep head to per file split by length")
sheet := flag.String("s", "sheet1", "what sheet you want to split at")
target := flag.String("t", "./doc", "where the output files targeting at")
config := flag.String("config", "./conf.yaml", "where the config file is at")
config := flag.String("config", "./conf.yaml",
`
# path for taget file
path: ./lzy.xlsx
# whether to involved header for file in
head: true
# length for a splitting
length: 250
# where the output files targeting at
target: ./target
# what sheet you want to split at
sheet: 1
# ---- advanced configs
# output sheets
output:
# output sheet after splitting
sheet: one
default:
# when mastering blank space
blank: false
` ,
)

flag.Parse()

Expand Down

0 comments on commit 5d0ca7a

Please sign in to comment.