Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GraphQL CLI args as "--name value" with new help #3724

Merged
merged 4 commits into from
Aug 22, 2022

Conversation

chrzaszcz
Copy link
Member

@chrzaszcz chrzaszcz commented Aug 5, 2022

There are two main goals of this PR:

1. Change the argument format

The previous argument format for the GraphQL-based CLI was always JSON, which a bit difficult to use. For example, this is how you would ask for the number of users in a domain:

mongooseimctl account listUsers '{"domain": "localhost"}'

This is how you do it after the change:

mongooseimctl account listUsers --domain localhost

Strings and integers are automatically processed, so they don't need quoting (unless the string has special characters or spaces).
Arguments with complex types (lists, input objects) need to be passed as JSON.

2. Provide help for the new commands

The new commands are to replace the old ones, which used admin_extra.

  • mongooseimctl on its own displays a list of categories, basic commands (not categorized) and general help.
  • mongooseimctl help displays the old-style help with all deprecated commands, which are still supported.
  • mongooseimctl categoryName displays a list of commands with descriptions.
  • mongooseimctl categoryName commandName --help displays a list of arguments with descriptions. --help is required for argument-less commands, because otherwise they would be executed. For other commands you can omit --help.
  • Errors in the command line should result in user-friendly help.

There is more information displayed, please try it for yourself. Some examples are shown below, but the formatting is better in the shell.

mongooseimctl
Usage: mongooseimctl [category] command [arguments]

Most MongooseIM commands are grouped into the following categories:
account Account management
domain Domain management
gdpr Personal data management according to GDPR
httpUpload Http upload
inbox Inbox bin management
last Last activity management
metric Metrics management
muc MUC room management
muc_light MUC Light room management
offline Offline deleting old messages
private Private storage management
roster Roster/Contacts management
session Session management
stanza Stanza management
stat Statistics
token OAUTH token management
vcard Vcard management

To list the commands in a particular category:
mongooseimctl category

The following basic system management commands do not have a category:
graphql query Execute graphql query or mutation
help [--tags [tag] | com?*] Show help for the deprecated commands
mnesia [info] show information of Mnesia system
restart Restart MongooseIM
status Get MongooseIM status
stop Stop MongooseIM

Commands to start a MongooseIM node:
start Start a MongooseIM node as daemon (detached from terminal)
debug Attach an interactive Erlang shell to a running MongooseIM node
live Start MongooseIM node in live (interactive) mode
foreground Start MongooseIM node in foreground (non-interactive) mode
MongooseIM cluster management commands:
join_cluster other_node_name Add current node to cluster
leave_cluster Make the current node leave the cluster
remove_from_cluster other_node_name Remove dead node from the cluster
Extra Commands:
bootstrap Executes MongooseIM init scripts (used for initial configuration)
print_install_dir Prints path to MongooseIM release directory
escript Runs escript command using embedded Erlang Runtime System

mongooseimctl account
The following commands are available in the category 'account':
  banUser             Ban an account: kick sessions and set a random password 
  changeUserPassword  Change the password of a user 
  checkPassword       Check if a password is correct 
  checkPasswordHash   Check if a password hash is correct (allowed methods: md5, sha). Works only for a plain passwords 
  checkUser           Check if a user exists 
  countUsers          Get number of users per domain 
  listUsers           List users per domain 
  registerUser        Register a user. Username will be generated when skipped 
  removeUser          Remove a user 

To list the arguments for a particular command:
mongooseimctl account command --help

mongooseimctl account listUsers
Missing mandatory arguments for command 'listUsers': 'domain'

Usage: mongooseimctl account listUsers arguments

Each argument has the format: --name value
Available arguments are listed below with the corresponding GraphQL types:
domain String!

Scalar values do not need quoting unless they contain special characters or spaces.
Complex input types are passed as JSON maps or lists, depending on the type.
When a type is followed by '!', the corresponding argument is required.

@chrzaszcz chrzaszcz changed the title GraphQL CLI args as "--[name] [value]" [WIP] GraphQL CLI args as "--[name] [value]" Aug 5, 2022
@mongoose-im

This comment was marked as outdated.

@codecov
Copy link

