Capture context from cobra CLI and pass forward (#2551)
Signed-off-by: Sanket Sudake <sanketsudake@gmail.com>
This commit is contained in:
@@ -17,6 +17,7 @@ limitations under the License.
|
||||
package dummy
|
||||
|
||||
import (
|
||||
"context"
|
||||
"time"
|
||||
|
||||
fCli "github.com/fission/fission/pkg/fission-cli/cliwrapper/cli"
|
||||
@@ -33,6 +34,10 @@ func TestFlagSet() Cli {
|
||||
return Cli{c: make(map[string]interface{})}
|
||||
}
|
||||
|
||||
func (u Cli) Context() context.Context {
|
||||
return context.TODO()
|
||||
}
|
||||
|
||||
// Set allows to set any kinds of value with given key.
|
||||
// The type of set value should be matched with the returned
|
||||
// type of GetXXX function.
|
||||
|
||||
Reference in New Issue
Block a user