-
-
Notifications
You must be signed in to change notification settings - Fork 481
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add support for plugin GenerateContentRequest
- Loading branch information
1 parent
6acc512
commit ccaf27e
Showing
26 changed files
with
755 additions
and
231 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
13 changes: 0 additions & 13 deletions
13
.../main/groovy/au/com/dius/pact/consumer/groovy/messaging/MessagePactFailedException.groovy
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
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
27 changes: 27 additions & 0 deletions
27
consumer/groovy/src/main/kotlin/au/com/dius/pact/consumer/groovy/BuilderUtils.kt
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,27 @@ | ||
package au.com.dius.pact.consumer.groovy | ||
|
||
import java.nio.file.Path | ||
import java.nio.file.Paths | ||
import kotlin.io.path.exists | ||
|
||
object BuilderUtils { | ||
@JvmStatic | ||
fun textFile(filePath: String): String { | ||
var path = Paths.get(filePath) | ||
if (!path.exists()) { | ||
val cwd = Path.of("").toAbsolutePath() | ||
path = cwd.resolve(filePath).toAbsolutePath() | ||
} | ||
return path.toFile().bufferedReader().readText() | ||
} | ||
|
||
@JvmStatic | ||
fun filePath(filePath: String): String { | ||
var path = Paths.get(filePath).toAbsolutePath() | ||
if (!path.exists()) { | ||
val cwd = Path.of("").toAbsolutePath() | ||
path = cwd.resolve(filePath).toAbsolutePath() | ||
} | ||
return path.normalize().toString() | ||
} | ||
} |
Oops, something went wrong.