codecov bot commented Aug 5, 2022

Codecov Report

Merging #3724 (42c2401) into master (ea14994) will increase coverage by 0.28%.
The diff coverage is 94.84%.

@@            Coverage Diff             @@
##           master    #3724      +/-   ##
==========================================
+ Coverage   82.24%   82.53%   +0.28%     
==========================================
  Files         526      526              
  Lines       33853    33884      +31     
==========================================
+ Hits        27844    27966     +122     
+ Misses       6009     5918      -91     
Impacted Files Coverage Δ
src/ejabberd_ctl.erl 48.53% <93.18%> (+24.34%) ⬆️
src/graphql/mongoose_graphql_commands.erl 98.24% <96.22%> (+0.57%) ⬆️
src/mod_muc_log.erl 62.82% <0.00%> (ø)
src/ejabberd_sm.erl 84.91% <0.00%> (+0.32%) ⬆️
src/mod_roster.erl 79.42% <0.00%> (+0.71%) ⬆️
src/inbox/mod_inbox_rdbms_async.erl 73.52% <0.00%> (+1.47%) ⬆️
src/mod_roster_riak.erl 98.46% <0.00%> (+1.53%) ⬆️
src/mam/mod_mam_elasticsearch_arch.erl 88.39% <0.00%> (+1.78%) ⬆️
src/ejabberd.erl 60.00% <0.00%> (+5.00%) ⬆️
src/elasticsearch/mongoose_elasticsearch.erl 84.61% <0.00%> (+7.69%) ⬆️
... and 1 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@mongoose-im

This comment was marked as outdated.

@mongoose-im

This comment was marked as outdated.

@mongoose-im

This comment was marked as outdated.

@mongoose-im

This comment was marked as outdated.

@mongoose-im

This comment was marked as outdated.

@mongoose-im

This comment was marked as outdated.

@mongoose-im

This comment was marked as outdated.

The arguments were broken into pieces (on spaces),
quoted, and finally reassembled by Erlang code.

All these steps are now replaced with putting the arguments into an
array, whose elements are then passed as arguments.

One of the main causes for this change was a bug in arguments
concatenation, which was revealed by new command tests.
@mongoose-im

This comment was marked as outdated.

@chrzaszcz chrzaszcz changed the title GraphQL CLI args as "--[name] [value]" GraphQL CLI args as "--name value" wih new help Aug 11, 2022
@chrzaszcz chrzaszcz changed the title GraphQL CLI args as "--name value" wih new help GraphQL CLI args as "--name value" with new help Aug 11, 2022
@mongoose-im

This comment was marked as outdated.

@chrzaszcz chrzaszcz force-pushed the graphql-cli-doc branch 2 times, most recently from 420ac4e to 39dc603 Compare August 11, 2022 14:34
@mongoose-im
Copy link
Collaborator

mongoose-im commented Aug 11, 2022

small_tests_24 / small_tests / 420ac4e
Reports root / small


small_tests_25 / small_tests / 420ac4e
Reports root / small


dynamic_domains_pgsql_mnesia_24 / pgsql_mnesia / 420ac4e
Reports root/ big
OK: 3341 / Failed: 0 / User-skipped: 88 / Auto-skipped: 0


ldap_mnesia_24 / ldap_mnesia / 420ac4e
Reports root/ big
OK: 1898 / Failed: 0 / User-skipped: 513 / Auto-skipped: 0


dynamic_domains_pgsql_mnesia_25 / pgsql_mnesia / 420ac4e
Reports root/ big
OK: 3341 / Failed: 0 / User-skipped: 88 / Auto-skipped: 0


dynamic_domains_mysql_redis_25 / mysql_redis / 420ac4e
Reports root/ big
OK: 3324 / Failed: 0 / User-skipped: 105 / Auto-skipped: 0


ldap_mnesia_25 / ldap_mnesia / 420ac4e
Reports root/ big
OK: 1898 / Failed: 0 / User-skipped: 513 / Auto-skipped: 0


dynamic_domains_mssql_mnesia_25 / odbc_mssql_mnesia / 420ac4e
Reports root/ big
OK: 3341 / Failed: 0 / User-skipped: 88 / Auto-skipped: 0


