mirror of
https://github.com/pnx/dotfiles
synced 2026-11-15 10:26:47 +01:00
update opencode
This commit is contained in:
parent
c7cf88af98
commit
38989f191a
9 changed files with 2240 additions and 14 deletions
|
|
@ -72,14 +72,14 @@ find_project_root() {
|
|||
local dir
|
||||
dir="$(pwd)"
|
||||
while [ "$dir" != "/" ]; do
|
||||
if [ -d "$dir/.git" ] || [ -f "$dir/package.json" ]; then
|
||||
if [ -e "$dir/.git" ] || [ -f "$dir/package.json" ]; then
|
||||
echo "$dir"
|
||||
return 0
|
||||
fi
|
||||
dir="$(dirname "$dir")"
|
||||
done
|
||||
pwd
|
||||
return 1
|
||||
return 0
|
||||
}
|
||||
|
||||
# Handle help
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
#!/usr/bin/env npx ts-node
|
||||
/// <reference types="node" />
|
||||
/**
|
||||
* Task Management CLI
|
||||
*
|
||||
|
|
@ -19,8 +20,8 @@
|
|||
* .tmp/tasks/completed/{feature-slug}/
|
||||
*/
|
||||
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
import * as fs from "node:fs";
|
||||
import * as path from "node:path";
|
||||
|
||||
// Find project root (look for .git or package.json)
|
||||
function findProjectRoot(): string {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue