mirror of
https://github.com/pgsty/minio.git
synced 2026-11-04 06:42:04 +03:00
Add trie to verify wrong inputs, and provide meaningful messages
This commit is contained in:
@@ -21,7 +21,11 @@ import "github.com/minio/cli"
|
||||
// Collection of minio commands currently supported are
|
||||
var commands = []cli.Command{}
|
||||
|
||||
// Collection of minio commands currently supported in a trie tree
|
||||
var commandsTree = newTrie()
|
||||
|
||||
// registerCommand registers a cli command
|
||||
func registerCommand(command cli.Command) {
|
||||
commands = append(commands, command)
|
||||
commandsTree.Insert(command.Name)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user