Compare commits

...

3 Commits

Author SHA1 Message Date
Christoph J. Scherr ee1b849c1b refactor: replace a match on a boolean with an if
cargo devel CI / cargo CI (push) Successful in 1m21s Details
2024-10-16 09:32:23 +02:00
Christoph J. Scherr b6ea9e142a chore: fix release scripts
cargo devel CI / cargo CI (push) Successful in 1m18s Details
2024-05-24 09:32:24 +02:00
Christoph J. Scherr d331c89a79 Merge pull request 'v0.2.0' (#7) from devel into master
cargo devel CI / cargo CI (push) Has been cancelled Details
Reviewed-on: #7
2024-05-24 09:31:16 +02:00
2 changed files with 5 additions and 8 deletions

View File

@ -4,7 +4,7 @@ NEW_VERSION=$(cat Cargo.toml | rg '^\s*version\s*=\s*"([^"]*)"\s*$' -or '$1')
GIT_COMMIT_SHA=$(git rev-parse HEAD)
REPO=${PWD##*/} # name of cwd
BODY="
$(git log $(git describe --tags --abbrev=0)..HEAD --pretty="- %s" --oneline --decorate)
$(git log $(git describe --tags --abbrev=0)..HEAD --pretty="- %s" --oneline --no-decorate)
"
USER=PlexSheep
git tag "v$NEW_VERSION" || echo "could not tag"

View File

@ -99,13 +99,10 @@ fn main() {
let mut config = Hedu::new(cli.chars, cli.skip, cli.show_identical, cli.limit);
// FIXME: find a better way to get the file name
// Currently, skipped sources make an extra newline here.
match config.chars {
false => {
println!("{:─^59}", format!(" {} ", cli.data_source[i]));
}
true => {
println!("{:─^80}", format!(" {} ", cli.data_source[i]));
}
if config.chars {
println!("{:─^80}", format!(" {} ", cli.data_source[i]));
} else {
println!("{:─^59}", format!(" {} ", cli.data_source[i]));
}
match config.dump(&mut **source) {
Ok(()) => (),