pgsql_mnesia_24 / pgsql_mnesia / 420ac4e
Reports root/ big
OK: 3715 / Failed: 0 / User-skipped: 97 / Auto-skipped: 0


internal_mnesia_25 / internal_mnesia / 420ac4e
Reports root/ big
OK: 2019 / Failed: 0 / User-skipped: 392 / Auto-skipped: 0


elasticsearch_and_cassandra_25 / elasticsearch_and_cassandra_mnesia / 420ac4e
Reports root/ big
OK: 2315 / Failed: 0 / User-skipped: 387 / Auto-skipped: 0


pgsql_mnesia_25 / pgsql_mnesia / 420ac4e
Reports root/ big
OK: 3715 / Failed: 0 / User-skipped: 97 / Auto-skipped: 0


mysql_redis_25 / mysql_redis / 420ac4e
Reports root/ big
OK: 3710 / Failed: 0 / User-skipped: 102 / Auto-skipped: 0


mssql_mnesia_25 / odbc_mssql_mnesia / 420ac4e
Reports root/ big
OK: 3715 / Failed: 0 / User-skipped: 97 / Auto-skipped: 0


riak_mnesia_24 / riak_mnesia / 420ac4e
Reports root/ big
OK: 2176 / Failed: 0 / User-skipped: 380 / Auto-skipped: 0

@mongoose-im
Copy link
Collaborator

mongoose-im commented Aug 11, 2022

small_tests_24 / small_tests / 39dc603
Reports root / small


small_tests_25 / small_tests / 39dc603
Reports root / small


dynamic_domains_pgsql_mnesia_24 / pgsql_mnesia / 39dc603
Reports root/ big
OK: 3341 / Failed: 0 / User-skipped: 88 / Auto-skipped: 0


ldap_mnesia_24 / ldap_mnesia / 39dc603
Reports root/ big
OK: 1898 / Failed: 0 / User-skipped: 513 / Auto-skipped: 0


dynamic_domains_mysql_redis_25 / mysql_redis / 39dc603
Reports root/ big
OK: 3323 / Failed: 1 / User-skipped: 105 / Auto-skipped: 0

muc_SUITE:hibernation:hibernated_room_can_be_queried_for_archive
{error,{{assertion_failed,assert,is_groupchat_message,
              [<<"Restorable message">>],
              undefined,"undefined"},
    [{escalus_new_assert,assert_true,2,
               [{file,"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_new_assert.erl"},
                {line,84}]},
     {muc_SUITE,wait_for_mam_result,3,
          [{file,"/home/circleci/project/big_tests/tests/muc_SUITE.erl"},
           {line,4394}]},
     {muc_SUITE,'-hibernated_room_can_be_queried_for_archive/1-fun-0-',3,
          [{file,"/home/circleci/project/big_tests/tests/muc_SUITE.erl"},
           {line,4130}]},
     {escalus_story,story,4,
            [{file,"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_story.erl"},
             {line,72}]},
     {muc_SUITE,hibernated_room_can_be_queried_for_archive,1,
          [{file,"/home/circleci/project/big_tests/tests/muc_SUITE.erl"},
           {line,4126}]},
     {test_server,ts_tc,3,[{file,"test_server.erl"},{line,1782}]},
     {test_server,run_test_case_eval1,6,
            [{file,"test_server.erl"},{line,1291}]},
     {test_server,run_test_case_eval,9,
            [{file,"test_server.erl"},{line,1223}]}]}}

Report log


dynamic_domains_pgsql_mnesia_25 / pgsql_mnesia / 39dc603
Reports root/ big
OK: 3341 / Failed: 0 / User-skipped: 88 / Auto-skipped: 0


ldap_mnesia_25 / ldap_mnesia / 39dc603
Reports root/ big
OK: 1898 / Failed: 0 / User-skipped: 513 / Auto-skipped: 0


pgsql_mnesia_24 / pgsql_mnesia / 39dc603
Reports root/ big
OK: 3715 / Failed: 0 / User-skipped: 97 / Auto-skipped: 0


