feat: initial commit

This commit is contained in:
johannes committed 2026-07-26 11:45:12 +02:00
commit 4b3cd1d2b1
453 files changed
+52428

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
export def agree [
prompt
--default-not (-n)
] {
let prompt = if ($prompt | str ends-with '!') {
$'(ansi red)($prompt)(ansi reset)'
} else {
$'($prompt)'
}
(if $default_not { [no yes] } else { [yes no] } | input list $prompt) == 'yes'
}
export def tips [msg] {
print -e $"(ansi light_gray)($msg)(ansi reset)"
}