mirror of
https://github.com/pgsty/minio.git
synced 2026-08-09 07:43:29 +03:00
trie: new package (#3729)
This implements a simple trie tree for minio server/tools. This package borrows idea from https://godoc.org/golang.org/x/text/internal/triegen.
This commit is contained in:
+5
-2
@@ -16,13 +16,16 @@
|
||||
|
||||
package cmd
|
||||
|
||||
import "github.com/minio/cli"
|
||||
import (
|
||||
"github.com/minio/cli"
|
||||
"github.com/minio/minio/pkg/trie"
|
||||
)
|
||||
|
||||
// Collection of minio commands currently supported are.
|
||||
var commands = []cli.Command{}
|
||||
|
||||
// Collection of minio commands currently supported in a trie tree.
|
||||
var commandsTree = newTrie()
|
||||
var commandsTree = trie.NewTrie()
|
||||
|
||||
// registerCommand registers a cli command.
|
||||
func registerCommand(command cli.Command) {
|
||||
|
||||
Reference in New Issue
Block a user