File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ public struct Template {
99
99
100
100
public func generate( output: String ) throws {
101
101
let inputPath = Path ( input)
102
- let outputPath = try Path ( output) . add ( context. name)
102
+ let outputPath = try Path ( output) . add ( context. name. capitalizedFirstCharacter )
103
103
let ignorePath = inputPath. child ( Template . ignoreFile)
104
104
let ignoreFile = ( try ? String ( contentsOf: ignorePath. url) ) ?? " "
105
105
let ignore = ignoreFile. split ( separator: " \n " ) . map ( String . init) . filter { !$0. isEmpty }
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ final class SwiftTemplateTests: XCTestCase {
36
36
let outputPath = Path ( output)
37
37
38
38
/// check if template was created
39
- XCTAssertEqual ( outputPath. children ( ) . map ( \. name) , [ " test " ] )
39
+ XCTAssertEqual ( outputPath. children ( ) . map ( \. name) , [ " Test " ] )
40
40
41
41
/// check if test directory was created inside the result project with the right name
42
42
let resultPath = outputPath. child ( " test " )
You can’t perform that action at this time.
0 commit comments