Move command init into cmd_* files

This commit is contained in:
Alexander Neumann
2014-11-30 22:39:58 +01:00
parent bb8c52a974
commit 172b7bf123
8 changed files with 28 additions and 8 deletions

View File

@@ -10,6 +10,10 @@ import (
"github.com/fd0/khepri/backend"
)
func init() {
commands["cat"] = commandCat
}
func commandCat(be backend.Server, key *khepri.Key, args []string) error {
if len(args) != 2 {
return errors.New("usage: cat [blob|tree|snapshot|key|lock] ID")