mirror of
https://github.com/yonaskolb/XcodeGen.git
synced 2026-11-18 20:15:11 +00:00
Use struct instead of class
This commit is contained in:
1 parent
6cdd9843a2
commit
d9a84fbbb3
1 file changed
+1
-5
@@ -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