feat: add control panel
This commit is contained in:
@@ -24,11 +24,15 @@ fi
|
||||
|
||||
_casan_paths_self="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
|
||||
# Walk up from a starting dir until a dir containing `.specify/` is found.
|
||||
# Walk up from a starting dir to the app/bundle root. Primary marker is the `.specify`
|
||||
# state dir (present in an adopted repo). Secondary marker is `packages/casan-harness`
|
||||
# (present in a freshly-extracted release bundle that has no `.specify` yet) — so a
|
||||
# just-unpacked core/devkit/demo bundle resolves correctly and creates `.specify` on
|
||||
# first write. In a real repo `.specify` matches first, so behavior is unchanged.
|
||||
_casan_find_app_root() {
|
||||
local d="$1"
|
||||
while [[ -n "$d" && "$d" != "/" ]]; do
|
||||
if [[ -d "$d/.specify" ]]; then
|
||||
if [[ -d "$d/.specify" || -d "$d/packages/casan-harness" ]]; then
|
||||
printf '%s\n' "$d"
|
||||
return 0
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user