Bash and IO working, basic error setup. Changelog:

Commands:
    - ls (only with -l)
    - cd (basic, probably unfinished)
This commit is contained in:
2025-11-20 14:10:20 +01:00
committed by Kamil Olszewski
parent 4428cc7e8a
commit e853268e52
15 changed files with 775 additions and 441 deletions

View File

@@ -0,0 +1,20 @@
<script lang="ts">
let { path, output, cmd }: { path: string; output: any; cmd: string } = $props(); //TODO: change any to matching
</script>
<p class="cwd" id="cwd">{path}</p>
<div class="pointer-wrapper mr-4 mb-2.5 flex flex-col justify-center font-terminal">
<div class=" flex flex-row items-center">
<span class=" pointer self-start pr-2">$</span>
<p>{cmd}</p>
</div>
<div style="white-space: preserve;" class=" relative wrap-break-word">
{#if typeof output === 'string'}
{output}
{:else if output instanceof Element}
{@html output.outerHTML}
{:else}
{output}
{/if}
</div>
</div>