mirror of
https://github.com/ko-build/ko.git
synced 2025-07-15 23:54:17 +02:00
Use signal.NotifyContext and cmd.Context (#482)
This commit is contained in:
@ -49,7 +49,7 @@ func addRun(topLevel *cobra.Command) {
|
||||
# You can also supply args and flags to the command.
|
||||
ko run ./cmd/baz -- -v arg1 arg2 --yes`,
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
ctx := createCancellableContext()
|
||||
ctx := cmd.Context()
|
||||
|
||||
// Args after -- are for kubectl, so only consider importPaths before it.
|
||||
importPaths := args
|
||||
|
Reference in New Issue
Block a user