fish conf dir, justfile
This commit is contained in:
14
justfile
Normal file
14
justfile
Normal file
@@ -0,0 +1,14 @@
|
||||
default:
|
||||
@just --list
|
||||
|
||||
[private]
|
||||
changed-ruby-files:
|
||||
@git diff --name-only | \
|
||||
(grep -v 'db/schema.rb' || true) | \
|
||||
(grep -E '(\.(rb|rake|erb)|Rakefile)$' || true)
|
||||
|
||||
format-changed:
|
||||
just changed-ruby-files | xargs -I{} bash -c "stree format {} > {}.tmp && mv {}.tmp {}"
|
||||
|
||||
format-all:
|
||||
find . -name '*.rb' -type f -exec sh -c 'stree format "$1" > "$1.tmp" && mv "$1.tmp" "$1"' sh {} \;
|
||||
Reference in New Issue
Block a user