Skip to content

Commit

Permalink
improve new
Browse files Browse the repository at this point in the history
  • Loading branch information
xasopheno committed Mar 5, 2023
1 parent fe3e998 commit 36847fc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/new.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ pub fn new(filename: &String, cwd: PathBuf) -> Result<(), Error> {
}

fn new_socool_file(filename: String, working_path: PathBuf) -> Result<(), Error> {
let path = working_path.join(format!("{filename}.socool"));
let path = working_path.join(format!("{filename}"));

fs::write(path, DEFAULT_SOCOOL).expect("Unable to write file");
play_file(format!("{filename}.socool"), working_path, Play::Once)?;
play_file(format!("{filename}"), working_path, Play::Once)?;
Ok(())
}

Expand All @@ -32,7 +32,7 @@ thing1 = {
thing2 = {
Overlay [
{1/1, 2, 1, 1},
{1/1, 3, 1, 1},
{1/1, 0, 1, -1},
]
| Seq [
Expand Down

0 comments on commit 36847fc

Please sign in to comment.