Skip to content

Commit

Permalink
refactor: remove unneeded PersistentRun
Browse files Browse the repository at this point in the history
Signed-off-by: knqyf263 <[email protected]>
  • Loading branch information
knqyf263 committed May 13, 2024
1 parent 9051fef commit d41b592
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions pkg/commands/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -720,10 +720,6 @@ func NewPluginCommand() *cobra.Command {
Short: "Manage plugins",
SilenceErrors: true,
SilenceUsage: true,
PersistentPreRun: func(cmd *cobra.Command, args []string) {
ctx := log.WithContextPrefix(cmd.Context(), "plugin")
cmd.SetContext(ctx)
},
}
cmd.AddCommand(
&cobra.Command{
Expand Down

0 comments on commit d41b592

Please sign in to comment.