dynamic_domains_mssql_mnesia_25 / odbc_mssql_mnesia / 39dc603
Reports root/ big
OK: 3341 / Failed: 0 / User-skipped: 88 / Auto-skipped: 0


internal_mnesia_25 / internal_mnesia / 39dc603
Reports root/ big
OK: 2019 / Failed: 0 / User-skipped: 392 / Auto-skipped: 0


elasticsearch_and_cassandra_25 / elasticsearch_and_cassandra_mnesia / 39dc603
Reports root/ big
OK: 2315 / Failed: 0 / User-skipped: 387 / Auto-skipped: 0


pgsql_mnesia_25 / pgsql_mnesia / 39dc603
Reports root/ big
OK: 3715 / Failed: 0 / User-skipped: 97 / Auto-skipped: 0


mysql_redis_25 / mysql_redis / 39dc603
Reports root/ big
OK: 3710 / Failed: 0 / User-skipped: 102 / Auto-skipped: 0


riak_mnesia_24 / riak_mnesia / 39dc603
Reports root/ big
OK: 2176 / Failed: 0 / User-skipped: 380 / Auto-skipped: 0


mssql_mnesia_25 / odbc_mssql_mnesia / 39dc603
Reports root/ big
OK: 3726 / Failed: 1 / User-skipped: 97 / Auto-skipped: 0

pep_SUITE:pep_tests:unsubscribe_after_presence_unsubscription
{error,
  {{badmatch,
     [{xmlel,<<"message">>,
        [{<<"from">>,
        <<"alice_unsubscribe_after_presence_unsubscription_2272@localhost">>},
         {<<"to">>,
        <<"bob_unsubscribe_after_presence_unsubscription_2272@localhost/res1">>},
         {<<"type">>,<<"headline">>}],
        [{xmlel,<<"event">>,
           [{<<"xmlns">>,
           <<"http://jabber.org/protocol/pubsub#event">>}],
           [{xmlel,<<"items">>,
            [{<<"node">>,<<"gfTWV5nlDWqxJ8d9yKCGJg==">>}],
            [{xmlel,<<"item">>,
               [{<<"id">>,<<"salmon">>}],
               [{xmlel,<<"entry">>,
                  [{<<"xmlns">>,
                  <<"http://www.w3.org/2005/Atom">>}],
                  []}]}]}]},
         {xmlel,<<"headers">>,
           [{<<"xmlns">>,<<"http://jabber.org/protocol/shim">>}],
           []}]}]},
   [{pep_SUITE,'-unsubscribe_after_presence_unsubscription/1-fun-0-',2,
      [{file,"/home/circleci/project/big_tests/tests/pep_SUITE.erl"},
       {line,384}]},
    {escalus_story,story,4,
      [{file,
         "/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_story.erl"},
       {line,72}]},
    {test_server,ts_tc,3,[{file,"test_server.erl"},{line,1782}]},
    {test_server,run_test_case_eval1,6,
      [{file,"test_server.erl"},{line,1291}]},
    {test_server,run_test_case_eval,9,
      [{file,"test_server.erl"},{line,1223}]}]}}

Report log


dynamic_domains_mysql_redis_25 / mysql_redis / 39dc603
Reports root/ big
OK: 3324 / Failed: 0 / User-skipped: 105 / Auto-skipped: 0

@mongoose-im
Copy link
Collaborator

mongoose-im commented Aug 12, 2022

small_tests_24 / small_tests / 5701808
Reports root / small


small_tests_25 / small_tests / 5701808
Reports root / small


dynamic_domains_pgsql_mnesia_24 / pgsql_mnesia / 5701808
Reports root/ big
OK: 3342 / Failed: 0 / User-skipped: 88 / Auto-skipped: 0


ldap_mnesia_24 / ldap_mnesia / 5701808
Reports root/ big
OK: 1899 / Failed: 0 / User-skipped: 513 / Auto-skipped: 0


dynamic_domains_mysql_redis_25 / mysql_redis / 5701808
Reports root/ big
OK: 3325 / Failed: 0 / User-skipped: 105 / Auto-skipped: 0


