All Downloads are FREE. Search and download functionalities are using the official Maven repository.

python.PythonScriptBuilder.kt Maven / Gradle / Ivy

package python

class PythonScriptBuilder {

    companion object {
        private val commandLines = mutableListOf()

        fun getCommandLines (): List = this.commandLines

        fun addCommand(command: String) {
            this.commandLines.add(command)
        }

        fun commandsString(): String {
            return commandLines.joinToString(separator = "\n")
        }

        fun eraseCommands() {
            this.commandLines.removeAll {true}
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy