init: pristine aerc 0.20.0 source
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
package hooks
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
"git.sr.ht/~rjarry/aerc/config"
|
||||
)
|
||||
|
||||
type AercShutdown struct {
|
||||
Lifetime time.Duration
|
||||
}
|
||||
|
||||
func (a *AercShutdown) Cmd() string {
|
||||
return config.Hooks.AercShutdown
|
||||
}
|
||||
|
||||
func (a *AercShutdown) Env() []string {
|
||||
return []string{
|
||||
fmt.Sprintf("AERC_LIFETIME=%s", a.Lifetime.String()),
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user