Work workspace with runs, change and facts tabs; vim keys; responsive Board; theme file

This commit is contained in:
Sam
2026-11-10 14:00:58 +11:00
parent 1bfb9b05ed
commit 4e3c955350
7 changed files with 416 additions and 20 deletions

View File

@@ -10,6 +10,7 @@ package main
import (
"context"
"fmt"
"os"
"os/exec"
"strings"
"time"
@@ -77,6 +78,9 @@ func worktreeDiff(dir, base string) (string, error) {
if base == "" {
base = "main"
}
if st, err := os.Stat(dir); err != nil || !st.IsDir() {
return "", fmt.Errorf("the task's folder %s no longer exists, so there is nothing to compare", dir)
}
ctx, cancel := context.WithTimeout(context.Background(), 15*time.Second)
defer cancel()