From cfbca6fde60666a2eeb337034f5e91cd4814a98f Mon Sep 17 00:00:00 2001 From: Yonas Kolb Date: Sun, 8 Apr 2018 20:44:20 +1000 Subject: [PATCH] cleanup --- Sources/Generator/Output.swift | 46 ----------------------- Sources/Generator/TemplateGenerator.swift | 3 -- 2 files changed, 49 deletions(-) delete mode 100644 Sources/Generator/Output.swift diff --git a/Sources/Generator/Output.swift b/Sources/Generator/Output.swift deleted file mode 100644 index 0c3118f..0000000 --- a/Sources/Generator/Output.swift +++ /dev/null @@ -1,46 +0,0 @@ -// -// Output.swift -// TemplateGenerator -// -// Created by Yonas Kolb on 2/4/18. -// - -import Foundation -import Rainbow - -public protocol Output { - func standard(_ string: String) - func error(_ string: String) -} - -public class PrintOutput: Output { - - public init() { - - } - public func standard(_ string: String) { - print(string) - } - - public func error(_ string: String) { - print(string.red) - } -} - -public class MockOutput: Output { - - var standardStrings: [String] = [] - var errorStrings: [String] = [] - - public init() { - - } - - public func standard(_ string: String) { - standardStrings.append(string) - } - - public func error(_ string: String) { - errorStrings.append(string) - } -} diff --git a/Sources/Generator/TemplateGenerator.swift b/Sources/Generator/TemplateGenerator.swift index 728da14..5fedfc6 100644 --- a/Sources/Generator/TemplateGenerator.swift +++ b/Sources/Generator/TemplateGenerator.swift @@ -44,7 +44,6 @@ public class TemplateGenerator { if !interactive { if option.required { - print("Missing value for required \(option.name) option") throw GeneratorError.missingOption(option) } else { return @@ -96,8 +95,6 @@ public class TemplateGenerator { try getOptionValue(option, path: path, context: &context) } - // print("Template Context: \(context)") - var generatedFiles: [GeneratedFile] = [] func generateFile(_ file: File, path: Path, context: Context) throws {