dynamic_domains_pgsql_mnesia_25 / pgsql_mnesia / 5701808
Reports root/ big
OK: 3342 / Failed: 0 / User-skipped: 88 / Auto-skipped: 0


ldap_mnesia_25 / ldap_mnesia / 5701808
Reports root/ big
OK: 1899 / Failed: 0 / User-skipped: 513 / Auto-skipped: 0


dynamic_domains_mssql_mnesia_25 / odbc_mssql_mnesia / 5701808
Reports root/ big
OK: 3342 / Failed: 0 / User-skipped: 88 / Auto-skipped: 0


pgsql_mnesia_24 / pgsql_mnesia / 5701808
Reports root/ big
OK: 3716 / Failed: 0 / User-skipped: 97 / Auto-skipped: 0


internal_mnesia_25 / internal_mnesia / 5701808
Reports root/ big
OK: 2020 / Failed: 0 / User-skipped: 392 / Auto-skipped: 0


elasticsearch_and_cassandra_25 / elasticsearch_and_cassandra_mnesia / 5701808
Reports root/ big
OK: 2316 / Failed: 0 / User-skipped: 387 / Auto-skipped: 0


mysql_redis_25 / mysql_redis / 5701808
Reports root/ big
OK: 3710 / Failed: 0 / User-skipped: 102 / Auto-skipped: 1

mam_SUITE:rdbms_async_pool_impl_specific:init_per_group
{'EXIT',
 {{badrpc,
   {'EXIT',
  {{start_child_failed,
    {error,
     {{shutdown,
     {failed_to_start_child,pm_mam_async_pool_localhost,
      {shutdown,
       {failed_to_start_child,
      'wpool_pool-pm_mam_async_pool_localhost-process-sup',
      {shutdown,
       {failed_to_start_child,
        'wpool_pool-pm_mam_async_pool_localhost-13',
        {already_started,<9154.6327.1>}}}}}}},
    {child,undefined,pm_mam_sup_async_pool_localhost,
     {mongoose_async_pools,start_link,
      [<<"localhost">>,pm_mam,
       #{batch_name => insert_mam_messages30,batch_size => 30,
       enabled => true,
       flush_callback => fun mod_mam_rdbms_arch_async:flush/2,
       flush_extra =>
        #{batch_name => insert_mam_messages30,batch_size => 30,
        enabled => true,flush_interval => 1,pool_size => 16},
       flush_interval => 1,pool_size => 16,pool_type => batch}]},
     transient,false,infinity,supervisor,
     [mongoose_async_pools]}}},
    #{id => pm_mam_sup_async_pool_localhost,restart => transient,
    start =>
     {mongoose_async_pools,start_link,
      [<<"localhost">>,pm_mam,
       #{batch_name => insert_mam_messages30,batch_size => 30,
       enabled => true,
       flush_callback => fun mod_mam_rdbms_arch_async:flush/2,
       flush_extra =>
        #{batch_name => insert_mam_messages30,batch_size => 30,
        enabled => true,flush_interval => 1,pool_size => 16},
       flush_interval => 1,pool_size => 16,pool_type => batch}]},
    type => supervisor}},
 ...

Report log


pgsql_mnesia_25 / pgsql_mnesia / 5701808
Reports root/ big
OK: 3716 / Failed: 0 / User-skipped: 97 / Auto-skipped: 0


mssql_mnesia_25 / odbc_mssql_mnesia / 5701808
Reports root/ big
OK: 3716 / Failed: 0 / User-skipped: 97 / Auto-skipped: 0


riak_mnesia_24 / riak_mnesia / 5701808
Reports root/ big
OK: 2177 / Failed: 0 / User-skipped: 380 / Auto-skipped: 0


mysql_redis_25 / mysql_redis / 5701808
Reports root/ big
OK: 3711 / Failed: 0 / User-skipped: 102 / Auto-skipped: 0

@mongoose-im
Copy link
Collaborator

mongoose-im commented Aug 12, 2022

small_tests_24 / small_tests / 5820056
Reports root / small


small_tests_25 / small_tests / 5820056
Reports root / small


dynamic_domains_pgsql_mnesia_24 / pgsql_mnesia / 5820056
Reports root/ big
OK: 3344 / Failed: 0 / User-skipped: 88 / Auto-skipped: 0


