mirror of
https://github.com/containrrr/watchtower.git
synced 2025-12-13 21:56:38 +01:00
preparations for soft deprecation of legacy notification args (#1377)
Co-authored-by: Simon Aronsson <simme@arcticbit.se>
This commit is contained in:
parent
2102a056de
commit
cb555f539d
18 changed files with 505 additions and 167 deletions
|
|
@ -66,6 +66,7 @@ func init() {
|
|||
|
||||
// Execute the root func and exit in case of errors
|
||||
func Execute() {
|
||||
rootCmd.AddCommand(notifyUpgradeCommand)
|
||||
if err := rootCmd.Execute(); err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
|
@ -139,6 +140,7 @@ func PreRun(cmd *cobra.Command, _ []string) {
|
|||
})
|
||||
|
||||
notifier = notifications.NewNotifier(cmd)
|
||||
notifier.AddLogHook()
|
||||
}
|
||||
|
||||
// Run is the main execution flow of the command
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue