refactor: perform more clean up in codebase
Some checks failed
Go CI Pipeline / ci (push) Has been cancelled
Some checks failed
Go CI Pipeline / ci (push) Has been cancelled
This commit is contained in:
parent
20b4b7ba2d
commit
127018b565
4 changed files with 34 additions and 19 deletions
4
cmd.go
4
cmd.go
|
|
@ -79,10 +79,10 @@ Use --background (-b) to keep tunnels running in the background without auto-con
|
|||
fmt.Println("INFO: Background shutdown complete.")
|
||||
|
||||
} else {
|
||||
fmt.Println("INFO: Automatically connecting to workstation via SSH tunnel...")
|
||||
fmt.Println("Automatically connecting to workstation via SSH tunnel...")
|
||||
a.connectToWorkstation()
|
||||
|
||||
fmt.Println("INFO: Workstation SSH session finished.")
|
||||
fmt.Println("Workstation SSH session finished.")
|
||||
slog.Info("Foreground session ended, cleanup via defer sshCon.Close() will run.")
|
||||
if err := a.timeStore.StopTracking(); err != nil {
|
||||
slog.Warn(fmt.Sprintf("Failed to stop time tracking: %v", err))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue