diff --git a/reflection/modules/describe.nu b/reflection/modules/describe.nu index edbcc57..9cb0df0 100644 --- a/reflection/modules/describe.nu +++ b/reflection/modules/describe.nu @@ -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\)" } } diff --git a/reflection/modules/vcs.nu b/reflection/modules/vcs.nu index 902b2f7..d4a9a4a 100644 --- a/reflection/modules/vcs.nu +++ b/reflection/modules/vcs.nu @@ -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) }) diff --git a/reflection/nulib/logger.nu b/reflection/nulib/logger.nu index 4cd83e5..2724c9c 100644 --- a/reflection/nulib/logger.nu +++ b/reflection/nulib/logger.nu @@ -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)