Commit Graph

202 Commits

Author SHA1 Message Date
Casey Rodarmor
687007a723
Stabilize modules (#2250) 2024-07-14 21:22:03 +00:00
Casey Rodarmor
d6669e0b97
Allow enabling unstable features with set unstable (#2237) 2024-07-08 03:45:03 +00:00
Greg Shuflin
208187fbb6
Use clap::ValueParser (#2211) 2024-06-30 19:16:10 +00:00
Casey Rodarmor
553adc1004
Document library interface (#2174) 2024-06-19 23:38:02 +00:00
Casey Rodarmor
1547af08b5
Allow setting more command-line options with environment variables (#2161) 2024-06-14 23:11:22 +00:00
Casey Rodarmor
18ec9796b9
Improve argument parsing and error handling for submodules (#2154) 2024-06-14 02:41:45 +00:00
Casey Rodarmor
0de971942a
Allow printing nu completion script with just --completions nushell (#2140) 2024-06-08 21:56:21 +00:00
Greg Shuflin
4fbd03735a
Refactor evaluator (#2138) 2024-06-08 14:42:16 +00:00
Greg Shuflin
38873dcb74
Allow unexporting environment variables (#2098) 2024-06-05 20:16:47 +00:00
Greg Shuflin
77a6e02964
Add --timestamp-format (#2106) 2024-05-29 09:28:45 +00:00
Casey Rodarmor
9d2c6b8858
Allow listing submodule recipes with --list PATH (#2108) 2024-05-29 08:08:29 +00:00
Greg Shuflin
d14aae1c29
Print recipe command timestamps with --timestamps (#2084) 2024-05-29 03:31:55 +00:00
Greg Shuflin
ed0dc20318
Add recipe groups (#1842) 2024-05-25 07:32:25 +00:00
Casey Rodarmor
d6b2e6bad2
Fix submodule recipe listing indentation (#2063) 2024-05-20 07:25:18 +00:00
Casey Rodarmor
9e658fba39
Refactor list subcommand (#2062) 2024-05-20 06:47:57 +00:00
Casey Rodarmor
6907847a77
Add predefined constants (#2054) 2024-05-18 23:12:11 +00:00
Casey Rodarmor
7359deeb99
Replace FunctionContext with Evaluator (#2048) 2024-05-18 00:21:47 +00:00
Poliorcetics
caace0a115
Update clap to version 4 (#1924) 2024-05-14 20:29:40 -07:00
Elizaveta Demina
9aea3e679b
Add assert expression (#1845) 2024-05-15 01:55:32 +00:00
Casey Rodarmor
1ea5e6ac31
Don't conflate recipes with the same name in different modules (#1825) 2024-01-08 13:26:33 -08:00
Casey Rodarmor
e2c0d86bdd
Optional modules and imports (#1797) 2023-12-29 12:16:31 -08:00
Casey Rodarmor
a1bd70a030
Run recipes with working directory set to submodule directory (#1788) 2023-12-29 00:55:36 +00:00
Casey Rodarmor
92bae080ab
List included recipes in load order (#1745) 2023-11-25 07:15:41 +00:00
Greg Shuflin
f745316e88
Move !include processing into compiler (#1618) 2023-11-21 11:28:59 -08:00
Yuri Astrakhan
be7f161554
Misc fixes (#1700) 2023-10-17 03:07:09 +00:00
Yuri Astrakhan
a1220c63e3
Cleanup (#1566) 2023-06-12 16:53:55 +00:00
Casey Rodarmor
67b264c878
Ignore clippy::let_underscore_untyped (#1609) 2023-05-28 00:42:52 +00:00
Greg Shuflin
054d6672c5
Analyze and Compiler tweaks (#1534) 2023-01-27 03:03:04 +00:00
Cameron Steffen
216df31543
Eliminate lazy_static (#1442) 2022-12-15 16:53:21 -08:00
Gökhan Karabulut
8b7640b633
Add [no-exit-message] recipe annotation (#1354)
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 (#1333)
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
c115b3f317
Allow fewer lints (#1340) 2022-09-11 09:25:38 +00:00
Casey Rodarmor
4a4c669db9
Split Recipe::run into Recipe::{run_shebang,run_linewise} (#1270) 2022-07-21 01:46:52 +00:00
Evan Richter
eef0138599
Restore fuzz test harness (#1246) 2022-06-21 02:16:02 +00:00
Casey Rodarmor
01fae9b1e4
Do use super::*; instead of use crate::common::*; (#1239) 2022-06-19 04:56:31 +00:00
Casey Rodarmor
c24a194602
Add windows-shell setting (#1198) 2022-05-31 13:01:59 -07:00
Casey Rodarmor
5995221555
Change dotenv-load default to false (#1082)
This changes the default value of `dotenv-load` from `true` to `false`. This
is a backwards incompatible change, and will require a minor version bump.
2022-02-02 03:16:35 +00:00
Casey Rodarmor
27cd8fd554
Remove call to sed in justfile (#1078) 2022-01-30 20:16:10 +00:00
Casey Rodarmor
0ae91884e2
Add --dump-format json (#992) 2021-11-17 00:07:48 -08:00
Casey Rodarmor
0db4589efe
Implement regular expression match conditionals (#970) 2021-09-16 23:45:56 +00:00
Casey Rodarmor
09af9bb5e5
Change MSRV to 1.46.0 (#968) 2021-09-16 14:51:45 +00:00
Casey Rodarmor
27cf2b96df
Use ColorDisplay trait to print objects to the terminal (#926) 2021-07-29 01:06:57 +00:00
Casey Rodarmor
ce0376cfdf
Move subcommand functions into Subcommand (#918) 2021-07-27 00:19:52 +00:00
Casey Rodarmor
1b0fafea75
Add loader and refactor errors (#917)
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
98457c05d7
Rename: Module → Ast (#915) 2021-07-24 03:26:27 +00:00
Casey Rodarmor
0fea73455b
Fix circular variable dependency error message (#909) 2021-07-20 01:10:35 +00:00
Casey Rodarmor
4cb82e0c1f
Remove summary feature (#823)
Remove the `summary` feature and make the `summary` module always build.
It's a small module, so it shouldn't hurt compile times, and it should
prevent accidental breakages that are only caught on CI.
2021-05-08 19:07:51 -07:00
Casey Rodarmor
7bc9d3986e
Fix bang lexing and placate clippy (#821) 2021-05-07 00:14:38 -07:00
Casey Rodarmor
fec979c2c6
Reform and improve string literals (#793)
- Combine and simplify string and backtick lexing.
- Allow newlines in strings and backticks.
- Add triple-delimited indented strings and backticks. Common indented literal non-blank line leading whitespace is stripped.
- If a literal newline is escaped, it will be suppressed.
- Backticks starting with `#!` are reserved for a future upgrade.
2021-04-05 21:28:37 -07:00
Casey Rodarmor
dd578d141c
Unify string lexing (#790)
Unify lexing of backticks, cooked strings, and raw strings. Also allow
newlines in backticks and cooked strings, since I can't think of a reason
not to.
2021-04-04 16:41:02 -07:00