mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-01 19:38:13 +03:00
* temporary dvctr * start of work * fix: timeouts in windows * fish? * feat: better, working stuff * refactor: rename database-seeds to seeds/ * better * fdsaf * feat: don't let our container get owned by root * fix: better user handling * feat: falling asleep at my desk i yield to you what i have done * feat: autoadminify * docs: denote trickshot * feat: open in browser on launch * better seeds workings... * fix: dont kill shell * docs: mention dev/debs * fix: whoops * fix: make seeds load within the century * feat: rest of the containerisation * feat: new alias * style: fix linter errors * fix: bad call * fix: better justfile
20 lines
733 B
Fish
20 lines
733 B
Fish
function _tide_item_pulumi
|
|
if path filter $_tide_parent_dirs/Pulumi.yaml | read -l yaml_path
|
|
if command -q sha1sum
|
|
echo -n "$yaml_path" | sha1sum | string match -qr "(?<path_hash>.{40})"
|
|
else if command -q shasum
|
|
echo -n "$yaml_path" | shasum | string match -qr "(?<path_hash>.{40})"
|
|
else
|
|
return
|
|
end
|
|
|
|
string match -qr 'name: *(?<project_name>.*)' <$yaml_path
|
|
set -l workspace_file "$HOME/.pulumi/workspaces/$project_name-$path_hash-workspace.json"
|
|
|
|
if test -e $workspace_file
|
|
string match -qr '"stack": *"(?<stack>.*)"' <$workspace_file
|
|
_tide_print_item pulumi $tide_pulumi_icon' ' $stack
|
|
end
|
|
end
|
|
end
|