From 3c171dc12811637af09d84d7f088ef6109f4f0a5 Mon Sep 17 00:00:00 2001 From: Tanner Nelson Date: Fri, 27 May 2016 00:17:10 -0400 Subject: [PATCH] messages --- vapor | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/vapor b/vapor index 48c6cb6b..aa97545a 100755 --- a/vapor +++ b/vapor @@ -547,7 +547,12 @@ struct New: Command { let escapedName = "\"\(name)\"" // FIX: Doesn’t support names with quotes try run("mkdir \(escapedName)") + print("Cloning example...") + try run("curl -L \(curlArgs) https://github.com/qutheory/vapor-example/archive/master.tar.gz -o \(escapedName)/vapor-example.tar.gz") + + print("Unpacking...") + try run("tar -\(tarArgs)xzf \(escapedName)/vapor-example.tar.gz --strip-components=1 --directory \(escapedName)") try run("rm \(escapedName)/vapor-example.tar.gz") #if os(OSX) @@ -555,7 +560,7 @@ struct New: Command { #endif if commandExists("git") { - print("Initializing git repository if necessary") + print("Initializing git repository if necessary...") system("git init \(escapedName)") system("cd \(escapedName) && git add . && git commit -m \"initial vapor project setup\"") print()