Skip to content

Commit

Permalink
Improve --init/--fmt compatibility (#1115)
Browse files Browse the repository at this point in the history
The file produced by `--init` should generate a justfile which is
formatted as expected by `--fmt`.
  • Loading branch information
TheLocehiliosan committed Feb 23, 2022
1 parent fecb5e3 commit 850c982
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/subcommand.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::common::*;

const INIT_JUSTFILE: &str = "default:\n\techo 'Hello, world!'\n";
const INIT_JUSTFILE: &str = "default:\n echo 'Hello, world!'\n";

#[derive(PartialEq, Clone, Debug)]
pub(crate) enum Subcommand {
Expand Down
2 changes: 1 addition & 1 deletion tests/init.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::common::*;

const EXPECTED: &str = "default:\n\techo 'Hello, world!'\n";
const EXPECTED: &str = "default:\n echo 'Hello, world!'\n";

#[test]
fn current_dir() {
Expand Down

0 comments on commit 850c982

Please sign in to comment.