Skip to content

Commit

Permalink
Bump version to 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sean0x42 committed Jan 30, 2020
1 parent fefd0a8 commit a2806ee
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ Patch notes are automatically extracted from this changelog whenever a tag is
pushed to the GitHub repository. The tag name must match a heading exactly.


## Next Release
## v1.0.0

The first proper release of `markdown-extract`! :tada:

- Add `--regex` flag, which enables the use of regular expressions to search
for section titles.
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "markdown-extract"
description = "Extract sections of a markdown file."
version = "0.1.1"
version = "1.0.0"
authors = ["Sean Bailey <hello@seanbailey.dev>"]
license = "MIT"
repository = "https://github.com/sean0x42/markdown-extract"
Expand Down
18 changes: 10 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,28 +17,30 @@ View the help guide if you like.

```console
$ markdown-extract -h
markdown-extract 0.1.1
Extracts sections of a markdown file
markdown-extract 1.0.0
Extract sections of a markdown file

USAGE:
markdown-extract [FLAGS] <title> <path>
markdown-extract [FLAGS] <pattern> <path>

FLAGS:
-s, --case-sensitive Title is case sensitive
-s, --case-sensitive Treat pattern as case sensitive
-f, --first Only return the first match
-h, --help Prints help information
-i, --ignore-first-heading Do not include the top level section heading
-r, --regex Compile pattern as a regular expression
-V, --version Prints version information

ARGS:
<title> A title to find in section headings
<path> Path to markdown file
<pattern> Pattern to match against section headings
<path> Path to markdown file
```

Then extract matching sections in a markdown file.

```console
$ markdown-extract v0.1.1 CHANGELOG.md
## v0.1.1
$ markdown-extract --fr "^v1" CHANGELOG.md
## v1.0.0

...
```
Expand Down

0 comments on commit a2806ee

Please sign in to comment.