Skip to content

Commit

Permalink
Last second changes for 0.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
marcaddeo committed Jul 10, 2020
1 parent 1d307f8 commit 508e9af
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- Add a subcommand to yank a specific release

### Fixed
- Ensure all cl output formats end with a newline

## [0.7.0] - 2020-02-07
### Changed
- Show all unreleased changes from CHANGELOG.md and the `.cl` directory when
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ way and avoid unnecessary merge conflicts.
$ brew install marcaddeo/clsuite/cl
```

## Debian
### Debian
```
$ curl -LO https://github.com/marcaddeo/cl/releases/download/0.8.0/cl_0.8.0_amd64.deb
$ sudo dpkg -i cl_0.8.0_amd64.deb
Expand Down
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,14 +146,14 @@ fn main() -> Result<()> {
let changes = get_all_changes()?;
let output = match matches.value_of("format").unwrap() {
"json" => {
format!("{}", serde_json::to_string_pretty(&changes)?)
format!("{}\n", serde_json::to_string_pretty(&changes)?)
}
"yaml" | "yml" => {
let mut output = serde_yaml::to_string(&changes)?;
if matches.is_present("no-headings") {
output = output.replace("---\n", "");
}
format!("{}", output.to_string().trim_end())
format!("{}\n", output.to_string().trim_end())
}
"markdown" | "md" => {
let release = ReleaseBuilder::default()
Expand Down

0 comments on commit 508e9af

Please sign in to comment.