generated from snivilised/arcadia
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(deps): incoming breaking changes from extendio & cobrass (#48)
- Loading branch information
1 parent
11fbe2f
commit dff5509
Showing
10 changed files
with
173 additions
and
164 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package proxy | ||
|
||
import ( | ||
"github.com/snivilised/cobrass/src/clif" | ||
) | ||
|
||
type Step interface { | ||
Run() error | ||
} | ||
|
||
// magickStep knows how to combine parameters together so that the program | ||
// can be invoked correctly; but it does not know how to compose the input | ||
// and output file names; this is the responsibility of the runner, which uses | ||
// the path-finder to accomplish that task. | ||
type magickStep struct { | ||
fileManager *FileManager | ||
program Executor | ||
thirdPartyCL clif.ThirdPartyCommandLine | ||
sourcePath string | ||
outputPath string | ||
journalPath string | ||
} | ||
|
||
func (s *magickStep) Run() error { | ||
positional := []string{s.sourcePath} | ||
|
||
return s.program.Execute(clif.Expand(positional, s.thirdPartyCL)...) | ||
} |
Oops, something went wrong.