8b7640b633
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.
84 lines
1.5 KiB
Rust
84 lines
1.5 KiB
Rust
pub(crate) use {
|
|
crate::{
|
|
assert_stdout::assert_stdout, assert_success::assert_success, tempdir::tempdir, test::Test,
|
|
},
|
|
cradle::input::Input,
|
|
executable_path::executable_path,
|
|
just::unindent,
|
|
libc::{EXIT_FAILURE, EXIT_SUCCESS},
|
|
pretty_assertions::Comparison,
|
|
regex::Regex,
|
|
serde_json::{json, Value},
|
|
std::{
|
|
collections::BTreeMap,
|
|
env::{self, consts::EXE_SUFFIX},
|
|
error::Error,
|
|
fmt::Debug,
|
|
fs,
|
|
io::Write,
|
|
iter,
|
|
path::{Path, PathBuf, MAIN_SEPARATOR},
|
|
process::{Command, Output, Stdio},
|
|
str,
|
|
},
|
|
tempfile::TempDir,
|
|
temptree::{temptree, tree, Tree},
|
|
which::which,
|
|
yaml_rust::YamlLoader,
|
|
};
|
|
|
|
#[macro_use]
|
|
mod test;
|
|
|
|
mod allow_duplicate_recipes;
|
|
mod assert_stdout;
|
|
mod assert_success;
|
|
mod byte_order_mark;
|
|
mod changelog;
|
|
mod choose;
|
|
mod command;
|
|
mod completions;
|
|
mod conditional;
|
|
mod delimiters;
|
|
mod dotenv;
|
|
mod edit;
|
|
mod equals;
|
|
mod error_messages;
|
|
mod evaluate;
|
|
mod examples;
|
|
mod export;
|
|
mod fall_back_to_parent;
|
|
mod fmt;
|
|
mod functions;
|
|
mod ignore_comments;
|
|
mod init;
|
|
#[cfg(unix)]
|
|
mod interrupts;
|
|
mod invocation_directory;
|
|
mod json;
|
|
mod line_prefixes;
|
|
mod misc;
|
|
mod multibyte_char;
|
|
mod no_exit_message;
|
|
mod parser;
|
|
mod positional_arguments;
|
|
mod quiet;
|
|
mod quote;
|
|
mod readme;
|
|
mod recursion_limit;
|
|
mod regexes;
|
|
mod run;
|
|
mod search;
|
|
mod shebang;
|
|
mod shell;
|
|
mod show;
|
|
mod slash_operator;
|
|
mod string;
|
|
mod sublime_syntax;
|
|
mod subsequents;
|
|
mod tempdir;
|
|
mod undefined_variables;
|
|
#[cfg(target_family = "windows")]
|
|
mod windows_shell;
|
|
mod working_directory;
|