diff --git a/Examples/AskExample.swift b/Examples/AskExample.swift index 8ef4d4a..0788dec 100755 --- a/Examples/AskExample.swift +++ b/Examples/AskExample.swift @@ -15,7 +15,7 @@ print("\nYour age is \(age)\n") // Ask with validation let name = ask("Who are you?") { settings in settings.addInvalidCase("Snuffles is not allowed") { value in - value.containsString("Snuffles") + value.contains("Snuffles") } } print("\nYour are \(name)\n") diff --git a/Examples/ChooseExample.swift b/Examples/ChooseExample.swift index c6c7567..b15c331 100755 --- a/Examples/ChooseExample.swift +++ b/Examples/ChooseExample.swift @@ -24,7 +24,7 @@ let choice3 = choose("Whats your favorite programming language? ", type: String. //choice value will be set to BAD settings.addChoice("Java") { "BAD" } - settings.index = .Letters + settings.index = .letters settings.indexSuffix = " ----> " } print("Your choice is \(choice3)") diff --git a/Examples/EnvAndArgs.swift b/Examples/EnvAndArgs.swift old mode 100644 new mode 100755 index 559b22c..82db3dc --- a/Examples/EnvAndArgs.swift +++ b/Examples/EnvAndArgs.swift @@ -5,7 +5,7 @@ import Swiftline // print(Env.get("PWD")!) print("All Environment Variables") -print(Env.keys.joinWithSeparator("\n")) +print(Env.keys.joined(separator: "\n")) print("\nPrinting value of PWD") print(Env.get("PWD")!) @@ -14,6 +14,6 @@ print("\nPrint all Arguments") print(Args.all) print("\nPrint parsed Arguments") -print(Args.parsed.flags["target"]!) -print(Args.parsed.flags["framework"]!) +print(Args.parsed.flags["target"] as Any) +print(Args.parsed.flags["framework"] as Any) print(Args.parsed.parameters) diff --git a/Examples/Podfile b/Examples/Podfile index 9ebb516..5988f7c 100644 --- a/Examples/Podfile +++ b/Examples/Podfile @@ -1,6 +1,6 @@ platform :osx, '10.10' plugin 'cocoapods-rome' -pod 'Swiftline', :path => '../Swiftline.podspec' -pod 'Quick', '~> 0.8.0' -pod 'Nimble', '~> 3.0.0' +target 'Examples' do + pod 'Swiftline', :path => '../Swiftline.podspec' +end