102 Commits

Author SHA1 Message Date
Casey Rodarmor
b05a75d168
List groups in source order with just --groups --unsorted () 2024-06-14 20:35:03 +00:00
Casey Rodarmor
18ec9796b9
Improve argument parsing and error handling for submodules () 2024-06-14 02:41:45 +00:00
Greg Shuflin
5ac98c020d
Add is_dependency() function () 2024-06-09 01:17:55 +00:00
Greg Shuflin
4fbd03735a
Refactor evaluator () 2024-06-08 14:42:16 +00:00
Greg Shuflin
38873dcb74
Allow unexporting environment variables () 2024-06-05 20:16:47 +00:00
Casey Rodarmor
db52d95146
Add module_file() and module_directory() functions () 2024-05-29 03:06:30 +00:00
Casey Rodarmor
16a27dba87
List unsorted imported recipes by import depth and offset () 2024-05-26 01:10:06 +00:00
Casey Rodarmor
d7059f8bc8
List modules in source order with --unsorted () 2024-05-25 08:01:37 +00:00
Greg Shuflin
ed0dc20318
Add recipe groups () 2024-05-25 07:32:25 +00:00
Casey Rodarmor
6907847a77
Add predefined constants () 2024-05-18 23:12:11 +00:00
Casey Rodarmor
5a36e685e5
Convert run_shebang into integration test () 2024-01-26 13:05:32 -08:00
Neal Harrington
b66cce0f58
Add --no-deps to skip running recipe dependencies () 2024-01-09 08:40:08 +00:00
crdx
541e78104c
Ignore [private] recipes in just --list () 2024-01-09 08:07:43 +00:00
Casey Rodarmor
1ea5e6ac31
Don't conflate recipes with the same name in different modules () 2024-01-08 13:26:33 -08:00
Casey Rodarmor
87925f293e
Refactor invalid path argument check () 2024-01-01 00:15:41 +00:00
Casey Rodarmor
5c3b72a121
Recipes can be invoked with path syntax () 2023-12-31 22:03:49 +00:00
Casey Rodarmor
e2c0d86bdd
Optional modules and imports () 2023-12-29 12:16:31 -08:00
Casey Rodarmor
3461a7f291
Print submodule recipes in --summary () 2023-12-29 03:06:48 +00:00
Casey Rodarmor
a1bd70a030
Run recipes with working directory set to submodule directory () 2023-12-29 00:55:36 +00:00
Casey Rodarmor
316ea01295
Add modules () 2023-12-28 04:27:15 +00:00
Casey Rodarmor
92bae080ab
List included recipes in load order () 2023-11-25 07:15:41 +00:00
Casey Rodarmor
09a39055ba
Rename Justfile::first → Justfile::default () 2023-11-22 18:33:55 +00:00
Casey Rodarmor
ab16c0493f
Don't default to included recipes () 2023-11-22 18:27:49 +00:00
Hwatwasthat
9415bee16b
Add [confirm] attribute () 2023-11-16 23:51:34 +00:00
Casey Rodarmor
53fec7b449
Fix CI () 2023-11-16 21:51:57 +00:00
Casey Rodarmor
72e5b17242
Placate clippy () 2023-10-09 02:34:05 +00:00
Matt Schulte
63ed00ff78
Add num_cpus() function () 2023-08-02 23:52:21 +00:00
Casey Rodarmor
157862d398
Merge imports () 2022-12-28 04:16:18 +00:00
Cameron Steffen
216df31543
Eliminate lazy_static () 2022-12-15 16:53:21 -08:00
Casey Rodarmor
e7b7897ae2
Placate clippy () 2022-11-23 00:36:23 +00:00
Casey Rodarmor
73777f7183
Add OS Configuration Attributes () 2022-10-31 00:52:03 -07:00
Gökhan Karabulut
8b7640b633
Add [no-exit-message] recipe annotation ()
When a recipe wraps cli tool and the tool exits with a non-zero code,
just adds its own extra exit error message along with the messages
from the tool. Introduce the `[no-exit-message]` attribute to suppress
this additional message.
2022-10-25 16:32:36 -07:00
Greg Shuflin
e445cfb47d
Add skip-comments setting ()
Add a new setting "skip-comments", which defaults to true. If unset,
this causes lines internal to a non-shebang recipe beginning with the
character '#' (including '#!' internal to a non-shebang recipe; that is,
any such instances occurring after the first line of a recipe) to be
treated as comments of the justfile itself. They will not be echoed to
stderr when the recipe executes.
2022-10-05 00:32:30 +00:00
Greg Shuflin
7b7efcabc2
Fix issues reported by nightly clippy () 2022-09-11 08:41:24 +00:00
Casey Rodarmor
01fae9b1e4
Do use super::*; instead of use crate::common::*; () 2022-06-19 04:56:31 +00:00
Casey Rodarmor
c87909c220
Fix a bunch of typos () 2022-05-29 02:07:53 +00:00
Casey Rodarmor
db35a58a61
Skip duplicate recipe arguments () 2022-05-04 05:04:55 +00:00
Casey Rodarmor
52f73db33d
Search for missing recipes in parent directory justfiles () 2022-03-31 05:13:59 +00:00
Casey Rodarmor
27cd8fd554
Remove call to sed in justfile () 2022-01-30 20:16:10 +00:00
Casey Rodarmor
0ae91884e2
Add --dump-format json () 2021-11-17 00:07:48 -08:00
Casey Rodarmor
629c75ff04
Use stable rustfmt instead of nightly () 2021-09-16 13:44:40 +00:00
Casey Rodarmor
27cf2b96df
Use ColorDisplay trait to print objects to the terminal () 2021-07-29 01:06:57 +00:00
Casey Rodarmor
ce0376cfdf
Move subcommand functions into Subcommand () 2021-07-27 00:19:52 +00:00
Casey Rodarmor
1b0fafea75
Add loader and refactor errors ()
This commit adds a `Loader` type, which can be used to load multiple
source strings. This was done to support the work on modules, but
coincidentally enabled consolidating errors, since now `Config::run`
can take a `&Loader`, and in the event of an error, return and `Error`
that borrows from loaded strings. Multiple error types have been
consolidated, and a bunch of ad-hoc error printing was removed.
2021-07-26 01:26:06 -07:00
Casey Rodarmor
77bba3ee0e
Add subsequent dependencies ()
Subsequents are dependencies which run after a recipe instead of prior.
Subsequents to a recipe only run if the recipe succeeds. Subsequents
will run even if a matching invocation already ran as a prior
dependencies.
2021-07-22 00:20:25 -07:00
Oleksii Dorozhkin
8677492d56
Add --fmt subcommand () 2021-06-08 01:01:27 -07:00
Casey Rodarmor
50cd24d37b
Add the --command subcommand () 2021-05-10 03:35:35 +00:00
Casey Rodarmor
7bc9d3986e
Fix bang lexing and placate clippy () 2021-05-07 00:14:38 -07:00
Casey Rodarmor
2abdeb386e
Pass evaluated arguments as positional arguments () 2021-05-02 10:25:43 +00:00
Casey Rodarmor
09b370e10d
Change --eval to print variable value only () 2021-04-25 17:02:57 -07:00