-
Notifications
You must be signed in to change notification settings - Fork 454
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
31 changed files
with
133 additions
and
99 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
use common::*; | ||
use crate::common::*; | ||
|
||
pub trait CommandExt { | ||
fn export_environment_variables<'a>( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,52 @@ | ||
pub use std::borrow::Cow; | ||
pub use std::collections::{BTreeMap as Map, BTreeSet as Set}; | ||
pub use std::fmt::Display; | ||
pub use std::io::prelude::*; | ||
pub use std::ops::Range; | ||
pub use std::path::{Path, PathBuf}; | ||
pub use std::process::Command; | ||
pub use std::sync::{Mutex, MutexGuard}; | ||
pub use std::{cmp, env, fmt, fs, io, iter, process, usize, vec}; | ||
pub(crate) use std::{ | ||
borrow::Cow, | ||
cmp, | ||
collections::{BTreeMap as Map, BTreeSet as Set}, | ||
env, fmt, | ||
fmt::Display, | ||
fs, io, iter, | ||
ops::{Range, RangeInclusive}, | ||
path::{Path, PathBuf}, | ||
process, | ||
process::Command, | ||
sync::{Mutex, MutexGuard}, | ||
usize, vec, | ||
}; | ||
|
||
pub use color::Color; | ||
pub use libc::{EXIT_FAILURE, EXIT_SUCCESS}; | ||
pub use regex::Regex; | ||
pub use tempdir::TempDir; | ||
pub(crate) use crate::color::Color; | ||
pub(crate) use libc::{EXIT_FAILURE, EXIT_SUCCESS}; | ||
pub(crate) use regex::Regex; | ||
pub(crate) use tempdir::TempDir; | ||
|
||
pub use assignment_evaluator::AssignmentEvaluator; | ||
pub use assignment_resolver::AssignmentResolver; | ||
pub use command_ext::CommandExt; | ||
pub use compilation_error::{CompilationError, CompilationErrorKind, CompilationResult}; | ||
pub use configuration::Configuration; | ||
pub use cooked_string::CookedString; | ||
pub use expression::Expression; | ||
pub use fragment::Fragment; | ||
pub use function::{evaluate_function, resolve_function, FunctionContext}; | ||
pub use interrupt_handler::InterruptHandler; | ||
pub use justfile::Justfile; | ||
pub use lexer::Lexer; | ||
pub use load_dotenv::load_dotenv; | ||
pub use misc::{default, empty}; | ||
pub use parameter::Parameter; | ||
pub use parser::Parser; | ||
pub use range_ext::RangeExt; | ||
pub use recipe::{Recipe, RecipeContext}; | ||
pub use recipe_resolver::RecipeResolver; | ||
pub use runtime_error::{RunResult, RuntimeError}; | ||
pub use shebang::Shebang; | ||
pub use token::{Token, TokenKind}; | ||
pub use verbosity::Verbosity; | ||
pub(crate) use crate::{ | ||
assignment_evaluator::AssignmentEvaluator, | ||
assignment_resolver::AssignmentResolver, | ||
compilation_error::{CompilationError, CompilationErrorKind, CompilationResult}, | ||
configuration::Configuration, | ||
cooked_string::CookedString, | ||
expression::Expression, | ||
fragment::Fragment, | ||
function::{evaluate_function, resolve_function, FunctionContext}, | ||
interrupt_handler::InterruptHandler, | ||
justfile::Justfile, | ||
lexer::Lexer, | ||
load_dotenv::load_dotenv, | ||
misc::{default, empty}, | ||
parameter::Parameter, | ||
parser::Parser, | ||
recipe::{Recipe, RecipeContext}, | ||
recipe_resolver::RecipeResolver, | ||
runtime_error::{RunResult, RuntimeError}, | ||
shebang::Shebang, | ||
token::{Token, TokenKind}, | ||
verbosity::Verbosity, | ||
}; | ||
|
||
#[allow(unused_imports)] | ||
pub(crate) use std::io::prelude::*; | ||
|
||
#[allow(unused_imports)] | ||
pub(crate) use crate::command_ext::CommandExt; | ||
|
||
#[allow(unused_imports)] | ||
pub(crate) use crate::range_ext::RangeExt; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
use common::*; | ||
use crate::common::*; | ||
|
||
pub const DEFAULT_SHELL: &str = "sh"; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
use common::*; | ||
use crate::common::*; | ||
|
||
#[derive(PartialEq, Debug)] | ||
pub struct CookedString<'a> { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
use common::*; | ||
use crate::common::*; | ||
|
||
#[derive(PartialEq, Debug)] | ||
pub enum Expression<'a> { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
use common::*; | ||
use crate::common::*; | ||
|
||
#[derive(PartialEq, Debug)] | ||
pub enum Fragment<'a> { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
use common::*; | ||
use crate::common::*; | ||
|
||
use ctrlc; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
use common::*; | ||
use crate::common::*; | ||
|
||
use dotenv; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
use common::*; | ||
use crate::common::*; | ||
|
||
use unicode_width::UnicodeWidthChar; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
use common::*; | ||
use crate::common::*; | ||
|
||
#[derive(PartialEq, Debug)] | ||
pub struct Parameter<'a> { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
use common::*; | ||
use crate::common::*; | ||
|
||
use brev; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.