KetraTerm
API · v0.2.2All versions

recordCommandResult

fun recordCommandResult(commandLine: String, successful: Boolean, profileId: String?, workingDirectoryUri: String?, usedAtEpochMillis: Long): Boolean

Records a completed command execution.

Blank, multiline, and otherwise non-recordable commands are ignored.

Return

true if the retained exact-command rows changed.

Parameters

commandLine

command text executed by the shell.

successful

whether the command exited successfully.

profileId

optional host profile id.

workingDirectoryUri

optional working-directory URI.

usedAtEpochMillis

host timestamp for the execution event.