// Deregister calls out to the pkg lib to delete the broker and display the output
Deregister calls out to the pkg lib to delete the broker and display the output
// Deregister calls out to the pkg lib to delete the broker and display the output
func (c *DeregisterCmd) Deregister() error {
	err := c.Context.App.Deregister(c.BrokerName)
	if err != nil {
		return err
	}
	fmt.Fprintf(c.Context.Output, "Successfully removed broker %q\n", c.BrokerName)
	return nil
}
func ( c * DeregisterCmd ) Deregister ( ) error { err := c . Context . App . Deregister ( c . BrokerName ) if err != nil { return err } fmt . Fprintf ( c . Context . Output , " \n " , c . BrokerName ) return nil }
Deregister calls out to the pkg lib to delete the broker and display the output
Deregister calls out to the pkg lib to delete the broker and display the output