CommandPart

open class CommandPart

A command part is simply a partial string when building the command. For example, the command :

$( echo Hello $name )

is made up of two parts. The first part is plain text "echo Hello ". The second is the result of the expression $name, and this time isLiteral = false.

Constructors

Link copied to clipboard
constructor(part: String, isLiteral: Boolean)

Properties

Link copied to clipboard
ShCommandLineBuilder uses isLiteral to decide if single quotes within the text should be escape.
Link copied to clipboard
val str: String
The text for this part of the command line.