File tree 5 files changed +45
-8
lines changed
5 files changed +45
-8
lines changed Original file line number Diff line number Diff line change
1
+ name : Release
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - v*.*.*
7
+
8
+ jobs :
9
+ release :
10
+ runs-on : macos-latest
11
+
12
+ steps :
13
+ - uses : actions/checkout@v3
14
+ - name : Build executable for release
15
+ run : swift build -c release --arch arm64 --arch x86_64 --product swift-pd-guess
16
+ - name : Compress archive
17
+ run : tar -czf swift-pd-guess-${{ github.ref_name }}.tar.gz -C .build/apple/Products/Release swift-pd-guess
18
+ - name : Release
19
+ uses : softprops/action-gh-release@v1
20
+ with :
21
+ files : ${{ github.ref_name }}.tar.gz
22
+ token : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -6,3 +6,4 @@ DerivedData/
6
6
.swiftpm /configuration /registries.json
7
7
.swiftpm /xcode /package.xcworkspace /contents.xcworkspacedata
8
8
.netrc
9
+ .vscode /
Original file line number Diff line number Diff line change @@ -6,6 +6,9 @@ import PackageDescription
6
6
let package = Package (
7
7
name: " swift-pd-guess " ,
8
8
platforms: [ . macOS( . v15) ] ,
9
+ products: [
10
+ . executable( name: " swift-pd-guess " , targets: [ " swift-pd-guess " ] ) ,
11
+ ] ,
9
12
dependencies: [
10
13
. package ( url: " https://github.com/apple/swift-argument-parser " , from: " 1.2.0 " ) ,
11
14
. package ( url: " https://github.com/apple/swift-algorithms " , from: " 1.2.0 " ) ,
@@ -16,17 +19,11 @@ let package = Package(
16
19
dependencies: [
17
20
. product( name: " ArgumentParser " , package : " swift-argument-parser " ) ,
18
21
. product( name: " Algorithms " , package : " swift-algorithms " ) ,
19
- ] ,
20
- swiftSettings: [
21
- . swiftLanguageMode( . v5) ,
22
22
]
23
23
) ,
24
24
. testTarget(
25
25
name: " swift-pd-guess-tests " ,
26
- dependencies: [ " swift-pd-guess " ] ,
27
- swiftSettings: [
28
- . swiftLanguageMode( . v5) ,
29
- ]
26
+ dependencies: [ " swift-pd-guess " ]
30
27
) ,
31
28
]
32
29
)
Original file line number Diff line number Diff line change
1
+ # swift-pd-guess
2
+
3
+ Try to guess the file name from a private discriminator of a private Swift symbol.
4
+
5
+ ## Example
6
+
7
+ See Example/README.md for detail.
8
+
9
+ ## Usgae
10
+
11
+ ``` shell
12
+ swift-pd-guess < hash> < words> --prefix < prefix> [--suffix < suffix> ] [--max-count < max-count> ]
13
+ ```
14
+
15
+ ## License
16
+
17
+ MIT. See LICENSE for detail.
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import CryptoKit
12
12
13
13
@main
14
14
struct PDGuess : AsyncParsableCommand {
15
- static var configuration : CommandConfiguration = CommandConfiguration ( commandName: " swift-pd-guess " )
15
+ static let configuration : CommandConfiguration = CommandConfiguration ( commandName: " swift-pd-guess " )
16
16
17
17
@Argument ( help: " MD5 hash value (private-discriminator) to search for " )
18
18
var hash : String
You can’t perform that action at this time.
0 commit comments