Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: plugin usage strings #8768

Closed
wants to merge 1 commit into from
Closed
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 pkg/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@
log.Logger().Debugf("using the plugin command: %s", termcolor.ColorInfo(foundBinaryPath+" "+strings.Join(nextArgs, " ")))

// Giving plugin information about how it was invoked, so it can give correct help
pluginCommandName := os.Args[0] + " " + strings.Join(remainingArgs, " ")
pluginCommandName := os.Args[0] + " " + strings.Join(remainingArgs, " ")

Check warning on line 277 in pkg/cmd/root.go

View check run for this annotation

Codecov / codecov/patch

pkg/cmd/root.go#L277

Added line #L277 was not covered by tests
environ := append(os.Environ(),
fmt.Sprintf("BINARY_NAME=%s", pluginCommandName),
fmt.Sprintf("TOP_LEVEL_COMMAND=%s", pluginCommandName))
Expand Down
Loading