2018-10-13 03:12:35 -07:00
|
|
|
#[macro_use]
|
|
|
|
extern crate lazy_static;
|
|
|
|
|
|
|
|
#[cfg(test)]
|
|
|
|
#[macro_use]
|
2019-11-07 10:55:15 -08:00
|
|
|
pub mod testing;
|
|
|
|
|
|
|
|
#[cfg(test)]
|
|
|
|
#[macro_use]
|
|
|
|
pub mod tree;
|
|
|
|
|
|
|
|
#[cfg(test)]
|
|
|
|
pub mod node;
|
2018-10-13 03:12:35 -07:00
|
|
|
|
|
|
|
#[cfg(fuzzing)]
|
2019-09-21 15:35:03 -07:00
|
|
|
pub(crate) mod fuzzing;
|
2018-10-13 03:12:35 -07:00
|
|
|
|
2019-04-11 12:30:29 -07:00
|
|
|
mod alias;
|
|
|
|
mod alias_resolver;
|
2019-11-07 10:55:15 -08:00
|
|
|
mod analyzer;
|
|
|
|
mod assignment;
|
2018-10-13 03:12:35 -07:00
|
|
|
mod assignment_evaluator;
|
|
|
|
mod assignment_resolver;
|
|
|
|
mod color;
|
|
|
|
mod command_ext;
|
|
|
|
mod common;
|
|
|
|
mod compilation_error;
|
2019-04-19 02:40:25 -07:00
|
|
|
mod compilation_error_kind;
|
2019-11-07 10:55:15 -08:00
|
|
|
mod compilation_result_ext;
|
|
|
|
mod compiler;
|
2019-10-07 02:06:45 -07:00
|
|
|
mod config;
|
2019-10-09 00:18:53 -07:00
|
|
|
mod config_error;
|
2019-10-09 01:40:40 -07:00
|
|
|
mod count;
|
|
|
|
mod default;
|
|
|
|
mod empty;
|
|
|
|
mod enclosure;
|
Gargantuan refactor (#522)
- Instead of changing the current directory with `env::set_current_dir`
to be implicitly inherited by subprocesses, we now use
`Command::current_dir` to set it explicitly. This feels much better,
since we aren't dependent on the implicit state of the process's
current directory.
- Subcommand execution is much improved.
- Added a ton of tests for config parsing, config execution, working
dir, and search dir.
- Error messages are improved. Many more will be colored.
- The Config is now onwed, instead of borrowing from the arguments and
the `clap::ArgMatches` object. This is a huge ergonomic improvement,
especially in tests, and I don't think anyone will notice.
- `--edit` now uses `$VISUAL`, `$EDITOR`, or `vim`, in that order,
matching git, which I think is what most people will expect.
- Added a cute `tmptree!{}` macro, for creating temporary directories
populated with directories and files for tests.
- Admitted that grammer is LL(k) and I don't know what `k` is.
2019-11-09 21:43:20 -08:00
|
|
|
mod error;
|
|
|
|
mod error_result_ext;
|
2018-10-13 03:12:35 -07:00
|
|
|
mod expression;
|
|
|
|
mod fragment;
|
|
|
|
mod function;
|
2019-04-15 22:40:02 -07:00
|
|
|
mod function_context;
|
|
|
|
mod functions;
|
|
|
|
mod interrupt_guard;
|
2018-10-13 03:12:35 -07:00
|
|
|
mod interrupt_handler;
|
2019-11-07 10:55:15 -08:00
|
|
|
mod item;
|
2018-10-13 03:12:35 -07:00
|
|
|
mod justfile;
|
2019-11-07 10:55:15 -08:00
|
|
|
mod keyed;
|
|
|
|
mod keyword;
|
2018-10-13 03:12:35 -07:00
|
|
|
mod lexer;
|
2019-11-07 10:55:15 -08:00
|
|
|
mod line;
|
2019-10-09 01:40:40 -07:00
|
|
|
mod list;
|
2018-10-13 03:12:35 -07:00
|
|
|
mod load_dotenv;
|
Gargantuan refactor (#522)
- Instead of changing the current directory with `env::set_current_dir`
to be implicitly inherited by subprocesses, we now use
`Command::current_dir` to set it explicitly. This feels much better,
since we aren't dependent on the implicit state of the process's
current directory.
- Subcommand execution is much improved.
- Added a ton of tests for config parsing, config execution, working
dir, and search dir.
- Error messages are improved. Many more will be colored.
- The Config is now onwed, instead of borrowing from the arguments and
the `clap::ArgMatches` object. This is a huge ergonomic improvement,
especially in tests, and I don't think anyone will notice.
- `--edit` now uses `$VISUAL`, `$EDITOR`, or `vim`, in that order,
matching git, which I think is what most people will expect.
- Added a cute `tmptree!{}` macro, for creating temporary directories
populated with directories and files for tests.
- Admitted that grammer is LL(k) and I don't know what `k` is.
2019-11-09 21:43:20 -08:00
|
|
|
mod load_error;
|
2019-11-07 10:55:15 -08:00
|
|
|
mod module;
|
|
|
|
mod name;
|
2019-04-19 02:17:43 -07:00
|
|
|
mod ordinal;
|
2019-07-13 01:55:06 -07:00
|
|
|
mod output;
|
|
|
|
mod output_error;
|
2018-10-13 03:12:35 -07:00
|
|
|
mod parameter;
|
|
|
|
mod parser;
|
|
|
|
mod platform;
|
2019-07-13 01:55:06 -07:00
|
|
|
mod platform_interface;
|
2019-04-15 22:40:02 -07:00
|
|
|
mod position;
|
Reform positional argument parsing (#523)
This diff makes positional argument parsing much cleaner, along with
adding a bunch of tests. Just's positional argument parsing is rather,
complex, so hopefully this reform allows it to both be correct and stay
correct.
User-visible changes:
- `just ..` is now accepted, with the same effect as `just ../`
- `just .` is also accepted, with the same effect as `just`
- It is now an error to pass arguments or overrides to subcommands
that do not accept them, namely `--dump`, `--edit`, `--list`,
`--show`, and `--summary`. It is also an error to pass arguments to
`--evaluate`, although `--evaluate` does of course still accept
overrides.
(This is a breaking change, but hopefully worth it, as it will allow us
to add arguments to subcommands which did not previously take
them, if we so desire.)
- Subcommands which do not accept arguments may now accept a
single search-directory argument, so `just --list ../` and
`just --dump foo/` are now accepted, with the former starting the
search for the justfile to list in the parent directory, and the latter
starting the search for the justfile to dump in `foo`.
2019-11-10 18:02:36 -08:00
|
|
|
mod positional;
|
2018-10-13 03:12:35 -07:00
|
|
|
mod range_ext;
|
|
|
|
mod recipe;
|
2019-04-15 22:40:02 -07:00
|
|
|
mod recipe_context;
|
2018-10-13 03:12:35 -07:00
|
|
|
mod recipe_resolver;
|
|
|
|
mod run;
|
|
|
|
mod runtime_error;
|
2019-06-01 22:38:03 -07:00
|
|
|
mod search;
|
Gargantuan refactor (#522)
- Instead of changing the current directory with `env::set_current_dir`
to be implicitly inherited by subprocesses, we now use
`Command::current_dir` to set it explicitly. This feels much better,
since we aren't dependent on the implicit state of the process's
current directory.
- Subcommand execution is much improved.
- Added a ton of tests for config parsing, config execution, working
dir, and search dir.
- Error messages are improved. Many more will be colored.
- The Config is now onwed, instead of borrowing from the arguments and
the `clap::ArgMatches` object. This is a huge ergonomic improvement,
especially in tests, and I don't think anyone will notice.
- `--edit` now uses `$VISUAL`, `$EDITOR`, or `vim`, in that order,
matching git, which I think is what most people will expect.
- Added a cute `tmptree!{}` macro, for creating temporary directories
populated with directories and files for tests.
- Admitted that grammer is LL(k) and I don't know what `k` is.
2019-11-09 21:43:20 -08:00
|
|
|
mod search_config;
|
2019-06-01 22:38:03 -07:00
|
|
|
mod search_error;
|
2018-10-13 03:12:35 -07:00
|
|
|
mod shebang;
|
2019-10-09 01:40:40 -07:00
|
|
|
mod show_whitespace;
|
2019-04-15 22:40:02 -07:00
|
|
|
mod state;
|
|
|
|
mod string_literal;
|
2019-10-07 04:04:39 -07:00
|
|
|
mod subcommand;
|
2019-11-07 10:55:15 -08:00
|
|
|
mod table;
|
2018-10-13 03:12:35 -07:00
|
|
|
mod token;
|
2019-04-15 22:40:02 -07:00
|
|
|
mod token_kind;
|
|
|
|
mod use_color;
|
|
|
|
mod variables;
|
2018-10-13 03:12:35 -07:00
|
|
|
mod verbosity;
|
2019-09-21 18:53:30 -07:00
|
|
|
mod warning;
|
2019-10-09 01:40:40 -07:00
|
|
|
mod write_message_context;
|
2018-10-13 03:12:35 -07:00
|
|
|
|
2019-04-11 15:23:14 -07:00
|
|
|
pub use crate::run::run;
|
2019-04-11 16:35:16 -07:00
|
|
|
|
2019-09-23 18:52:27 -07:00
|
|
|
#[cfg(feature = "summary")]
|
2019-04-11 16:35:16 -07:00
|
|
|
pub mod summary;
|