mirror of
https://github.com/denisidoro/navi
synced 2025-02-16 20:48:28 +00:00
36 lines
727 B
Bash
Executable file
36 lines
727 B
Bash
Executable file
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
export NAVI_HOME="$(cd "$(dirname "$0")/.." && pwd)"
|
|
source "${NAVI_HOME}/scripts/install"
|
|
|
|
_commit() {
|
|
if [ -n "${DOTFILES:-}" ]; then
|
|
git add --all || true
|
|
dot git commit am || true
|
|
fi
|
|
}
|
|
|
|
cd "$NAVI_HOME"
|
|
|
|
_commit
|
|
log::note "cargo clippy fix..."
|
|
cargo +nightly clippy --fix -Z unstable-options || true
|
|
|
|
_commit
|
|
log::note "cargo fix..."
|
|
cargo fix || true
|
|
|
|
_commit
|
|
log::note "cargo fmt..."
|
|
cargo fmt || true
|
|
|
|
_commit
|
|
log::note "clippy..."
|
|
cargo clippy || true
|
|
|
|
_commit
|
|
log::note "dot code beautify..."
|
|
find scripts -type f | xargs -I% dot code beautify % || true
|
|
dot code beautify "${NAVI_HOME}/tests/core.bash" || true
|
|
dot code beautify "${NAVI_HOME}/tests/run" || true
|