chore: fix nu errors
Some checks failed
Rust CI / Security Audit (push) Has been cancelled
Rust CI / Check + Test + Lint (nightly) (push) Has been cancelled
Rust CI / Check + Test + Lint (stable) (push) Has been cancelled

This commit is contained in:
Jesús Pérez 2026-04-08 00:11:29 +01:00
parent 472952e29b
commit b00790f67b
Signed by: jesus
GPG key ID: 9F243E355E0BC939
3 changed files with 5 additions and 5 deletions

View file

@ -2915,12 +2915,12 @@ def render-project-text [data: record, actor: string, root: string]: nothing ->
if ($prov_schema | is-not-empty) { print $" schemas: ($prov_schema)" }
let prov_impl = ($d_prov.impl_repo_kind? | default "")
if ($prov_impl | is-not-empty) { print $" impl repo_kind: ($prov_impl)" }
print $" → ore describe domain (list implementations)"
print " → ore describe domain (list implementations)"
}
if ($d_orig | is-not-empty) and ($d_orig.id? | is-not-empty) {
let orig_path = ($d_orig.path? | default "")
if ($orig_path | is-not-empty) {
print $" → ONTOREF_PROJECT_ROOT=($orig_path) ore describe domain (framework details)"
print $" → ONTOREF_PROJECT_ROOT=($orig_path) ore describe domain \(framework details\)"
}
}

View file

@ -96,8 +96,7 @@ export def "current-ref" []: nothing -> string {
match (detect) {
"jj" => {
let r = do {
^jj --no-pager --repository $root bookmark list --pointing-to "@"
-T 'name ++ "\n"'
^jj --no-pager --repository $root bookmark list --pointing-to "@" -T "name ++ \"\\n\""
} | complete
if $r.exit_code != 0 { return "detached" }
let names = ($r.stdout | lines | where { |l| ($l | str trim | is-not-empty) })

View file

@ -57,7 +57,8 @@ def needs-rotation [log_file: string, policy: string]: nothing -> bool {
if not ($log_file | path exists) { return false }
let stat = ls -l $log_file | first
let file_modified = $stat.modified
let file_modified = $stat.modified?
if $file_modified == null { return false }
let now = (date now)
let file_suffix = (rotation-suffix $policy $file_modified)