mirror of
https://github.com/yonaskolb/XcodeGen.git
synced 2026-03-18 20:02:25 +00:00
Use struct instead of class
This commit is contained in:
@@ -3,13 +3,9 @@ import ProjectSpec
|
||||
import SwiftCLI
|
||||
|
||||
public class XcodeGenCLI {
|
||||
private class Manipulator: ArgumentListManipulator {
|
||||
private struct Manipulator: ArgumentListManipulator {
|
||||
let commandName: String
|
||||
|
||||
init(commandName: String) {
|
||||
self.commandName = commandName
|
||||
}
|
||||
|
||||
func manipulate(arguments: ArgumentList) {
|
||||
if !arguments.hasNext() || arguments.nextIsOption() {
|
||||
arguments.manipulate { existing in
|
||||
|
||||
Reference in New Issue
Block a user