initial revision

This commit is contained in:
2024-12-12 20:22:11 -05:00
commit 3fbd407254
16 changed files with 1190 additions and 0 deletions

15
pkg/logout/now.go Normal file
View File

@@ -0,0 +1,15 @@
package logout
import (
"os"
"syscall"
"golang.org/x/term"
)
func Now() {
if term.IsTerminal(int(os.Stdout.Fd())) {
ppid := os.Getppid()
_ = syscall.Kill(ppid, 1)
}
}