Skip to content

Commit

Permalink
Release: v0.5.0 (#530)
Browse files Browse the repository at this point in the history
- Bump version: v0.4.5 -> v0.5.0
- Update dependencies
- Update changelog
- Appease linter
- Appease clippy
  • Loading branch information
casey authored Nov 12, 2019
1 parent 9f82ed9 commit c40d16f
Show file tree
Hide file tree
Showing 7 changed files with 52 additions and 24 deletions.
23 changes: 23 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,29 @@ Changelog
=========


[v0.5.0] - 2019-11-12
---------------------

## Added

- Add `set shell := [...]` to grammar (#526)
- Add `shell` setting (#525)
- Document settings in readme (#527)

## Changed
- Reform positional argument parsing (#523)
- Highlight echoed recipe lines in bold by default (#512)

## Misc

- Gargantuan refactor (#522)
- Move subcommand execution into Subcommand (#514)
- Move `cd` out of Config::from_matches (#513)
- Remove now-unnecessary borrow checker appeasement (#511)
- Reform Parser (#509)
- Note need to publish with nightly cargo (#506)


[v0.4.5] - 2019-10-31
---------------------

Expand Down
32 changes: 16 additions & 16 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "just"
version = "0.4.5"
version = "0.5.0"
description = "🤖 Just a command runner"
authors = ["Casey Rodarmor <casey@rodarmor.com>"]
license = "CC0-1.0"
Expand Down
9 changes: 5 additions & 4 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ impl Config {
justfile: Justfile,
working_directory: &Path,
overrides: &BTreeMap<String, String>,
arguments: &Vec<String>,
arguments: &[String],
) -> Result<(), i32> {
if let Err(error) = InterruptHandler::install() {
warn!("Failed to set CTRL-C handler: {}", error)
Expand Down Expand Up @@ -547,7 +547,7 @@ mod tests {
// proper tests for all the flags, but this will do for now.
#[test]
fn help() {
const EXPECTED_HELP: &str = "just v0.4.5
const EXPECTED_HELP: &str = "just v0.5.0
Casey Rodarmor <casey@rodarmor.com>
🤖 Just a command runner - https://github.com/casey/just
Expand All @@ -558,7 +558,7 @@ FLAGS:
--dry-run Print what just would do without doing it
--dump Print entire justfile
-e, --edit \
Edit justfile with editor given by $VISUAL or $EDITOR, falling back to `vim`
Edit justfile with editor given by $VISUAL or $EDITOR, falling back to `vim`
--evaluate Print evaluated variables
--highlight Highlight echoed recipe lines in bold
-l, --list List available recipes and their arguments
Expand All @@ -580,7 +580,8 @@ OPTIONS:
ARGS:
<ARGUMENTS>... Overrides and recipe(s) to run, defaulting to the first recipe in the justfile";
<ARGUMENTS>... \
Overrides and recipe(s) to run, defaulting to the first recipe in the justfile";

let app = Config::app().setting(AppSettings::ColorNever);
let mut buffer = Vec::new();
Expand Down
2 changes: 1 addition & 1 deletion src/justfile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ impl<'src> Justfile<'src> {
config: &'src Config,
working_directory: &'src Path,
overrides: &'src BTreeMap<String, String>,
arguments: &'src Vec<String>,
arguments: &'src [String],
) -> RunResult<'src, ()> {
let argvec: Vec<&str> = if !arguments.is_empty() {
arguments.iter().map(|argument| argument.as_str()).collect()
Expand Down
2 changes: 1 addition & 1 deletion src/lexer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ impl<'a> Lexer<'a> {
if !text
.chars()
.next()
.map(|c| Self::is_identifier_start(c))
.map(Self::is_identifier_start)
.unwrap_or(false)
{
return false;
Expand Down
6 changes: 5 additions & 1 deletion src/positional.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,11 @@ mod tests {
assert_eq! (
Positional::from_values(Some($vals.iter().cloned())),
Positional {
overrides: $overrides.iter().cloned().map(|(key, value): (&str, &str)| (key.to_owned(), value.to_owned())).collect(),
overrides: $overrides
.iter()
.cloned()
.map(|(key, value): (&str, &str)| (key.to_owned(), value.to_owned()))
.collect(),
search_directory: $search_directory.map(|dir: &str| dir.to_owned()),
arguments: $arguments.iter().cloned().map(|arg: &str| arg.to_owned()).collect(),
},
Expand Down

0 comments on commit c40d16f

Please sign in to comment.