Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:21
rabbitmqctl
0002-mix-format-rabbitmq_cli.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0002-mix-format-rabbitmq_cli.patch of Package rabbitmqctl
From 4cbbaad2df968450dd5b139c8cac0e21be89b6b3 Mon Sep 17 00:00:00 2001 From: Ayanda Dube <ayanda.dube@digiterl.com> Date: Sun, 2 Oct 2022 18:54:11 +0100 Subject: [PATCH] mix format rabbitmq_cli --- deps/rabbitmq_cli/config/config.exs | 3 +- .../lib/rabbitmq/cli/auto_complete.ex | 2 + .../lib/rabbitmq/cli/command_behaviour.ex | 138 ++++--- .../lib/rabbitmq/cli/core/alarms.ex | 5 + .../lib/rabbitmq/cli/core/command_modules.ex | 1 + .../lib/rabbitmq/cli/core/feature_flags.ex | 9 +- .../lib/rabbitmq/cli/core/helpers.ex | 21 +- .../lib/rabbitmq/cli/core/input.ex | 24 +- .../lib/rabbitmq/cli/core/listeners.ex | 120 ++++-- .../lib/rabbitmq/cli/core/log_files.ex | 44 ++- .../lib/rabbitmq/cli/core/memory.ex | 16 +- .../lib/rabbitmq/cli/core/networking.ex | 73 ++-- .../lib/rabbitmq/cli/core/parser.ex | 7 +- .../lib/rabbitmq/cli/core/platform.ex | 8 +- .../lib/rabbitmq/cli/core/validators.ex | 1 - .../lib/rabbitmq/cli/core/version.ex | 4 +- .../cli/ctl/commands/add_user_command.ex | 45 ++- .../cli/ctl/commands/add_vhost_command.ex | 62 ++- .../ctl/commands/authenticate_user_command.ex | 23 +- .../cli/ctl/commands/autocomplete_command.ex | 2 + .../commands/await_online_nodes_command.ex | 9 +- .../ctl/commands/change_password_command.ex | 24 +- .../ctl/commands/clear_permissions_command.ex | 14 +- .../clear_topic_permissions_command.ex | 14 +- .../ctl/commands/clear_user_limits_command.ex | 1 + .../commands/close_all_connections_command.ex | 19 +- .../ctl/commands/close_connection_command.ex | 3 +- .../ctl/commands/cluster_status_command.ex | 320 +++++++++------ .../cli/ctl/commands/decode_command.ex | 25 +- .../cli/ctl/commands/delete_user_command.ex | 9 +- .../commands/enable_feature_flag_command.ex | 38 +- .../cli/ctl/commands/encode_command.ex | 49 ++- .../cli/ctl/commands/environment_command.ex | 4 +- .../rabbitmq/cli/ctl/commands/eval_command.ex | 20 +- .../cli/ctl/commands/eval_file_command.ex | 12 +- .../commands/export_definitions_command.ex | 94 +++-- .../cli/ctl/commands/force_boot_command.ex | 4 +- .../cli/ctl/commands/force_gc_command.ex | 7 +- .../cli/ctl/commands/force_reset_command.ex | 2 +- .../commands/forget_cluster_node_command.ex | 32 +- .../rabbitmq/cli/ctl/commands/help_command.ex | 116 ++++-- .../cli/ctl/commands/hipe_compile_command.ex | 1 + .../commands/import_definitions_command.ex | 87 ++-- .../cli/ctl/commands/join_cluster_command.ex | 13 +- .../ctl/commands/list_consumers_command.ex | 23 +- .../commands/list_feature_flags_command.ex | 20 +- .../cli/ctl/commands/list_queues_command.ex | 11 +- .../list_unresponsive_queues_command.ex | 8 +- .../ctl/commands/list_user_limits_command.ex | 4 +- .../ctl/commands/node_health_check_command.ex | 3 +- .../rabbitmq/cli/ctl/commands/ping_command.ex | 9 +- .../cli/ctl/commands/report_command.ex | 9 +- .../cli/ctl/commands/reset_command.ex | 3 +- .../ctl/commands/resume_listeners_command.ex | 15 +- .../cli/ctl/commands/rotate_logs_command.ex | 1 + .../commands/set_global_parameter_command.ex | 2 + .../cli/ctl/commands/set_log_level_command.ex | 4 +- .../commands/set_operator_policy_command.ex | 17 +- .../cli/ctl/commands/set_parameter_command.ex | 4 +- .../ctl/commands/set_permissions_command.ex | 14 +- .../cli/ctl/commands/set_policy_command.ex | 17 +- .../commands/set_topic_permissions_command.ex | 16 +- .../cli/ctl/commands/set_user_tags_command.ex | 6 +- .../ctl/commands/set_vhost_tags_command.ex | 20 +- .../set_vm_memory_high_watermark_command.ex | 2 +- .../cli/ctl/commands/shutdown_command.ex | 37 +- .../cli/ctl/commands/start_app_command.ex | 3 +- .../cli/ctl/commands/status_command.ex | 196 +++++---- .../rabbitmq/cli/ctl/commands/stop_command.ex | 9 +- .../ctl/commands/suspend_listeners_command.ex | 15 +- .../cli/ctl/commands/sync_queue_command.ex | 4 +- .../commands/update_cluster_nodes_command.ex | 7 +- .../cli/ctl/commands/version_command.ex | 3 + .../rabbitmq/cli/ctl/commands/wait_command.ex | 7 +- .../lib/rabbitmq/cli/default_output.ex | 10 +- .../diagnostics/commands/alarms_command.ex | 3 +- .../commands/certificates_command.ex | 4 +- .../commands/check_alarms_command.ex | 4 +- .../check_certificate_expiration_command.ex | 27 +- .../commands/check_local_alarms_command.ex | 3 +- .../check_port_connectivity_command.ex | 4 +- .../commands/check_port_listener_command.ex | 6 +- .../check_protocol_listener_command.ex | 4 +- .../commands/check_running_command.ex | 4 +- .../commands/cipher_suites_command.ex | 33 +- .../command_line_arguments_command.ex | 5 +- .../commands/consume_event_stream_command.ex | 44 ++- ...le_auth_attempt_source_tracking_command.ex | 11 +- ...le_auth_attempt_source_tracking_command.ex | 10 +- .../commands/erlang_cookie_hash_command.ex | 7 +- .../commands/erlang_cookie_sources_command.ex | 46 ++- .../commands/erlang_version_command.ex | 18 +- .../commands/is_booting_command.ex | 6 +- .../commands/is_running_command.ex | 13 +- .../list_network_interfaces_command.ex | 27 +- .../list_node_auth_attempt_stats_command.ex | 29 +- .../commands/log_location_command.ex | 26 +- .../diagnostics/commands/log_tail_command.ex | 11 +- .../commands/log_tail_stream_command.ex | 40 +- .../commands/maybe_stuck_command.ex | 4 +- .../commands/memory_breakdown_command.ex | 5 +- .../diagnostics/commands/observer_command.ex | 7 +- .../diagnostics/commands/os_env_command.ex | 27 +- .../commands/remote_shell_command.ex | 5 +- .../commands/resolve_hostname_command.ex | 54 ++- .../commands/resolver_info_command.ex | 34 +- .../commands/runtime_thread_stats_command.ex | 3 +- .../commands/server_version_command.ex | 4 +- .../commands/tls_versions_command.ex | 3 +- .../cli/diagnostics/diagnostics_helpers.ex | 9 +- .../lib/rabbitmq/cli/formatter_behaviour.ex | 4 +- .../cli/formatters/formatter_helpers.ex | 1 - .../lib/rabbitmq/cli/formatters/json.ex | 18 +- .../rabbitmq/cli/formatters/json_stream.ex | 18 +- .../lib/rabbitmq/cli/formatters/plugins.ex | 2 + .../rabbitmq/cli/formatters/pretty_table.ex | 140 ++++--- .../cli/plugins/commands/disable_command.ex | 10 +- .../cli/plugins/commands/enable_command.ex | 10 +- .../cli/plugins/commands/is_enabled.ex | 9 +- .../cli/plugins/commands/list_command.ex | 5 +- .../cli/plugins/commands/set_command.ex | 10 +- .../lib/rabbitmq/cli/plugins/error_output.ex | 4 +- .../lib/rabbitmq/cli/printer_behaviour.ex | 3 +- .../cli/queues/commands/add_member_command.ex | 1 + ...if_node_is_mirror_sync_critical_command.ex | 50 ++- ...heck_if_node_is_quorum_critical_command.ex | 60 ++- .../cli/queues/commands/grow_command.ex | 97 +++-- .../cli/queues/commands/peek_command.ex | 34 +- .../cli/queues/commands/rebalance_command.ex | 24 +- .../commands/reclaim_quorum_memory_command.ex | 7 +- .../cli/queues/commands/shrink_command.ex | 39 +- .../commands/delete_replica_command.ex | 1 + .../set_stream_retention_policy_command.ex | 7 +- .../streams/commands/stream_status_command.ex | 5 +- .../lib/rabbitmq/cli/time_unit.ex | 1 - .../await_online_quorum_plus_one_command.ex | 62 ++- ...wait_online_synchronized_mirror_command.ex | 62 ++- .../cli/upgrade/commands/drain_command.ex | 16 +- .../upgrade/commands/post_upgrade_command.ex | 3 +- .../cli/upgrade/commands/revive_command.ex | 16 +- deps/rabbitmq_cli/lib/rabbitmqctl.ex | 92 +++-- deps/rabbitmq_cli/mix.exs | 164 ++++---- .../test/core/args_processing_test.exs | 43 +- .../test/core/auto_complete_test.exs | 37 +- .../test/core/command_modules_test.exs | 67 ++-- .../test/core/default_output_test.exs | 43 +- .../test/core/distribution_test.exs | 4 + deps/rabbitmq_cli/test/core/helpers_test.exs | 43 +- .../test/core/information_unit_test.exs | 31 +- .../test/core/json_stream_test.exs | 7 +- .../rabbitmq_cli/test/core/listeners_test.exs | 68 ++-- deps/rabbitmq_cli/test/core/os_pid_test.exs | 27 +- deps/rabbitmq_cli/test/core/parser_test.exs | 217 +++++----- .../test/core/rpc_stream_test.exs | 141 +++++-- .../test/core/table_formatter_test.exs | 77 +++- .../test/ctl/add_user_command_test.exs | 21 +- .../test/ctl/add_vhost_command_test.exs | 29 +- .../ctl/authenticate_user_command_test.exs | 35 +- .../test/ctl/autocomplete_command_test.exs | 10 +- .../ctl/await_online_nodes_command_test.exs | 8 +- .../test/ctl/await_startup_command_test.exs | 2 +- .../test/ctl/cancel_sync_command_test.exs | 15 +- .../change_cluster_node_type_command_test.exs | 50 +-- .../test/ctl/change_password_command_test.exs | 19 +- .../clear_global_parameter_command_test.exs | 38 +- .../clear_operator_policy_command_test.exs | 47 +-- .../test/ctl/clear_parameter_command_test.exs | 58 +-- .../test/ctl/clear_password_command_test.exs | 11 +- .../ctl/clear_permissions_command_test.exs | 15 +- .../test/ctl/clear_policy_command_test.exs | 49 +-- .../clear_topic_permissions_command_test.exs | 24 +- .../ctl/clear_user_limits_command_test.exs | 48 +-- .../ctl/clear_vhost_limits_command_test.exs | 28 +- .../close_all_connections_command_test.exs | 93 +++-- ...lose_all_user_connections_command_test.exs | 37 +- .../ctl/close_connection_command_test.exs | 61 +-- .../test/ctl/cluster_status_command_test.exs | 1 - .../test/ctl/decode_command_test.exs | 92 +++-- .../test/ctl/delete_queue_command_test.exs | 69 ++-- .../test/ctl/delete_user_command_test.exs | 3 +- .../test/ctl/delete_vhost_command_test.exs | 8 +- .../test/ctl/enable_feature_flag_test.exs | 41 +- .../test/ctl/encode_command_test.exs | 74 ++-- .../test/ctl/environment_command_test.exs | 5 +- .../test/ctl/eval_command_test.exs | 18 +- .../test/ctl/eval_file_command_test.exs | 1 - .../test/ctl/exec_command_test.exs | 2 - .../ctl/export_definitions_command_test.exs | 47 ++- .../test/ctl/force_gc_command_test.exs | 2 - .../test/ctl/force_reset_command_test.exs | 23 +- .../test/ctl/help_command_test.exs | 38 +- .../ctl/import_definitions_command_test.exs | 42 +- .../test/ctl/join_cluster_command_test.exs | 70 ++-- .../test/ctl/list_bindings_command_test.exs | 29 +- .../test/ctl/list_channels_command_test.exs | 75 ++-- .../test/ctl/list_ciphers_command_test.exs | 6 +- .../ctl/list_connections_command_test.exs | 40 +- .../test/ctl/list_consumers_command_test.exs | 224 +++++++---- .../test/ctl/list_exchanges_command_test.exs | 124 +++--- .../ctl/list_feature_flags_command_test.exs | 75 ++-- .../list_global_parameters_command_test.exs | 28 +- .../test/ctl/list_hashes_command_test.exs | 6 +- .../list_operator_policies_command_test.exs | 83 ++-- .../test/ctl/list_parameters_command_test.exs | 78 ++-- .../ctl/list_permissions_command_test.exs | 32 +- .../test/ctl/list_policies_command_test.exs | 82 ++-- .../test/ctl/list_queues_command_test.exs | 94 +++-- .../list_topic_permissions_command_test.exs | 22 +- .../ctl/list_user_limits_command_test.exs | 28 +- .../list_user_permissions_command_test.exs | 41 +- ...st_user_topic_permissions_command_test.exs | 15 +- .../test/ctl/list_users_command_test.exs | 31 +- .../ctl/list_vhost_limits_command_test.exs | 42 +- .../test/ctl/list_vhosts_command_test.exs | 69 ++-- .../ctl/node_health_check_command_test.exs | 1 - .../test/ctl/ping_command_test.exs | 3 +- .../test/ctl/purge_queue_command_test.exs | 22 +- .../test/ctl/report_command_test.exs | 9 +- .../test/ctl/reset_command_test.exs | 24 +- .../test/ctl/restart_vhost_command_test.exs | 51 +-- .../ctl/resume_listeners_command_test.exs | 3 +- .../ctl/set_cluster_name_command_test.exs | 2 - .../ctl/set_disk_free_limit_command_test.exs | 111 +++--- .../ctl/set_global_parameter_command_test.exs | 33 +- .../test/ctl/set_log_level_command_test.exs | 10 +- .../ctl/set_operator_policy_command_test.exs | 58 +-- .../test/ctl/set_parameter_command_test.exs | 62 +-- .../test/ctl/set_permissions_command_test.exs | 50 +-- .../test/ctl/set_policy_command_test.exs | 79 ++-- .../set_topic_permissions_command_test.exs | 51 +-- .../test/ctl/set_user_limits_command_test.exs | 63 ++- .../test/ctl/set_user_tags_command_test.exs | 99 ++--- .../ctl/set_vhost_limits_command_test.exs | 58 +-- .../test/ctl/set_vhost_tags_command_test.exs | 91 ++--- ..._vm_memory_high_watermark_command_test.exs | 80 ++-- .../test/ctl/shutdown_command_test.exs | 7 +- .../test/ctl/start_app_command_test.exs | 1 - .../test/ctl/status_command_test.exs | 1 - .../test/ctl/stop_app_command_test.exs | 4 +- .../test/ctl/stop_command_test.exs | 10 +- .../ctl/suspend_listeners_command_test.exs | 3 +- .../test/ctl/sync_queue_command_test.exs | 15 +- .../test/ctl/trace_off_command_test.exs | 5 +- .../test/ctl/trace_on_command_test.exs | 5 +- .../ctl/update_cluster_nodes_command_test.exs | 43 +- .../test/ctl/version_command_test.exs | 1 - .../test/ctl/wait_command_test.exs | 54 +-- .../test/diagnostics/alarms_command_test.exs | 18 +- .../diagnostics/check_alarms_command_test.exs | 38 +- .../check_local_alarms_command_test.exs | 29 +- .../check_port_connectivity_command_test.exs | 22 +- .../check_port_listener_command_test.exs | 14 +- .../check_protocol_listener_command_test.exs | 17 +- .../check_running_command_test.exs | 14 +- .../check_virtual_hosts_command_test.exs | 14 +- .../cipher_suites_command_test.exs | 37 +- .../command_line_arguments_command_test.exs | 12 +- .../consume_event_stream_command_test.exs | 45 ++- ...h_attempt_source_tracking_command_test.exs | 9 +- .../discover_peers_command_test.exs | 7 +- ...h_attempt_source_tracking_command_test.exs | 9 +- .../erlang_cookie_hash_command_test.exs | 11 +- .../erlang_version_command_test.exs | 19 +- .../diagnostics/is_booting_command_test.exs | 14 +- .../diagnostics/is_running_command_test.exs | 14 +- .../list_network_interfaces_command_test.exs | 9 +- ...t_node_auth_attempt_stats_command_test.exs | 9 +- .../diagnostics/listeners_command_test.exs | 22 +- .../diagnostics/log_location_command_test.exs | 35 +- .../diagnostics/log_tail_command_test.exs | 81 ++-- .../log_tail_stream_command_test.exs | 30 +- .../diagnostics/maybe_stuck_command_test.exs | 15 +- .../memory_breakdown_command_test.exs | 18 +- .../diagnostics/observer_command_test.exs | 12 +- .../test/diagnostics/os_env_command_test.exs | 24 +- .../diagnostics/remote_shell_command_test.exs | 10 +- .../resolve_hostname_command_test.exs | 37 +- .../resolver_info_command_test.exs | 18 +- .../runtime_thread_stats_command_test.exs | 20 +- .../diagnostics/schema_info_command_test.exs | 20 +- .../server_version_command_test.exs | 15 +- .../diagnostics/tls_versions_command_test.exs | 21 +- deps/rabbitmq_cli/test/json_formatting.exs | 19 +- .../test/plugins/directories_command_test.exs | 69 ++-- .../plugins/disable_plugins_command_test.exs | 279 ++++++++----- .../plugins/enable_plugins_command_test.exs | 272 ++++++++----- .../test/plugins/is_enabled_command_test.exs | 99 +++-- .../plugins/list_plugins_command_test.exs | 339 +++++++++++----- .../test/plugins/plugins_formatter_test.exs | 137 +++++-- .../test/plugins/set_plugins_command_test.exs | 187 +++++---- .../test/queues/add_member_command_test.exs | 28 +- ...e_is_mirror_sync_critical_command_test.exs | 17 +- ...f_node_is_quorum_critical_command_test.exs | 17 +- .../queues/delete_member_command_test.exs | 28 +- .../test/queues/grow_command_test.exs | 32 +- .../test/queues/peek_command_test.exs | 20 +- .../queues/quorum_status_command_test.exs | 26 +- .../reclaim_quorum_memory_command_test.exs | 26 +- .../test/queues/shrink_command_test.exs | 25 +- .../queues/stream_status_command_test.exs | 26 +- deps/rabbitmq_cli/test/rabbitmqctl_test.exs | 211 ++++++---- .../test/streams/add_replica_command_test.exs | 28 +- .../streams/delete_replica_command_test.exs | 34 +- ...t_stream_retention_policy_command_test.exs | 35 +- deps/rabbitmq_cli/test/test_helper.exs | 372 +++++++++++++----- ...it_online_quorum_plus_one_command_test.exs | 11 +- ...nline_synchronized_mirror_command_test.exs | 11 +- .../test/upgrade/drain_command_test.exs | 9 +- .../upgrade/post_upgrade_command_test.exs | 11 +- .../test/upgrade/revive_command_test.exs | 9 +- 310 files changed, 6934 insertions(+), 4093 deletions(-) diff --git a/deps/rabbitmq_cli/config/config.exs b/deps/rabbitmq_cli/config/config.exs index 0a88337ac6..3cc5524211 100644 --- a/deps/rabbitmq_cli/config/config.exs +++ b/deps/rabbitmq_cli/config/config.exs @@ -25,7 +24,7 @@ use Mix.Config # # Or configure a 3rd-party app: # -config :logger, [level: :warn, console: [device: :standard_error]] +config :logger, level: :warn, console: [device: :standard_error] # # It is also possible to import configuration files, relative to this -- 2.35.3
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor