github.com/ggreg80/ketos@v0.0.0-20171109040536-049616f51ddb/cmd/xcb/main.go (about) 1 package main 2 3 import ( 4 "github.com/setekhid/ketos/cmd/commit" 5 "github.com/setekhid/ketos/cmd/init" 6 "github.com/setekhid/ketos/cmd/oplayer" 7 "github.com/setekhid/ketos/cmd/opmanifest" 8 "github.com/setekhid/ketos/cmd/pull" 9 "github.com/setekhid/ketos/cmd/push" 10 "github.com/setekhid/ketos/cmd/tag" 11 "github.com/setekhid/ketos/cmd/version" 12 log "github.com/sirupsen/logrus" 13 ) 14 15 func init() { 16 log.SetLevel(log.DebugLevel) 17 } 18 19 func main() { 20 21 Command.AddCommand( 22 version.Command, 23 24 // upper level 25 initk.Command, 26 tag.Command, 27 pull.Command, 28 commit.Command, 29 push.Command, 30 31 // lower level 32 opmanifest.CatManifest, 33 opmanifest.PutManifest, 34 oplayer.HasLayer, 35 oplayer.PullLayer, 36 oplayer.PushLayer, 37 ) 38 39 err := Command.Execute() 40 if err != nil { 41 log.Fatalln(err) 42 } 43 }