mirror of
https://github.com/restic/restic.git
synced 2025-12-22 22:46:14 +00:00
Move command init into cmd_* files
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user