-
-
Notifications
You must be signed in to change notification settings - Fork 774
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1067 from tmccombs/clap-derive
Clap derive
- Loading branch information
Showing
15 changed files
with
1,081 additions
and
1,134 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
target/ | ||
/autocomplete/ | ||
**/*.rs.bk |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
PROFILE=release | ||
EXE=target/$(PROFILE)/fd | ||
prefix=/usr/local | ||
bindir=$(prefix)/bin | ||
datadir=$(prefix)/share | ||
exe_name=fd | ||
|
||
$(EXE): Cargo.toml src/**/*.rs | ||
cargo build --profile $(PROFILE) | ||
|
||
.PHONY: completions | ||
completions: autocomplete/fd.bash autocomplete/fd.fish autocomplete/fd.ps1 autocomplete/_fd | ||
|
||
comp_dir=@mkdir -p autocomplete | ||
|
||
autocomplete/fd.bash: $(EXE) | ||
$(comp_dir) | ||
$(EXE) --gen-completions bash > $@ | ||
|
||
autocomplete/fd.fish: $(EXE) | ||
$(comp_dir) | ||
$(EXE) --gen-completions fish > $@ | ||
|
||
autocomplete/fd.ps1: $(EXE) | ||
$(comp_dir) | ||
$(EXE) --gen-completions powershell > $@ | ||
|
||
autocomplete/_fd: contrib/completion/_fd | ||
$(comp_dir) | ||
cp $< $@ | ||
|
||
install: $(EXE) completions | ||
install -Dm755 $(EXE) $(DESTDIR)$(bindir)/fd | ||
install -Dm644 autocomplete/fd.bash $(DESTDIR)/$(datadir)/bash-completion/completions/$(exe_name) | ||
install -Dm644 autocomplete/fd.fish $(DESTDIR)/$(datadir)/fish/vendor_completions.d/$(exe_name).fish | ||
install -Dm644 autocomplete/_fd $(DESTDIR)/$(datadir)/zsh/site-functions/_$(exe_name) | ||
install -Dm644 doc/fd.1 $(DESTDIR)/$(datadir)/man/man1/$(exe_name).1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
msrv = "1.57.0" | ||
msrv = "1.60.0" |
Oops, something went wrong.