Commit Graph

32 Commits

Author SHA1 Message Date
Félix Saparelli f60a623a44 Add --env and --workdir options 2022-04-15 15:45:17 +12:00
Félix Saparelli 84aac2243c Add --project-origin override 2022-04-15 15:45:17 +12:00
Félix Saparelli 00e9b17043 Final change to --debounce default: down to 50ms
Closes #168
2022-04-15 15:45:17 +12:00
Félix Saparelli d4acb9d719 Add notice for change to $SHELL-as-default in 2.0
Ref #210
2022-04-15 15:45:17 +12:00
Félix Saparelli 9b866ad9e8
Remove default signal from clap, leave it for parse
Fixes #239
2022-01-24 20:52:29 +13:00
Félix Saparelli 2a1a386208
Rename (with compat alias) --no-ignore to --no-project-ignore 2022-01-16 17:34:06 +13:00
Félix Saparelli 00def9e19a
Use pretty logging at high -vvvv 2022-01-15 15:14:25 +13:00
Félix Saparelli d0bb14f39c
Maintain the naming of the env vars 2021-12-29 21:36:42 +13:00
Félix Saparelli 9ed3645088
Add environment vars support 2021-12-29 20:55:09 +13:00
Félix Saparelli 4dbb924977
Add default ignores 2021-12-29 20:14:29 +13:00
Félix Saparelli a00912f17f
Implement --no-meta for default filterer 2021-12-29 19:29:45 +13:00
Félix Saparelli e2f6fe147a
Support no-{global,project,vcs}-ignore 2021-12-29 19:19:43 +13:00
Félix Saparelli be4b184cd0
Revise --no-ignore and --no-vcs-ignore help text for clarity and conciseness 2021-12-29 19:10:17 +13:00
Félix Saparelli ea3f09408f
Fix new option name 2021-12-29 18:53:47 +13:00
Félix Saparelli c45840b657
Load global and -F filter files 2021-12-29 18:39:31 +13:00
Félix Saparelli 08a1e7cc67
Hook up --notify 2021-12-24 19:06:01 +13:00
Félix Saparelli 6cd2252b6c
Modify options available if tagged filterer enabled 2021-12-24 03:56:03 +13:00
Félix Saparelli bb212b413f
Process --no-process-group 2021-12-24 03:47:15 +13:00
Félix Saparelli a46cfba1a2
Pre-add support for logical grouping of options in help
Will work once we switch to clap3
2021-11-22 21:24:59 +13:00
Félix Saparelli a1fce1b06e
Replace eyre with miette
and upgrade it to 3.2.0
2021-10-09 18:43:51 +13:00
Félix Saparelli 7d492fa677
Hide --watch-when-idle from help 2021-08-24 22:56:15 +12:00
Félix Saparelli 70e8a4dff2
Fix cli tests 2021-08-24 22:53:44 +12:00
Félix Saparelli 58b37940b8 Implement most existing options and mark the rest 2021-08-24 22:46:16 +12:00
Félix Saparelli e939f97c90
Move config creation out of arg parsing, and start on using libv2 2021-08-24 20:23:37 +12:00
Félix Saparelli d54d74854e
Add experimental --notify option
See #139
2021-07-31 05:11:42 +12:00
Félix Saparelli a3173194a1
Implement cli's own wrapper handler
That will let us hook in watchexec-cli specific stuff
2021-07-31 04:24:05 +12:00
Félix Saparelli 66caedf978
Add --no-process-group flag 2021-07-22 00:56:35 +12:00
Félix Saparelli f5a92220c9
Drop debounce to 100ms (#168) 2021-07-21 23:44:24 +12:00
Félix Saparelli 07974e0d14
Implement @argfile argument parsing (#145) 2021-07-17 02:10:03 +12:00
Félix Saparelli 54ac2e9ae0
Use color-eyre for application errors rather than the library's error type 2021-07-17 01:33:04 +12:00
Félix Saparelli eafbc9a77b
Clean up due to removing pubs 2021-05-10 22:44:35 +12:00
Félix Saparelli 1f3f4ada35 Split into two crates: lib and cli
That has a number of advantages:

- #193 the build.rs is only run for the CLI, so the Windows manifest is
  not embedded in the library anymore, opening it up for downstreams.

- it sets the stage for decoupling the version numbers of the CLI and
  library, to have the library increase its major more often, while the
  CLI retains compatibility further… that is, to have both follow semver

- it removes the CLI-only dependencies from the library

- it makes compilation a bit faster as compiling the library and the
  CLI's other dependencies can happen in parallel

One major disadvantage:

- installing via cargo changes from watchexec to watchexec-cli. Most
  installs are from prebuilt and from packages, but that's still a
  potential stumble.

And of course, the CLI APIs in the library are gone (they were already
deprecated, though).

We also take this opportunity to get rid of the clear_screen code and
use our new clearscreen library. #99 #171 #185
2021-05-01 03:27:17 +12:00