ldap_mnesia_24 / ldap_mnesia / 5820056
Reports root/ big
OK: 1901 / Failed: 0 / User-skipped: 513 / Auto-skipped: 0


dynamic_domains_pgsql_mnesia_25 / pgsql_mnesia / 5820056
Reports root/ big
OK: 3344 / Failed: 0 / User-skipped: 88 / Auto-skipped: 0


ldap_mnesia_25 / ldap_mnesia / 5820056
Reports root/ big
OK: 1901 / Failed: 0 / User-skipped: 513 / Auto-skipped: 0


dynamic_domains_mysql_redis_25 / mysql_redis / 5820056
Reports root/ big
OK: 3327 / Failed: 0 / User-skipped: 105 / Auto-skipped: 0


pgsql_mnesia_24 / pgsql_mnesia / 5820056
Reports root/ big
OK: 3725 / Failed: 1 / User-skipped: 98 / Auto-skipped: 0

pubsub_SUITE:tree+node_config:send_last_published_item_test
{error,{{badmatch,false},
    [{pubsub_tools,check_response,2,
             [{file,"/home/circleci/project/big_tests/tests/pubsub_tools.erl"},
            {line,491}]},
     {pubsub_tools,receive_response,3,
             [{file,"/home/circleci/project/big_tests/tests/pubsub_tools.erl"},
            {line,481}]},
     {pubsub_tools,receive_subscribe_response,3,
             [{file,"/home/circleci/project/big_tests/tests/pubsub_tools.erl"},
            {line,334}]},
     {pubsub_SUITE,'-send_last_published_item_test/1-fun-0-',2,
             [{file,"/home/circleci/project/big_tests/tests/pubsub_SUITE.erl"},
            {line,937}]},
     {escalus_story,story,4,
            [{file,"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_story.erl"},
             {line,72}]},
     {test_server,ts_tc,3,[{file,"test_server.erl"},{line,1783}]},
     {test_server,run_test_case_eval1,6,
            [{file,"test_server.erl"},{line,1292}]},
     {test_server,run_test_case_eval,9,
            [{file,"test_server.erl"},{line,1224}]}]}}

Report log


dynamic_domains_mssql_mnesia_25 / odbc_mssql_mnesia / 5820056
Reports root/ big
OK: 3344 / Failed: 0 / User-skipped: 88 / Auto-skipped: 0


internal_mnesia_25 / internal_mnesia / 5820056
Reports root/ big
OK: 2022 / Failed: 0 / User-skipped: 392 / Auto-skipped: 0


pgsql_mnesia_25 / pgsql_mnesia / 5820056
Reports root/ big
OK: 3718 / Failed: 0 / User-skipped: 97 / Auto-skipped: 0


mysql_redis_25 / mysql_redis / 5820056
Reports root/ big
OK: 3713 / Failed: 0 / User-skipped: 102 / Auto-skipped: 0


riak_mnesia_24 / riak_mnesia / 5820056
Reports root/ big
OK: 2179 / Failed: 0 / User-skipped: 380 / Auto-skipped: 0


mssql_mnesia_25 / odbc_mssql_mnesia / 5820056
Reports root/ big
OK: 3717 / Failed: 1 / User-skipped: 97 / Auto-skipped: 0

push_integration_SUITE:pubsub_ful:pm_notifications_with_inbox:inbox_msg_unread_count_fcm
{error,
  {{assertMatch,
     [{module,push_integration_SUITE},
      {line,662},
      {expression,"Data"},
      {pattern,"# { << \"message-count\" >> := ExpectedCount }"},
      {value,
        #{<<"last-message-body">> => <<"Private message">>,
        <<"last-message-sender">> =>
          <<"alice_inbox_msg_unread_count_fcm_2515@localhost">>,
        <<"message-count">> => 1}}]},
   [{push_integration_SUITE,check_notification,2,
      [{file,
         "/home/circleci/project/big_tests/tests/push_integration_SUITE.erl"},
       {line,662}]},
    {push_integration_SUITE,'-inbox_msg_unread_count/3-fun-0-',6,
      [{file,
         "/home/circleci/project/big_tests/tests/push_integration_SUITE.erl"},
       {line,578}]},
    {escalus_story,story,4,
      [{file,
         "/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_story.erl"},
       {line,72}]},
    {test_server,ts_tc,3,[{file,"test_server.erl"},{line,1782}]},
    {test_server,run_test_case_eval1,6,
      [{file,"test_server.erl"},{line,1291}]},
    {test_server,run_test_case_eval,9,
      [{file,"test_server.erl"},{line,1223}]}]}}

