Skip to content

Commit

Permalink
Merge pull request #2372 from carapace-sh/make-fix-chdir
Browse files Browse the repository at this point in the history
make: fix directory change
  • Loading branch information
rsteube authored May 5, 2024
2 parents fbe08cc + e24534f commit 8f1c133
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 8f1c133

Please sign in to comment.