Commit Graph

120 Commits

Author SHA1 Message Date
Lynne Megido a2ce336fe7
use unstable sort 2021-08-25 15:26:41 +10:00
Lynne Megido 0404cff8b7
release v0.3.4 🥳 2021-08-07 00:42:07 +10:00
Lynne Megido ddde6acdd6
ignore_unknown_exts flag, slightly more testing 2021-08-07 00:19:30 +10:00
Lynne Megido b48b8d5a65
new-mime-guess update necessitated minor changes 2021-08-06 23:33:42 +10:00
Lynne Megido c3adaea88c
a minor multitude of meager modifications
- clippy.sh now works if you're a weirdo with spaces in their $HOME path
- a """performance optimisation""" to utils.rs so minor that i would be surprised if it saved the world one microwatt of electricity over my entire lifespan
- cargo update
- removed useless extension_from_path function
2021-08-01 01:44:17 +10:00
Lynne Megido 59c87a3729
minor refactoring to make formats.rs less icky 2021-07-24 16:21:20 +10:00
Lynne Megido 0d034a5c4b
minor logging changes
logs use abbreviated level names:
[D] example
instead of
[DEBUG] example

also, you can now use FIF_LOG instead of RUST_LOG
2021-07-01 18:52:53 +10:00
Lynne Megido e511d215be
minor bash/pwsh output changes
- bash now uses a heredoc to ensure that cheeky filenames containing linebreaks don't escape the echo string
- powershell rename-item now has the verbose flag that i didn't know existed
- there is now a newline between the error and successful output lines
2021-06-18 17:42:16 +10:00
Lynne Megido 4f78d93975
code cleanup 2021-06-18 15:36:05 +10:00
Lynne Megido 3b731a7c61
added --canonical-paths flag
Findings now takes a PathBuf instead of a reference to a Path but there's no noticeable performance change
2021-06-18 15:17:30 +10:00
Lynne Megido d0a6e918cc
block compilation if both backends are enabled 2021-06-14 18:23:49 +10:00
Lynne Megido ec4ad77136
donut repeat yourself 2021-06-14 17:54:11 +10:00
Lynne Megido bd1a2a3e3a
print some more handy info in trace logs 2021-06-14 17:35:47 +10:00
Lynne Megido 0278fe252e
kode kleanup 2021-06-14 17:08:52 +10:00
Lynne Megido 6934dd0b5e
move some commonly used constants into a single module 2021-06-14 17:07:38 +10:00
Lynne Megido 1ecc6e6c6e
semicolonic cleanse 2021-06-14 16:53:41 +10:00
Lynne Megido f8dcdf8a3c
nicer output for `fif -V` and `fif --version` 2021-06-14 16:29:41 +10:00
Lynne Megido 95956f8e30
fixed powershell output format 0u0; 2021-06-13 19:24:21 +10:00
Lynne Megido 8dac4127e9
added text output format
All checks were successful
continuous-integration/drone/push Build is passing
2021-06-07 15:21:47 +10:00
Lynne Megido ca5773c167
only test json if the feature's enabled 0uo 2021-05-10 09:44:03 +10:00
Lynne Megido 8341c4aaf7
rename `dirs` parameter to `dir` 2021-05-09 00:23:03 +10:00
Lynne Megido 81347a7658
mime_extension_lookup takes essence_str directly, videos aliases to video
All checks were successful
continuous-integration/drone/push Build is passing
2021-05-08 00:32:44 +10:00
Lynne Megido 64efb0de27
merge webUI changes, fmt
All checks were successful
continuous-integration/drone/push Build is passing
2021-05-06 09:29:20 +10:00
Lynne Megido 417893cae0
moved ScanError into findings.rs 2021-05-06 09:27:16 +10:00
Lynne Megido 0c0d3f12ea
new and improved rustfmt 2021-05-06 09:06:05 +10:00
Lynne Megido b93e111357
added JSON output 2021-05-06 08:57:42 +10:00
Lynne Megido 774e72423f
test powershell output too 2021-04-30 19:11:24 +10:00
Lynne Megido beebbbbb3b
replace fastrand dep with rand, rustfmt 2021-04-29 17:08:56 +10:00
Lynne Megido a60a19191a
reject lowercase exts bc they don't worky 2021-04-29 17:03:26 +10:00
Lynne Megido 090e4adafe
release v0.3.0!! \0u0/
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
2021-04-28 23:21:27 +10:00
Lynne Megido 4acbcaaa9b
added quietness flag, set default log level to `info` 2021-04-28 22:20:10 +10:00
Lynne Megido 8cca5097d4
writablesln! 2021-04-28 21:39:56 +10:00
Lynne Megido a05af12352
fif now outputs the dir it was run from
- refactor Format function signatures to be more uniform
- add Shell and Bash aliases for Sh
2021-04-28 21:27:06 +10:00
Lynne Megido cb6e111f16
more comprehensive ext sets, link text/xml and application/xml, remove silly Powershell/PowerShell hack 2021-04-28 19:33:42 +10:00
Lynne Megido 4f5914ed75
-E and -X can now take multiple sets 2021-04-28 18:10:34 +10:00
Lynne Megido d5d58e1830
-e and -E can now be used together!
also changelog rewording

-e and -E can now be used together!
2021-04-28 17:17:38 +10:00
Lynne Megido af3d51fcda
cleaned up excluded_extensions 2021-04-28 17:12:34 +10:00
Lynne Megido d578efa7a4
rename videos set to video, multiple exts can be specified with multiple `-e` flags 2021-04-28 16:44:29 +10:00
Lynne Megido 22f1f280d7
added `-X` for excluding sets of extensions. `-X` is to `-E` as `-x` is to `-e`. 2021-04-28 16:16:32 +10:00
Lynne Megido b12c42adbb
publish my fork of mime_guess so it can be used w/ crates.io
crates.io doesn't allow you to use path or git dependencies - you can only depend on published crates. i didn't really want to publish my mime_guess fork, since i don't really see anyone besides myself using it (and i don't really want my fork to "dethrone" the original or whatever), but unless i want `cargo install fif` to give you a version of fif that tells you XML files should have the extension ".asa", i kind of have to do this :c
2021-04-28 15:17:40 +10:00
Lynne Megido fc51f8128a
rustfmt 2021-04-27 20:26:01 +10:00
Lynne Megido 7e3efbed5c
added exclude flag for excluding extensions
All checks were successful
continuous-integration/drone/push Build is passing
2021-04-27 20:25:41 +10:00
Lynne Megido 40bdac274f
minor cleanup 2021-04-26 22:32:43 +10:00
Lynne Megido 889b2e2316
move ExtensionSet stuff into parameters.rs 2021-04-26 22:17:57 +10:00
Lynne Megido 2ceafb7acf
added -v/--verbose 2021-04-26 22:15:14 +10:00
Lynne Megido d6974b4959
writables!, windows newlines, sorted changelog, always quote paths
All checks were successful
continuous-integration/drone/push Build is passing
2021-04-26 20:19:58 +10:00
Lynne Megido 4d553587aa
fixed powershell output
All checks were successful
continuous-integration/drone/push Build is passing
2021-04-20 19:00:56 +10:00
Lynne Megido 255665cae0
output is now sorted 0u0
sort order: files that couldn't be read, then files with no known mimetype, then files with no known extensions, then files with the wrong extension
2021-04-20 18:52:49 +10:00
Lynne Megido b877d7d65e
xdg-mime no longer uses git version 0u0 2021-04-20 17:26:31 +10:00
Lynne Megido dc2ac7b002
reformatting/reordering 2021-04-20 15:20:10 +10:00