Skip to content

Commit

Permalink
Move examples into separate executable
Browse files Browse the repository at this point in the history
  • Loading branch information
rechsteiner committed Feb 10, 2024
1 parent f73d443 commit b0e1d6d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions Sources/main.swift → Examples/main.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Foundation
import Picker

do {
print()
Expand Down
10 changes: 8 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,15 @@ let package = Package(
name: "swift-ansi-picker",
dependencies: [],
targets: [
.target(
name: "Picker",
dependencies: [],
path: "Sources"
),
.executableTarget(
name: "swift-ansi-picker",
dependencies: []
name: "example",
dependencies: ["Picker"],
path: "Examples"
)
]
)

0 comments on commit b0e1d6d

Please sign in to comment.