github.com/niedbalski/juju@v0.0.0-20190215020005-8ff100488e47/cmd/juju/romulus/commands/commands.go (about) 1 // Copyright 2016 Canonical Ltd. 2 // Licensed under the AGPLv3, see LICENCE file for details. 3 4 // Package commands provides functionality for registering all the romulus commands. 5 package commands 6 7 import ( 8 "github.com/juju/cmd" 9 10 "github.com/juju/juju/cmd/juju/romulus/agree" 11 "github.com/juju/juju/cmd/juju/romulus/budget" 12 "github.com/juju/juju/cmd/juju/romulus/createwallet" 13 "github.com/juju/juju/cmd/juju/romulus/listagreements" 14 "github.com/juju/juju/cmd/juju/romulus/listplans" 15 "github.com/juju/juju/cmd/juju/romulus/listwallets" 16 "github.com/juju/juju/cmd/juju/romulus/setplan" 17 "github.com/juju/juju/cmd/juju/romulus/setwallet" 18 "github.com/juju/juju/cmd/juju/romulus/showwallet" 19 "github.com/juju/juju/cmd/juju/romulus/sla" 20 ) 21 22 type commandRegister interface { 23 Register(cmd.Command) 24 } 25 26 // RegisterAll registers all romulus commands with the 27 // provided command registry. 28 func RegisterAll(r commandRegister) { 29 r.Register(agree.NewAgreeCommand()) 30 r.Register(listagreements.NewListAgreementsCommand()) 31 r.Register(budget.NewBudgetCommand()) 32 r.Register(createwallet.NewCreateWalletCommand()) 33 r.Register(listplans.NewListPlansCommand()) 34 r.Register(setwallet.NewSetWalletCommand()) 35 r.Register(setplan.NewSetPlanCommand()) 36 r.Register(showwallet.NewShowWalletCommand()) 37 r.Register(sla.NewSLACommand()) 38 r.Register(listwallets.NewListWalletsCommand()) 39 }