XR for Universal Blue and Fedora Atomic Desktops
vr fedora-atomic linux
3
fork

Configure Feed

Select the types of activity you want to include in your feed.

debug: include less sysinfo by default

Signed-off-by: Shiloh Fen <shiloh@shilohfen.com>

+13 -5
+13 -5
src/atomic-xr/_debug.nu
··· 6 6 export def main [ 7 7 output?: path 8 8 --base64 # Output base64 instead of creating a file 9 + --full (-f) # Include extra debug information 9 10 ] { 10 11 let output = $output | default (mktemp -t --suffix .msgpackz) | path expand 11 - log info "This function produces a brotli-compressed msgpack debug file. It can be useful to provide more context for hard-to-debug issues" 12 + log info "This function produces a brotli-compressed msgpack debug file." 12 13 13 14 if $base64 { 14 15 log info $"If you'd like to check what information it contains, use `nu -c '{base64} | decode base64 | from msgpackz'`" ··· 20 21 log info "Creating debug file..." 21 22 22 23 let flatpak_installed = flatpak list --columns application | lines 23 - 24 - { 25 - debug_version: 3 26 - sys: { 24 + let sys = if $full { 25 + { 27 26 host: (sys host) 28 27 cpu: (sys cpu) 29 28 mem: (sys mem) 30 29 temp: (sys temp) 31 30 disks: (sys disks) 32 31 } 32 + } else { 33 + { 34 + host: (sys host) 35 + } 36 + } 37 + 38 + { 39 + debug_version: 4 40 + sys: $sys 33 41 brew: { 34 42 installed: (which brew | is-not-empty) 35 43 doctor: (try {brew doctor o+e>| $in})