Compare commits

...

3 commits

Author SHA1 Message Date
ee1b849c1b refactor: replace a match on a boolean with an if
All checks were successful
cargo devel CI / cargo CI (push) Successful in 1m21s
2024-10-16 09:32:23 +02:00
b6ea9e142a chore: fix release scripts
All checks were successful
cargo devel CI / cargo CI (push) Successful in 1m18s
2024-05-24 09:32:24 +02:00
d331c89a79 Merge pull request 'v0.2.0' (#7) from devel into master
Some checks failed
cargo devel CI / cargo CI (push) Has been cancelled
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) GIT_COMMIT_SHA=$(git rev-parse HEAD)
REPO=${PWD##*/} # name of cwd REPO=${PWD##*/} # name of cwd
BODY=" 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 USER=PlexSheep
git tag "v$NEW_VERSION" || echo "could not tag" 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); let mut config = Hedu::new(cli.chars, cli.skip, cli.show_identical, cli.limit);
// FIXME: find a better way to get the file name // FIXME: find a better way to get the file name
// Currently, skipped sources make an extra newline here. // Currently, skipped sources make an extra newline here.
match config.chars { if config.chars {
false => {
println!("{:─^59}", format!(" {} ", cli.data_source[i]));
}
true => {
println!("{:─^80}", format!(" {} ", cli.data_source[i])); println!("{:─^80}", format!(" {} ", cli.data_source[i]));
} } else {
println!("{:─^59}", format!(" {} ", cli.data_source[i]));
} }
match config.dump(&mut **source) { match config.dump(&mut **source) {
Ok(()) => (), Ok(()) => (),