github.com/makyo/juju@v0.0.0-20160425123129-2608902037e9/cmd/juju/main.go (about) 1 // Copyright 2012, 2013 Canonical Ltd. 2 // Licensed under the AGPLv3, see LICENCE file for details. 3 4 package main 5 6 import ( 7 "os" 8 9 "github.com/juju/loggo" 10 11 "github.com/juju/juju/cmd/juju/commands" 12 components "github.com/juju/juju/component/all" 13 // Import the providers. 14 _ "github.com/juju/juju/provider/all" 15 ) 16 17 var log = loggo.GetLogger("juju.cmd.juju") 18 19 func init() { 20 if err := components.RegisterForClient(); err != nil { 21 log.Criticalf("unable to register client components: %v", err) 22 os.Exit(1) 23 } 24 } 25 26 func main() { 27 commands.Main(os.Args) 28 }