version = "0.3.2"
env_files = [
".env"
]
default_shell.generic = ["sh", "-c", "{COMMAND}"]
default_shell.targets.windows = { parts = ["cmd", "/C", "{COMMAND}"], delimiter = " && " }
[scripts]
basic = "echo Test"
echo = "echo \"Message is: '%%'.\""
documented.cmd = "echo \"I'm documented!\""
documented.desc = "here's some documentation"
append_with_args.cmd = "echo \"Hi %name! Message is: '%%'.\""
append_with_args.args = ["name"]
interpolation.cmd = "echo %GREETING %name"
interpolation.args = ["name"]
interpolation.env_vars = ["GREETING"]
adaptable.cmd.generic = "echo Test"
adaptable.cmd.targets.magic_os = "please print string \"Test\" > console"
super_versatile.cmd.generic.exec = "echo Test"
super_versatile.cmd.generic.shell = ["sh", "-c", "{COMMAND}"]
super_versatile.cmd.targets.magic_os.exec = "please print string \"Test\" > console"
super_versatile.cmd.targets.magic_os.shell = ["please", "run", "command", "{COMMAND}", "against", "sys"]
multistage = [
"echo \"Part 1\"",
"echo \"Part 2\""
]
multistage_shell_demo = [
"cd /tmp",
"pwd"
]
multistage_with_interpolation.cmd = [
"echo \"Greeting: %GREETING\"",
"echo \"Name: %name\""
]
multistage_with_interpolation.args = ["name"]
multistage_with_interpolation.env_vars = ["GREETING"]
subcommands.cmd = "echo Parent"
subcommands.subcommands.basic = "echo Test"
subcommands.subcommands.multistage_with_interpolation.cmd = [
"echo \"Greeting: %GREETING\"",
"echo \"Name: %name\""
]
subcommands.subcommands.multistage_with_interpolation.args = ["name"]
subcommands.subcommands.multistage_with_interpolation.env_vars = ["GREETING"]
subcommands.subcommands.nested.subcommands.basic.cmd = "echo Nested"
subcommands.subcommands.nested.subcommands.basic.desc = "here's a deeply nested description"
subcommands.subcommands.nested.order = "basic"
power.subcommands.basic = "echo Test"
power.subcommands.multistage_with_interpolation.cmd = [
"echo \"Greeting: %GREETING\"",
"echo \"Name: %name\""
]
power.subcommands.multistage_with_interpolation.env_vars = ["GREETING"]
power.subcommands.error = "echo \"An error has occurred.\""
power.subcommands.nested.subcommands.basic = "echo Nested"
power.subcommands.nested.order = "basic"
power.order = """
basic {
Success => multistage_with_interpolation {
Failure => error
},
Failure => error
}
"""
power.args = ["name"]