-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
9 changed files
with
386 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,260 @@ | ||
{ | ||
"default_shell": { | ||
"generic": ["sh", "-c", "{COMMAND}"], | ||
"targets": { "windows": ["cmd", "/C", "{COMMAND}"] } | ||
}, | ||
"scripts": { | ||
"append_with_args": { | ||
"args": ["name"], | ||
"env_vars": [], | ||
"subcommands": null, | ||
"order": null, | ||
"cmd": { | ||
"generic": { | ||
"exec": ["echo \"Hi %name! Message is: '%%'.\""], | ||
"shell": null | ||
}, | ||
"targets": {} | ||
} | ||
}, | ||
"basic": { | ||
"args": [], | ||
"env_vars": [], | ||
"subcommands": null, | ||
"order": null, | ||
"cmd": { | ||
"generic": { "exec": ["echo Test"], "shell": null }, | ||
"targets": {} | ||
} | ||
}, | ||
"adaptable": { | ||
"args": [], | ||
"env_vars": [], | ||
"subcommands": null, | ||
"order": null, | ||
"cmd": { | ||
"generic": { "exec": ["echo Test"], "shell": null }, | ||
"targets": { | ||
"magic_os": { | ||
"exec": ["please print string \"Test\" > console"], | ||
"shell": null | ||
} | ||
} | ||
} | ||
}, | ||
"subcommands": { | ||
"args": [], | ||
"env_vars": [], | ||
"subcommands": { | ||
"nested": { | ||
"args": [], | ||
"env_vars": [], | ||
"subcommands": { | ||
"basic": { | ||
"args": [], | ||
"env_vars": [], | ||
"subcommands": null, | ||
"order": null, | ||
"cmd": { | ||
"generic": { | ||
"exec": ["echo Nested"], | ||
"shell": null | ||
}, | ||
"targets": {} | ||
} | ||
} | ||
}, | ||
"order": ["basic", {}], | ||
"cmd": null | ||
}, | ||
"multistage_with_interpolation": { | ||
"args": ["name"], | ||
"env_vars": ["GREETING"], | ||
"subcommands": null, | ||
"order": null, | ||
"cmd": { | ||
"generic": { | ||
"exec": [ | ||
"echo \"Greeting: %GREETING\"", | ||
"echo \"Name: %name\"" | ||
], | ||
"shell": null | ||
}, | ||
"targets": {} | ||
} | ||
}, | ||
"basic": { | ||
"args": [], | ||
"env_vars": [], | ||
"subcommands": null, | ||
"order": null, | ||
"cmd": { | ||
"generic": { "exec": ["echo Test"], "shell": null }, | ||
"targets": {} | ||
} | ||
} | ||
}, | ||
"order": null, | ||
"cmd": { | ||
"generic": { "exec": ["echo Parent"], "shell": null }, | ||
"targets": {} | ||
} | ||
}, | ||
"interpolation": { | ||
"args": ["name"], | ||
"env_vars": ["GREETING"], | ||
"subcommands": null, | ||
"order": null, | ||
"cmd": { | ||
"generic": { "exec": ["echo %GREETING %name"], "shell": null }, | ||
"targets": {} | ||
} | ||
}, | ||
"multistage": { | ||
"args": [], | ||
"env_vars": [], | ||
"subcommands": null, | ||
"order": null, | ||
"cmd": { | ||
"generic": { | ||
"exec": ["echo \"Part 1\"", "echo \"Part 2\""], | ||
"shell": null | ||
}, | ||
"targets": {} | ||
} | ||
}, | ||
"super_versatile": { | ||
"args": [], | ||
"env_vars": [], | ||
"subcommands": null, | ||
"order": null, | ||
"cmd": { | ||
"generic": { | ||
"exec": ["echo Test"], | ||
"shell": ["sh", "-c", "{COMMAND}"] | ||
}, | ||
"targets": { | ||
"magic_os": { | ||
"exec": ["please print string \"Test\" > console"], | ||
"shell": [ | ||
"please", | ||
"run", | ||
"command", | ||
"{COMMAND}", | ||
"against", | ||
"sys" | ||
] | ||
} | ||
} | ||
} | ||
}, | ||
"multistage_with_interpolation": { | ||
"args": ["name"], | ||
"env_vars": ["GREETING"], | ||
"subcommands": null, | ||
"order": null, | ||
"cmd": { | ||
"generic": { | ||
"exec": [ | ||
"echo \"Greeting: %GREETING\"", | ||
"echo \"Name: %name\"" | ||
], | ||
"shell": null | ||
}, | ||
"targets": {} | ||
} | ||
}, | ||
"echo": { | ||
"args": [], | ||
"env_vars": [], | ||
"subcommands": null, | ||
"order": null, | ||
"cmd": { | ||
"generic": { | ||
"exec": ["echo \"Message is: '%%'.\""], | ||
"shell": null | ||
}, | ||
"targets": {} | ||
} | ||
}, | ||
"power": { | ||
"args": ["name"], | ||
"env_vars": [], | ||
"subcommands": { | ||
"error": { | ||
"args": [], | ||
"env_vars": [], | ||
"subcommands": null, | ||
"order": null, | ||
"cmd": { | ||
"generic": { | ||
"exec": ["echo \"An error has occurred.\""], | ||
"shell": null | ||
}, | ||
"targets": {} | ||
} | ||
}, | ||
"basic": { | ||
"args": [], | ||
"env_vars": [], | ||
"subcommands": null, | ||
"order": null, | ||
"cmd": { | ||
"generic": { "exec": ["echo Test"], "shell": null }, | ||
"targets": {} | ||
} | ||
}, | ||
"multistage_with_interpolation": { | ||
"args": [], | ||
"env_vars": ["GREETING"], | ||
"subcommands": null, | ||
"order": null, | ||
"cmd": { | ||
"generic": { | ||
"exec": [ | ||
"echo \"Greeting: %GREETING\"", | ||
"echo \"Name: %name\"" | ||
], | ||
"shell": null | ||
}, | ||
"targets": {} | ||
} | ||
}, | ||
"nested": { | ||
"args": [], | ||
"env_vars": [], | ||
"subcommands": { | ||
"basic": { | ||
"args": [], | ||
"env_vars": [], | ||
"subcommands": null, | ||
"order": null, | ||
"cmd": { | ||
"generic": { | ||
"exec": ["echo Nested"], | ||
"shell": null | ||
}, | ||
"targets": {} | ||
} | ||
} | ||
}, | ||
"order": ["basic", {}], | ||
"cmd": null | ||
} | ||
}, | ||
"order": [ | ||
"basic", | ||
{ | ||
"Success": [ | ||
"multistage_with_interpolation", | ||
{ "Failure": ["error", {}] } | ||
], | ||
"Failure": ["error", {}] | ||
} | ||
], | ||
"cmd": null | ||
} | ||
}, | ||
"env_files": [".env"], | ||
"version": "0.3.0" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.