1414///
1515// -----------------------------------------------------------------------------
1616
17- import Utility
18- import Basic
17+ import TSCUtility
18+ import TSCBasic
1919
2020// MARK: Argument parsing
2121
@@ -74,7 +74,7 @@ extension SwiftEvolveTool.Step {
7474 let files : PositionalArgument < [ PathArgument ] >
7575
7676 init ( ) {
77- parser = Utility . ArgumentParser ( usage: usage, overview: overview)
77+ parser = ArgumentParser ( usage: usage, overview: overview)
7878 rulesFile = parser. add ( option: " --rules " , kind: PathArgument . self,
7979 usage: " <PATH> JSON specification of plan generation rules " )
8080 seed = parser. add ( option: " --seed " , kind: UInt64 . self,
@@ -119,7 +119,7 @@ extension SwiftEvolveTool.Step: CustomStringConvertible {
119119 return options. arguments ( with: [ " --seed " , String ( seed) ] )
120120
121121 case let . evolve( planFile: planFile, options: options) :
122- return options. arguments ( with: [ " --plan " , planFile. asString ] )
122+ return options. arguments ( with: [ " --plan " , planFile. pathString ] )
123123
124124 case let . exit( code: status) :
125125 return [ " exit " , String ( status) ]
@@ -135,15 +135,15 @@ extension SwiftEvolveTool.Step.Options {
135135 fileprivate func arguments( with stageArgs: [ String ] ) -> [ String ] {
136136 var args = [ command] + stageArgs
137137 if let rulesFile = rulesFile {
138- args += [ " --rules " , rulesFile. asString ]
138+ args += [ " --rules " , rulesFile. pathString ]
139139 }
140140 if replace {
141141 args += [ " --replace " ]
142142 }
143143 if verbose {
144144 args += [ " --verbose " ]
145145 }
146- args += files. map { $0. asString }
146+ args += files. map { $0. pathString }
147147 return args
148148 }
149149}
0 commit comments