mirror of
https://github.com/redhat-developer/odo.git
synced 2025-10-19 03:06:19 +03:00
Added file completion support for update command (#1013)
This commit is contained in:
committed by
Suraj Narwade
parent
2e13af9ac8
commit
3d2076cfbd
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user