Command
is an R6 class used by developers to create new command. It should
not be used by end users.
new()
Create a new Command
object.
Command$new(...)
...
Additional argument passed into command.
build_command()
Build the command line
Command$build_command(help = FALSE, verbose = TRUE)
help
A boolean value indicating whether to build parameters for help document or not.
verbose
A boolean value indicating whether the command execution should be verbose.
envir
An environment used to Execute command.
An atomic character combine the command and parameters.
get_on_start()
Get the command startup code
Command$get_on_start()
A list of quosures
.
get_on_exit()
Get the command exit code
Command$get_on_exit()
A list of quosures
.
get_on_fail()
Get the command failure code
Command$get_on_fail()
A list of quosures
.
get_on_succeed()
Get the command succeessful code
Command$get_on_succeed()
A list of quosures
.
indent
A single integer number giving the space of indent.
The object itself.
clone()
The objects of this class are cloneable with this method.
Command$clone(deep = FALSE)
deep
Whether to make a deep clone.
make_command