diff options
author | Lars Wirzenius <liw@liw.fi> | 2021-04-22 08:27:04 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2021-04-22 08:40:49 +0300 |
commit | 24574aef2299925c10eeb9d20a942f36d1d806d4 (patch) | |
tree | e05affad9e645047bddee6a93ca69e11445f50fa /src/rust.rs | |
parent | 3f68ce4a8e9b295a4b9fc288174f166e229da8b0 (diff) | |
download | bumper-rs-24574aef2299925c10eeb9d20a942f36d1d806d4.tar.gz |
feat: use project's name in git tag template
Diffstat (limited to 'src/rust.rs')
-rw-r--r-- | src/rust.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/rust.rs b/src/rust.rs index 0ffe8c0..2dbe1f7 100644 --- a/src/rust.rs +++ b/src/rust.rs @@ -27,6 +27,10 @@ impl Rust { Err(BumperError::UnknownProjectKind(dirname.to_path_buf())) } + pub fn name(&mut self) -> Result<String, BumperError> { + self.cargo_toml.name() + } + pub fn set_version(&mut self, version: &str) -> Result<String, BumperError> { debug!("parsing Cargo.toml from {}", self.dirname.display()); // debug!("Cargo.toml:\n{:#?}", self.cargo_toml); |