Debian Codegraph @

v0/cmd/tuf/commit.go

raw
1 package main
2
3 import (
4 "github.com/flynn/go-docopt"
5 "github.com/theupdateframework/go-tuf"
6 )
7
8 func init() {
9 register("commit", cmdCommit, `
10 usage: tuf commit
11
12 Commit staged files to the repository.
13 `)
14 }
15
16 func cmdCommit(args *docopt.Args, repo *tuf.Repo) error {
17 return repo.Commit()
18 }