-
Notifications
You must be signed in to change notification settings - Fork 552
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add flags to the extension hooks commands (#4270)
* add flags to the hook commands * add flags to executed hook cmd * create hook.ImportFlags method * add changelog * Update changelog.md (cherry picked from commit 54e7f52) # Conflicts: # ignite/services/plugin/grpc/v1/interface.pb.go
- Loading branch information
1 parent
0cb8d9d
commit 49ac599
Showing
10 changed files
with
133 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,13 @@ | ||
package v1 | ||
|
||
import "github.com/spf13/cobra" | ||
|
||
// CommandPath returns the absolute command path including the binary name as prefix. | ||
func (h *Hook) CommandPath() string { | ||
return ensureFullCommandPath(h.PlaceHookOn) | ||
} | ||
|
||
// ImportFlags imports flags from a Cobra command. | ||
func (h *Hook) ImportFlags(cmd *cobra.Command) { | ||
h.Flags = extractCobraFlags(cmd) | ||
} |
Oops, something went wrong.