Skip to content

Commit

Permalink
TestScript: dump parsed info
Browse files Browse the repository at this point in the history
  • Loading branch information
kojirou1994 committed Oct 17, 2023
1 parent 468d221 commit 7e03195
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Sources/choco-cli/Commands/TestScript.swift
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ struct TestScript: ParsableCommand {
.launch(use: TSCExecutableLauncher(outputRedirection: .collect), options: .init(checkNonZeroExitCode: false))
do {
let info = try VsPipe.Info.parse(output.utf8Output())
print("Info Parsed!")
print("Resolution: \(info.width)x\(info.height)")
print("FPS: \(info.fps.0)/\(info.fps.1)")
print("Frames: \(info.frames)")
print("Format: \(info.formatName)")
} catch {
print("cannot parse vspipe!")
try? print("stdout:\n\(output.utf8Output())")
Expand Down

0 comments on commit 7e03195

Please sign in to comment.