Report log

Paweł Chrząszcz added 3 commits August 12, 2022 15:31
Also:

- Print usage for the new format, marking the old commands as
deprecated.
- Gather category and command descriptions using introspection.
- Rework error messages to process the context directly, making the
  code more concise.
- Reuse the usage printing logic for category- and command-related
  help. It doesn't make sense to rewrite it as support for both
  command formats (old and new) is temporary. This can be rewritten
  when the odl format is dropped.
The new format is '--name value' instead of JSON.
JSON is used only for complex values i.e. input objects and lists.
Also: messages have changed, so they are updated.
@mongoose-im
Copy link
Collaborator

mongoose-im commented Aug 12, 2022

small_tests_24 / small_tests / 42c2401
Reports root / small


small_tests_25 / small_tests / 42c2401
Reports root / small


dynamic_domains_pgsql_mnesia_24 / pgsql_mnesia / 42c2401
Reports root/ big
OK: 3344 / Failed: 0 / User-skipped: 88 / Auto-skipped: 0


ldap_mnesia_24 / ldap_mnesia / 42c2401
Reports root/ big
OK: 1901 / Failed: 0 / User-skipped: 513 / Auto-skipped: 0


dynamic_domains_pgsql_mnesia_25 / pgsql_mnesia / 42c2401
Reports root/ big
OK: 3344 / Failed: 0 / User-skipped: 88 / Auto-skipped: 0


dynamic_domains_mysql_redis_25 / mysql_redis / 42c2401
Reports root/ big
OK: 3327 / Failed: 0 / User-skipped: 105 / Auto-skipped: 0


ldap_mnesia_25 / ldap_mnesia / 42c2401
Reports root/ big
OK: 1901 / Failed: 0 / User-skipped: 513 / Auto-skipped: 0


pgsql_mnesia_24 / pgsql_mnesia / 42c2401
Reports root/ big
OK: 3718 / Failed: 0 / User-skipped: 97 / Auto-skipped: 0


dynamic_domains_mssql_mnesia_25 / odbc_mssql_mnesia / 42c2401
Reports root/ big
OK: 3344 / Failed: 0 / User-skipped: 88 / Auto-skipped: 0


internal_mnesia_25 / internal_mnesia / 42c2401
Reports root/ big
OK: 2022 / Failed: 0 / User-skipped: 392 / Auto-skipped: 0


elasticsearch_and_cassandra_25 / elasticsearch_and_cassandra_mnesia / 42c2401
Reports root/ big
OK: 2318 / Failed: 0 / User-skipped: 387 / Auto-skipped: 0


pgsql_mnesia_25 / pgsql_mnesia / 42c2401
Reports root/ big
OK: 3718 / Failed: 0 / User-skipped: 97 / Auto-skipped: 0


mysql_redis_25 / mysql_redis / 42c2401
Reports root/ big
OK: 3713 / Failed: 0 / User-skipped: 102 / Auto-skipped: 0


mssql_mnesia_25 / odbc_mssql_mnesia / 42c2401
Reports root/ big
OK: 3718 / Failed: 0 / User-skipped: 97 / Auto-skipped: 0

@chrzaszcz chrzaszcz marked this pull request as ready for review August 12, 2022 14:00
Copy link
Contributor

@JanuszJakubiec JanuszJakubiec left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@JanuszJakubiec JanuszJakubiec merged commit 86e3cef into master Aug 22, 2022
@JanuszJakubiec JanuszJakubiec deleted the graphql-cli-doc branch August 22, 2022 07:19
@chrzaszcz chrzaszcz added this to the 6.0.0 milestone Dec 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants