Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ object LocalSocketProtocol {
env: Map<String, String>? = null,
timeout: Duration,
) {
val myString = "Kotlin is awesome!"
val destinationArray = CharArray(myString.length)

// Convert the string and store it in the destinationArray:
myString.toCharArray(destinationArray)

val builder = RunCommandRequest.newBuilder().setSecret(secret).addAllArgv(argv)
env?.forEach { (k, v) -> builder.putEnvironment(k, v) }
if (timeout.isInfinite() || timeout.isNegative() || timeout == Duration.ZERO) {
Expand Down
Loading