96 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
1ce7a05bef
Add [positional-arguments] attribute () 2024-06-13 19:35:14 +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
af249dbce1
Write shebang recipes to $XDG_RUNTIME_DIR () 2024-06-05 19:03:14 +00:00
Greg Shuflin
77a6e02964
Add --timestamp-format () 2024-05-29 09:28:45 +00:00
Greg Shuflin
d14aae1c29
Print recipe command timestamps with --timestamps () 2024-05-29 03:31:55 +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
Greg Shuflin
dcbd07f9d0
Add [doc] attribute to set and suppress documentation comments () 2024-05-25 09:26:04 +00:00
Greg Shuflin
ed0dc20318
Add recipe groups () 2024-05-25 07:32:25 +00:00
Casey Rodarmor
d3492e6ffe
Use cache dir for temporary files ()
Sometimes `/tmp` is mounted with the `noexec` option, which results
causes running shebang recipes to fail.

Instead of `/tmp`, use the cache directory as provided by the
[dirs crate](https://docs.rs/dirs/latest/src/dirs/lib.rs.html#77).
2024-05-21 00:04:42 +00:00
Casey Rodarmor
104608d8cc
Run imported recipes in root justfile with correct working directory () 2024-05-19 06:38:57 +00:00
Poliorcetics
caace0a115
Update clap to version 4 () 2024-05-14 20:29:40 -07:00
adamnemecek
b85540007e
Cleanup () 2024-05-14 20:07:41 -07:00
N
d18bdef799
Use --command-color when printing shebang recipe commands () 2024-05-15 00:53:59 +00:00
Marc
8bd411de45
Allow setting custom confirm prompt () 2024-01-13 02:44:13 +00:00
David Harrigan
5bbc89b718
Add set quiet and [no-quiet] () 2024-01-12 20:38:23 +00:00
Casey Rodarmor
fbd4a437a0
Run imports in working directory of importer () 2024-01-12 03:00:38 +00:00
crdx
541e78104c
Ignore [private] recipes in just --list () 2024-01-09 08:07:43 +00:00
Casey Rodarmor
cf57613da7
Add a dash to tempdir prefix () 2024-01-09 07:52:15 +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
1bfed56e5e
Make sigil stripping from recipe lines less incomprehensible () 2024-01-02 01:50:18 +00:00
Casey Rodarmor
8ea278c58b
Override imported recipes () 2023-12-28 17:34:37 -08: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
Hwatwasthat
9415bee16b
Add [confirm] attribute () 2023-11-16 23:51:34 +00:00
Yuri Astrakhan
be7f161554
Misc fixes () 2023-10-17 03:07:09 +00:00
N
22e103361f
Allow setting echoed recipe line color () 2023-10-11 00:04:34 +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
2b46af1cae
Hide recipes with [private] attribute () 2022-11-23 00:25:57 +00:00
Casey Rodarmor
331f61f59c
Add [no-cd] attribute () 2022-11-02 23:37:35 -07:00
Casey Rodarmor
73777f7183
Add OS Configuration Attributes () 2022-10-31 00:52:03 -07:00
David Matos
beeaa6ce2d Add tempdir setting () 2022-10-25 16:57:32 -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
Casey Rodarmor
cd09d1e6d4
Don't evaluate comments () 2022-10-04 22:33:19 -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
Casey Rodarmor
4a4c669db9
Split Recipe::run into Recipe::{run_shebang,run_linewise} () 2022-07-21 01:46:52 +00:00
Casey Rodarmor
01fae9b1e4
Do use super::*; instead of use crate::common::*; () 2022-06-19 04:56:31 +00:00
Casey Rodarmor
3372efefc3
Allow using - and @ in any order () 2022-01-03 00:51:22 +00:00
Casey Rodarmor
0ae91884e2
Add --dump-format json () 2021-11-17 00:07:48 -08:00
Casey Rodarmor
09af9bb5e5
Change MSRV to 1.46.0 () 2021-09-16 14:51:45 +00: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
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
a6b13a31b6
Refactor shebang handling () 2021-05-18 03:44:12 +00:00