Added file completion support for update command
@@ -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)
}
