state/print: collect and output state information of all users

The -state flag now outputs state of all users. The old behaviour can be accessed via the -state-current flag, user is selected via -u.

Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
This commit is contained in:
2024-09-08 13:19:48 +09:00
parent 60e4846542
commit 83af555c97
3 changed files with 111 additions and 58 deletions

View File

@@ -1,5 +1,11 @@
package state
var (
cleanupCandidate []string
enablements *Enablements
xcbActionComplete bool
)
func RegisterRevertPath(p string) {
cleanupCandidate = append(cleanupCandidate, p)
}