Skip to content

Commit

Permalink
feat: expose CommandString method on Runner
Browse files Browse the repository at this point in the history
  • Loading branch information
connerdouglass committed Mar 8, 2024
1 parent b604515 commit 831c572
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ type Progress struct {

type Runner interface {
Run(ctx context.Context) error
CommandString() (string, error)
}

type Option func(*implRunner)
Expand Down Expand Up @@ -61,8 +62,8 @@ type implRunner struct {
sysProcAttr *syscall.SysProcAttr
}

// GetCommandString is a utility function that gets the FFmpeg command string that is run by this process
func (p *implRunner) GetCommandString() (string, error) {
// CommandString is a utility function that gets the FFmpeg command string that is run by this process
func (p *implRunner) CommandString() (string, error) {
args, err := p.runnable.RunnableArgs()
if err != nil {
return "", err
Expand Down

0 comments on commit 831c572

Please sign in to comment.