From eb8d7fc66a879e9463f3a13ab70f441fdf62a985 Mon Sep 17 00:00:00 2001 From: Morgan <2504532+mrgnw@users.noreply.github.com> Date: Mon, 25 Dec 2023 03:50:24 -0700 Subject: [PATCH] look for .run or .thing; sort lines --- zu | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/zu b/zu index 1970e4c..6e8db96 100755 --- a/zu +++ b/zu @@ -2,14 +2,15 @@ # "Zhu Li, do the thing!" # reads a .thing file and does the thing -if [[ -f .thing ]]; then ./.thing -elif [[ -f docker-compose.yml || -f docker-compose.yaml ]]; then docker-compose up +if [[ -f .run ]]; then ./.run +elif [[ -f .thing ]]; then ./.thing elif [[ -f main.py ]]; then uvicorn main:app --reload -elif [[ -f package.json ]]; then bun install && bun run build && bun run dev -elif [[ -f Package.swift ]]; then swift run elif [[ -f main.go ]]; then go run main.go elif [[ -f Cargo.toml ]]; then cargo run elif [[ -f index.html ]]; then python3 -m http.server 8000 +elif [[ -f package.json ]]; then bun install && bun run build && bun run dev +elif [[ -f Package.swift ]]; then swift run +elif [[ -f docker-compose.yml || -f docker-compose.yaml ]]; then docker-compose up else echo "Creating a .thing to do the thing" echo "#!/usr/bin/env zsh" > .thing -- knotmirror 0.0.1