Convert string into Cmd object

How can i convert a string like "command arg1 arg2 --opt1=value --flag" into a Cmd object and run that command?

You can do

julia> s = "ls -l"
"ls -l"

julia> c = Cmd(convert(Vector{String}, split(s)))
`ls -l`

# this also works, but only for literal strings
julia> c = @cmd "ls -l"

julia> run(c) # run the command
# output

Thank you :pray:!