mirror of
https://github.com/rclone/rclone.git
synced 2025-08-15 08:12:45 +02:00
build: update all dependencies and fix deprecations
This commit is contained in:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user