build: update all dependencies and fix deprecations

This commit is contained in:
Nick Craig-Wood
2025-02-26 11:41:18 +00:00
parent bf150a5b7d
commit 431386085f
7 changed files with 211 additions and 202 deletions

View File

@ -51,7 +51,7 @@ var helpCommand = &cobra.Command{
Short: Root.Short,
Long: Root.Long,
Run: func(command *cobra.Command, args []string) {
Root.SetOutput(os.Stdout)
Root.SetOut(os.Stdout)
_ = Root.Usage()
},
}
@ -85,7 +85,7 @@ var helpFlags = &cobra.Command{
} else if len(args) > 0 {
Root.SetUsageTemplate(filterFlagsMultiGroupTemplate)
}
Root.SetOutput(os.Stdout)
Root.SetOut(os.Stdout)
}
_ = command.Usage()
},
@ -106,7 +106,7 @@ var helpBackend = &cobra.Command{
Short: "List full info about a backend",
Run: func(command *cobra.Command, args []string) {
if len(args) == 0 {
Root.SetOutput(os.Stdout)
Root.SetOut(os.Stdout)
_ = command.Usage()
return
}