projects/command_connectors/src/command_connector.rb in foobara-0.0.4 vs projects/command_connectors/src/command_connector.rb in foobara-0.0.5
- old
+ new
@@ -389,10 +389,16 @@
domain_manifest[:types] = domain_manifest[:types].select do |type_name|
h[:type].key?(type_name.to_sym)
end
end
- h.sort.to_h
+ normalize_manifest(h)
+ end
+
+ def normalize_manifest(manifest_hash)
+ manifest_hash.map do |key, entries|
+ [key, entries.sort.to_h]
+ end.sort.to_h
end
def all_exposed_commands
command_registry.foobara_all_command
end