Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
# The executable run
# Is a filepath, or a executable found in PATH
# The executable run
# Is a filepath, or a executable found in PATH
# The arguments of the command
# Starts with the first real arguments---ie. does not include the progname (`argv[0]`, in C)
# The arguments of the command
# Starts with the first real arguments---ie. does not include the progname (`argv[0]`, in C)
- var arguments: nullable Array[String]
+ var arguments: nullable Array[Text]
# Launch a command with some arguments
# Launch a command with some arguments
- init(command: String, arguments: String...) is old_style_init do
+ init(command: Text, arguments: Text...) is old_style_init do
self.command = command
self.arguments = arguments
execute
end
# Launch a simple command with arguments passed as an array
self.command = command
self.arguments = arguments
execute
end
# Launch a simple command with arguments passed as an array
- init from_a(command: String, arguments: nullable Array[String])
+ init from_a(command: Text, arguments: nullable Array[Text])
do
self.command = command
self.arguments = arguments
do
self.command = command
self.arguments = arguments
redef class Sys
# Execute a shell command and return its error code
redef class Sys
# Execute a shell command and return its error code
- fun system(command: String): Int
+ fun system(command: Text): Int
do
return command.to_cstring.system
end
do
return command.to_cstring.system
end