Skip to content

Commit

Permalink
set dependency manager to SPM
Browse files Browse the repository at this point in the history
  • Loading branch information
Miguel Ángel Díaz committed Aug 14, 2019
1 parent 080dc17 commit 958fc3c
Show file tree
Hide file tree
Showing 94 changed files with 575 additions and 2,453 deletions.
6 changes: 0 additions & 6 deletions Examples/Podfile

This file was deleted.

20 changes: 0 additions & 20 deletions Examples/Podfile.lock

This file was deleted.

33 changes: 0 additions & 33 deletions Makefile

This file was deleted.

2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ let package = Package(
.library(name: "Swiftline", targets: ["Swiftline"]),
],
targets: [
.target(name: "Swiftline", path: "Source"),
.target(name: "Swiftline"),
]
)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions Source/Choose.swift → Source/Swiftline/Choose.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

- returns: The user selected item
*/
@discardableResult
public func choose(_ prompt: String, choices: String...) -> String {
return choose(prompt, type: String.self) {
for choice in choices {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 6 additions & 0 deletions Source/Runner.swift → Source/Swiftline/Runner.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,35 +17,41 @@ class 🏃{
return run(command, args: [], settings: initalSettings).exitStatus
}

@discardableResult
class func run(_ command: String, args: String...) -> RunResults {
return run(command, args: args as [String])
}

@discardableResult
class func run(_ command: String, args: [String]) -> RunResults {
let settings = RunSettings()
return run(command, args: args, settings: settings)
}

@discardableResult
class func run(_ command: String, settings: ((RunSettings) -> Void)) -> RunResults {
let initalSettings = RunSettings()
settings(initalSettings)

return run(command, args: [], settings: initalSettings)
}

@discardableResult
class func run(_ command: String, args: [String], settings: ((RunSettings) -> Void)) -> RunResults {
let initalSettings = RunSettings()
settings(initalSettings)

return run(command, args: args, settings: initalSettings)
}

@discardableResult
class func run(_ command: String, echo: EchoSettings) -> RunResults {
let initalSettings = RunSettings()
initalSettings.echo = echo
return run(command, args: [], settings: initalSettings)
}

@discardableResult
class func run(_ command: String, args: [String], settings: RunSettings) -> RunResults {

let commandParts = commandToRun(command, args: args)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
21 changes: 0 additions & 21 deletions Swiftline.podspec

This file was deleted.

586 changes: 456 additions & 130 deletions Swiftline.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"object": {
"pins": [
{
"package": "Nimble",
"repositoryURL": "[email protected]:Quick/Nimble.git",
"state": {
"branch": null,
"revision": "f8657642dfdec9973efc79cc68bcef43a653a2bc",
"version": "8.0.2"
}
},
{
"package": "Quick",
"repositoryURL": "[email protected]:Quick/Quick.git",
"state": {
"branch": null,
"revision": "94df9b449508344667e5afc7e80f8bcbff1e4c37",
"version": "2.1.0"
}
}
]
},
"version": 1
}
4 changes: 0 additions & 4 deletions Swiftline.xcodeproj/xcshareddata/xcschemes/Swiftline.xcscheme
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
</Testables>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
Expand All @@ -51,8 +49,6 @@
ReferencedContainer = "container:Swiftline.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
Expand Down
52 changes: 52 additions & 0 deletions Swiftline.xcodeproj/xcshareddata/xcschemes/SwiftlineTests.xcscheme
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1100"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "8B6AA75B23042E370008C1D0"
BuildableName = "SwiftlineTests.xctest"
BlueprintName = "SwiftlineTests"
ReferencedContainer = "container:Swiftline.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 0 additions & 2 deletions SwiftlineTests/Cartfile

This file was deleted.

2 changes: 0 additions & 2 deletions SwiftlineTests/Cartfile.resolved

This file was deleted.

This file was deleted.

Binary file not shown.
1 change: 0 additions & 1 deletion SwiftlineTests/Carthage/Build/Mac/Nimble.framework/Headers

This file was deleted.

1 change: 0 additions & 1 deletion SwiftlineTests/Carthage/Build/Mac/Nimble.framework/Modules

This file was deleted.

1 change: 0 additions & 1 deletion SwiftlineTests/Carthage/Build/Mac/Nimble.framework/Nimble

This file was deleted.

This file was deleted.

Loading

0 comments on commit 958fc3c

Please sign in to comment.