Skip to content

Commit

Permalink
make: fix directory change
Browse files Browse the repository at this point in the history
  • Loading branch information
rsteube committed May 5, 2024
1 parent fbe08cc commit e24534f
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions completers/make_completer/cmd/root.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package cmd

import (
"fmt"

"github.com/carapace-sh/carapace"
"github.com/carapace-sh/carapace-bin/pkg/actions/tools/make"
"github.com/spf13/cobra"
Expand Down Expand Up @@ -77,9 +75,6 @@ func init() {
carapace.Gen(rootCmd).PositionalAnyCompletion(
carapace.ActionCallback(func(c carapace.Context) carapace.Action {
file := "Makefile"
if rootCmd.Flag("directory").Changed {
file = fmt.Sprintf("%v/Makefile", rootCmd.Flag("directory").Value.String())
}
if rootCmd.Flag("file").Changed {
file = rootCmd.Flag("file").Value.String()
}
Expand Down

0 comments on commit e24534f

Please sign in to comment.