Skip to content
This repository has been archived by the owner on Aug 30, 2024. It is now read-only.

Update root.go - Fix for filter-binds #11

Merged
merged 1 commit into from
Aug 25, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package cmd

Check warning on line 1 in cmd/root.go

View workflow job for this annotation

GitHub Actions / Revive

should have a package comment

import (
"fmt"
Expand All @@ -20,7 +20,7 @@
RunE: run,
}

func Execute() {

Check warning on line 23 in cmd/root.go

View workflow job for this annotation

GitHub Actions / Revive

exported function Execute should have comment or be unexported
if err := rootCmd.Execute(); err != nil {
fmt.Fprintln(os.Stderr, err)
os.Exit(1)
Expand All @@ -43,7 +43,7 @@
rootCmd.Flags().BoolVarP(&conf.Keywords, "keywords", "k", false, "Show keywords")
rootCmd.Flags().BoolVarP(&conf.Comments, "comments", "l", false, "Show comments in output")

rootCmd.Flags().StringP("filter-binds", "f", "", "get binding where command or dispatcher contains given string")
rootCmd.Flags().StringVarP(&conf.FilterBinds,"filter-binds", "f", "", "Filter binds where command or dispatcher contains given string")
}

func run(cmd *cobra.Command, args []string) error {
Expand Down
Loading