chore: fix nu errors
This commit is contained in:
parent
472952e29b
commit
b00790f67b
3 changed files with 5 additions and 5 deletions
|
|
@ -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)" }
|
if ($prov_schema | is-not-empty) { print $" schemas: ($prov_schema)" }
|
||||||
let prov_impl = ($d_prov.impl_repo_kind? | default "")
|
let prov_impl = ($d_prov.impl_repo_kind? | default "")
|
||||||
if ($prov_impl | is-not-empty) { print $" impl repo_kind: ($prov_impl)" }
|
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) {
|
if ($d_orig | is-not-empty) and ($d_orig.id? | is-not-empty) {
|
||||||
let orig_path = ($d_orig.path? | default "")
|
let orig_path = ($d_orig.path? | default "")
|
||||||
if ($orig_path | is-not-empty) {
|
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\)"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -96,8 +96,7 @@ export def "current-ref" []: nothing -> string {
|
||||||
match (detect) {
|
match (detect) {
|
||||||
"jj" => {
|
"jj" => {
|
||||||
let r = do {
|
let r = do {
|
||||||
^jj --no-pager --repository $root bookmark list --pointing-to "@"
|
^jj --no-pager --repository $root bookmark list --pointing-to "@" -T "name ++ \"\\n\""
|
||||||
-T 'name ++ "\n"'
|
|
||||||
} | complete
|
} | complete
|
||||||
if $r.exit_code != 0 { return "detached" }
|
if $r.exit_code != 0 { return "detached" }
|
||||||
let names = ($r.stdout | lines | where { |l| ($l | str trim | is-not-empty) })
|
let names = ($r.stdout | lines | where { |l| ($l | str trim | is-not-empty) })
|
||||||
|
|
|
||||||
|
|
@ -57,7 +57,8 @@ def needs-rotation [log_file: string, policy: string]: nothing -> bool {
|
||||||
if not ($log_file | path exists) { return false }
|
if not ($log_file | path exists) { return false }
|
||||||
|
|
||||||
let stat = ls -l $log_file | first
|
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 now = (date now)
|
||||||
|
|
||||||
let file_suffix = (rotation-suffix $policy $file_modified)
|
let file_suffix = (rotation-suffix $policy $file_modified)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue