code: func Map(ui cli.Ui) map[string]cli.CommandFactory {
  	m := make(map[string]cli.CommandFactory)
  	for name, fn := range registry {
  		thisFn := fn
  		m[name] = func() (cli.Command, error) {
  			return thisFn(ui)
  		}
  	}
  	return m
  }
docs: // Map returns a realized mapping of available CLI commands in a format that
  // the CLI class can consume. This should be called after all registration is
  // complete.