Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove empty lines from output #329

Open
phd opened this issue Dec 10, 2024 · 0 comments
Open

Remove empty lines from output #329

phd opened this issue Dec 10, 2024 · 0 comments

Comments

@phd
Copy link

phd commented Dec 10, 2024

Add option/default to remove empty lines from output.

Current output looks like this:

Scanning processes...                                                                                                                                                                                                                       
Scanning candidates...                                                                                                                                                                                                                      
Scanning processor microcode...                                                                                                                                                                                                             
Scanning linux images...                                                                                                                                                                                                                    

Pending kernel upgrade!
Running kernel version:
  6.11.11-x64v3-xanmod1
Diagnostics:
  The currently running kernel has an ABI compatible upgrade pending.

Restarting the system to load the new kernel will not be handled automatically, so you should consider rebooting.

The processor microcode seems to be up-to-date.

Restarting services...

Service restarts being deferred:
 /etc/needrestart/restart.d/dbus.service
 systemctl restart networkd-dispatcher.service
 systemctl restart sddm.service

No containers need to be restarted.

User sessions running outdated binaries:
 phd @ session #1: kdeinit5[8263], plasma_session[8236], sddm-helper[7920], startplasma-x11[7939]
 phd @ user manager service: at-spi-bus-laun[8657], hp-systray[8675,8795], plasmashell[8623], systemd[7923]

No VM guests are running outdated hypervisor (qemu) binaries on this host.

After:

Scanning processes...                                                                                                                                                                                                                       
Scanning candidates...                                                                                                                                                                                                                      
Scanning processor microcode...                                                                                                                                                                                                             
Scanning linux images...                                                                                                                                                                                                                    
Pending kernel upgrade!
Running kernel version:
  6.11.11-x64v3-xanmod1
Diagnostics:
  The currently running kernel has an ABI compatible upgrade pending.
Restarting the system to load the new kernel will not be handled automatically, so you should consider rebooting.
The processor microcode seems to be up-to-date.
Restarting services...
Service restarts being deferred:
 /etc/needrestart/restart.d/dbus.service
 systemctl restart networkd-dispatcher.service
 systemctl restart sddm.service
No containers need to be restarted.
User sessions running outdated binaries:
 phd @ session #1: kdeinit5[8263], plasma_session[8236], sddm-helper[7920], startplasma-x11[7939]
 phd @ user manager service: at-spi-bus-laun[8657], hp-systray[8675,8795], plasmashell[8623], systemd[7923]
No VM guests are running outdated hypervisor (qemu) binaries on this host.

Also consider adding indent for sections:

Scanning processes...                                                                                                                                                                                                                       
Scanning candidates...                                                                                                                                                                                                                      
Scanning processor microcode...                                                                                                                                                                                                             
Scanning linux images...                                                                                                                                                                                                                    
Pending kernel upgrade!
    Running kernel version:
        6.11.11-x64v3-xanmod1
    Diagnostics:
        The currently running kernel has an ABI compatible upgrade pending.
    Restarting the system to load the new kernel will not be handled automatically, so you should consider rebooting.
The processor microcode seems to be up-to-date.
Restarting services...
Service restarts being deferred:
    /etc/needrestart/restart.d/dbus.service
    systemctl restart networkd-dispatcher.service
    systemctl restart sddm.service
No containers need to be restarted.
User sessions running outdated binaries:
    phd @ session #1: kdeinit5[8263], plasma_session[8236], sddm-helper[7920], startplasma-x11[7939]
    phd @ user manager service: at-spi-bus-laun[8657], hp-systray[8675,8795], plasmashell[8623], systemd[7923]
No VM guests are running outdated hypervisor (qemu) binaries on this host.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant