include bash in flow inlines

This commit is contained in:
Ruben Fiszel
2022-11-07 00:10:36 +01:00
parent fe7bfecc0a
commit b490f83575
3 changed files with 16 additions and 1 deletions
@@ -13,7 +13,8 @@
const languageColors: Record<RawScript.language, BadgeColor> = {
[RawScript.language.GO]: 'dark-indigo',
[RawScript.language.DENO]: 'dark-blue',
[RawScript.language.PYTHON3]: 'dark-green'
[RawScript.language.PYTHON3]: 'dark-green',
[RawScript.language.BASH]: 'dark-yellow'
}
</script>
@@ -55,6 +55,19 @@
}}
/>
<FlowScriptPicker
label="Inline Bash"
icon={faCode}
iconColor="text-green-700"
on:click={() => {
dispatch('new', {
language: RawScript.language.BASH,
kind: failureModule ? 'failure' : 'script',
subkind: 'flow'
})
}}
/>
{#if !failureModule}
<FlowScriptPicker
label={`Inline PostgreSQL`}
+1
View File
@@ -177,6 +177,7 @@ components:
- deno
- python3
- go
- bash
path:
type: string
type: