code: func RegisteredCmdMethods() []string {
  	registerLock.Lock()
  	defer registerLock.Unlock()
  
  	methods := make([]string, 0, len(methodToInfo))
  	for k := range methodToInfo {
  		methods = append(methods, k)
  	}
  
  	sort.Sort(sort.StringSlice(methods))
  	return methods
  }
docs: // RegisteredCmdMethods returns a sorted list of methods for all registered
  // commands.