From 2e3930b4c7c26e91c1341d7d04d33d91758f8009 Mon Sep 17 00:00:00 2001 From: Melody Horn Date: Mon, 28 Jun 2021 17:02:45 -0600 Subject: work properly on windows too --- src/bin/tosin-admin.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/bin') diff --git a/src/bin/tosin-admin.rs b/src/bin/tosin-admin.rs index 034e4a9..e108207 100644 --- a/src/bin/tosin-admin.rs +++ b/src/bin/tosin-admin.rs @@ -6,8 +6,12 @@ use std::process::Command; use structopt::StructOpt; -const TOSIN_DEPENDENCY: &str = concat!(r#"tosin = { path = ""#, env!("CARGO_MANIFEST_DIR"), r#"" } -diesel = { version = "1.4.4", features = ["sqlite"] }"#); +const TOSIN_DEPENDENCY: &str = concat!( + r#"tosin = { path = '"#, + env!("CARGO_MANIFEST_DIR"), + r#"' } +diesel = { version = "1.4.4", features = ["sqlite"] }"# +); const PROJECT_MAIN: &str = r#" #[macro_use] extern crate diesel; @@ -79,14 +83,10 @@ todo!("write some views"); #[derive(StructOpt, Debug)] enum Opt { /// Start a new project/site (can contain multiple apps) - StartProject { - name: Option, - }, + StartProject { name: Option }, /// Start a new app - StartApp { - name: String, - } + StartApp { name: String }, } fn main() { -- cgit v1.2.3