Skip to content

Commit 8738852

Browse files
committed
fix(delimiters): Resolves iisue where user with no BASHDOC_CONFIG_PATH caused a panic
1 parent 7fd4853 commit 8738852

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ edition = "2018"
99
homepage = "https://github.com/dustinknopoff/bashdoc"
1010
repository = "https://github.com/dustinknopoff/bashdoc"
1111
readme = "README.md"
12-
keywords = ["bash", "docs"]
13-
categories = ["command-line-utilities", "parsing"]
12+
keywords = ["bash", "docs", "documentation"]
13+
categories = ["command-line-utilities", "text-processing"]
1414
license = "MIT"
15-
exclude = ["example/**", ".idea/**"]
15+
exclude = ["example/**", ".idea/**", "backdocrc.toml"]
1616

1717
[badges]
1818
maintenance = { status = "experimental" }

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ cd() {
2222

2323
Outputs
2424

25-
![](./example/zshrc.png)
25+
![](https://github.com/dustinknopoff/bashdoc/blob/master/example/zshrc.png)
2626

2727
with lots of color!
2828

src/docs.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,7 @@ impl<'a> Delimiters<'a> {
433433
let mut path = home_dir().unwrap();
434434
path.push(".bashdocrc");
435435
fs::write(path.to_str().unwrap(), content).unwrap();
436+
env::set_var("BASHDOC_CONFIG_PATH", path);
436437
delimiters
437438
}
438439
}

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
//!
2121
//!Outputs
2222
//!
23-
//!![](./example/zshrc.png)
23+
//!![](https://github.com/dustinknopoff/bashdoc/blob/master/example/zshrc.png)
2424
//!
2525
//!with lots of color!
2626
//!

0 commit comments

Comments
 (0)