This website requires JavaScript.
Explore
Help
Sign In
greg
/
just
Watch
1
Star
0
Fork
0
You've already forked just
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
7683c81c08
just
/
src
/
use_color.rs
7 lines
97 B
Rust
Raw
Normal View
History
Unescape
Escape
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
#[
derive(Copy, Clone, Debug, PartialEq)
]
Use `pub(crate)` instead of `pub` (#471) Eventually, there will probably be a `crate` visibility specifier that does the same thing as `pub(crate)`. This commit replaces `pub` with `pub(crate)`, so when `crate` is available we can easily switch to it.
2019-09-21 15:35:03 -07:00
pub
(
crate
)
enum
UseColor
{
Replace regex-based lexer with character-at-a-time lexer (#406)
2019-04-15 22:40:02 -07:00
Auto
,
Always
,
Never
,
}
Reference in New Issue
Copy Permalink