Skip to content

Commit

Permalink
Add progress bar
Browse files Browse the repository at this point in the history
closes #4
closes #13
  • Loading branch information
finnvoor committed Apr 10, 2024
1 parent 4fd2c3e commit b06aa50
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Package.resolved
Expand Up @@ -14,8 +14,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/Finnvoor/SwiftTUI.git",
"state" : {
"revision" : "fe7a5592492e8d6145d1f06005fe4cdc0edaf135",
"version" : "1.0.3"
"revision" : "7ab7a7c8f0a30b8c84201903aa8bbbac99a99e9c",
"version" : "1.0.4"
}
}
],
Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Expand Up @@ -11,7 +11,7 @@ let package = Package(
],
dependencies: [
.package(url: "https://github.com/apple/swift-argument-parser.git", from: "1.2.0"),
.package(url: "https://github.com/Finnvoor/SwiftTUI.git", from: "1.0.3")
.package(url: "https://github.com/Finnvoor/SwiftTUI.git", from: "1.0.4")
],
targets: [
.executableTarget(
Expand Down
4 changes: 2 additions & 2 deletions Sources/fx-upscale/FXUpscale.swift
Expand Up @@ -67,9 +67,9 @@ import Upscaling
"Upscaling from \(Int(inputSize.width))x\(Int(inputSize.height)) ",
"to \(Int(outputSize.width))x\(Int(outputSize.height)) "
].joined())
ActivityIndicator.start()
ProgressBar.start(progress: exportSession.progress)
try await exportSession.export()
ActivityIndicator.stop()
ProgressBar.stop()
CommandLine.success("Video successfully upscaled!")
}
}

0 comments on commit b06aa50

Please sign in to comment.