Added file completion support for update command (#1013)

This commit is contained in:
Mrinal Das
2018-11-21 14:13:30 +05:30
committed by Suraj Narwade
parent 2e13af9ac8
commit 3d2076cfbd

View File

@@ -4,6 +4,7 @@ import (
"fmt"
"github.com/redhat-developer/odo/pkg/odo/genericclioptions"
"github.com/redhat-developer/odo/pkg/odo/util"
"github.com/redhat-developer/odo/pkg/odo/util/completion"
"os"
"path/filepath"
@@ -110,5 +111,8 @@ func init() {
//Adding `--project` flag
addProjectFlag(updateCmd)
completion.RegisterCommandFlagHandler(updateCmd, "local", completion.FileCompletionHandler)
completion.RegisterCommandFlagHandler(updateCmd, "binary", completion.FileCompletionHandler)
rootCmd.AddCommand(updateCmd)
}