lucee.Componentcommandbox.system.util.CommandDSL
Copyright Since 2014 CommandBox by Ortus Solutions, Corp www.coldbox.org | www.ortussolutions.com I am a helper object for executing commands via a DSL. Create me and call my methods to build up a command chain, then .run() will execute me. I am a transient and hold state. Do not share me with your friends.
Property Summary | ||||
---|---|---|---|---|
type | property | default | serializable | required |
any
|
append
|
true
|
false
|
|
any
|
command
|
true
|
false
|
|
any
|
flags
|
true
|
false
|
|
any
|
job
|
true
|
false
|
|
any
|
overwrite
|
true
|
false
|
|
any
|
params
|
true
|
false
|
|
any
|
paramsType
|
true
|
false
|
|
any
|
parser
|
true
|
false
|
|
any
|
piped
|
true
|
false
|
|
any
|
rawParams
|
true
|
false
|
|
any
|
shell
|
true
|
false
|
|
any
|
workingDirectory
|
true
|
false
|
Constructor Summary | |
---|---|
init([any name])
Create a new, executable command. |
Method Summary | |
---|---|
any
|
append(any path)
Append results to file. |
any
|
flags()
Add flags to the command. |
string
|
getAppend()
|
string
|
getCommand()
|
string
|
getCommandString()
Turn this CFC into a string representation. |
string
|
getFlags()
|
string
|
getJob()
|
string
|
getOverwrite()
|
string
|
getParams()
|
string
|
getParamsType()
|
string
|
getParser()
|
string
|
getPiped()
|
string
|
getRawParams()
|
string
|
getShell()
|
array
|
getTokens()
Turn this CFC into an array of command tokens. |
string
|
getWorkingDirectory()
|
any
|
inWorkingDirectory(any workingDirectory)
Sets the directory to run the command in. |
any
|
overwrite(any path)
overwrite file with results. |
any
|
params()
Add params to the command. |
any
|
pipe([any commandDSL])
Pipe additional commands. |
private array
|
processParams()
Convert params to named or positional arguments. |
string
|
run([any returnOutput='false'], [string piped], [boolean echo='false'], [boolean rawParams='false'])
Run this command. |
any
|
setAppend(any append)
|
any
|
setCommand(any command)
|
any
|
setFlags(any flags)
|
any
|
setJob(any job)
|
any
|
setOverwrite(any overwrite)
|
any
|
setParams(any params)
|
any
|
setParamsType(any paramsType)
|
any
|
setParser(any parser)
|
any
|
setPiped(any piped)
|
any
|
setRawParams(any rawParams)
|
any
|
setShell(any shell)
|
any
|
setWorkingDirectory(any workingDirectory)
|
Methods inherited from class lucee.Component |
---|
None |
Constructor Detail |
---|
Create a new, executable command
name
- I am the command to executeProperty Detail |
---|
access
- publicrequired
- falsereturntype
- anyserializable
- trueaccess
- publicrequired
- falsereturntype
- anyserializable
- trueaccess
- publicrequired
- falsereturntype
- anyserializable
- trueaccess
- publicrequired
- falsereturntype
- anyinject
- interactiveJobserializable
- trueaccess
- publicrequired
- falsereturntype
- anyserializable
- trueaccess
- publicrequired
- falsereturntype
- anyserializable
- trueaccess
- publicrequired
- falsereturntype
- anyserializable
- trueaccess
- publicrequired
- falsereturntype
- anyinject
- parserserializable
- trueaccess
- publicrequired
- falsereturntype
- anyserializable
- trueaccess
- publicrequired
- falsereturntype
- anyserializable
- trueaccess
- publicrequired
- falsereturntype
- anyinject
- shellserializable
- trueaccess
- publicrequired
- falsereturntype
- anyserializable
- trueMethod Detail |
---|
Append results to file
path
Add flags to the command
Turn this CFC into a string representation
Turn this CFC into an array of command tokens
Sets the directory to run the command in
workingDirectory
overwrite file with results
path
Add params to the command
Pipe additional commands
commandDSL
Convert params to named or positional arguments
Run this command
returnOutput
piped
echo
rawParams
append
command
flags
job
overwrite
params
paramsType
parser
piped
rawParams
shell
workingDirectory