Skip to content

Commit

Permalink
feat: update tocConfig for skip flag
Browse files Browse the repository at this point in the history
  • Loading branch information
ycd committed Jan 21, 2021
1 parent 22c26c6 commit 9c3bccd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/toc/toc.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ func Run() {
toc.Options.Path = opts.Path
toc.Options.Bulleted = opts.Bulleted
toc.Options.Append = opts.Append
toc.Options.Skip = opts.Skip

toc.logic()
}
Expand Down
1 change: 1 addition & 0 deletions pkg/toc/vars.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ type tocConfig struct {
Path string
Bulleted bool
Append bool
Skip int
}

type toc struct {
Expand Down

0 comments on commit 9c3bccd

Please sign in to comment.