mirror of
https://github.com/redhat-developer/odo.git
synced 2025-10-19 03:06:19 +03:00
committed by
Suraj Narwade
parent
79925b6389
commit
2d9ab2825a
@@ -143,13 +143,17 @@ func main() {
|
||||
ValidArgs: []string{"help", "reference", "structure"},
|
||||
|
||||
Run: func(command *cobra.Command, args []string) {
|
||||
switch args[0] {
|
||||
case "reference":
|
||||
fmt.Print(referencePrinter(cli.RootCmd(), 0))
|
||||
case "structure":
|
||||
fmt.Print(commandPrinter(cli.RootCmd(), 0))
|
||||
default:
|
||||
if len(args) == 0 {
|
||||
fmt.Print(command.Usage())
|
||||
} else {
|
||||
switch args[0] {
|
||||
case "reference":
|
||||
fmt.Print(referencePrinter(cli.RootCmd(), 0))
|
||||
case "structure":
|
||||
fmt.Print(commandPrinter(cli.RootCmd(), 0))
|
||||
default:
|
||||
fmt.Print(command.Usage())
|
||||
}
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user