#1895 `prosodyctl shell help` has inconsistent output

Reporter lissine
Owner MattJ
Created
Updated
Stars ★ (1)
Tags
  • Status-Fixed
  • Priority-Medium
  • Type-Defect
  • Milestone-13.0
  1. lissine on

    Steps to reproduce: - Launch the shell: `sudo prosodyctl shell` - run `help invite` Here's the output: ``` | Help: invite | Create and manage invitations | ----------------------------- | | invite create_account <user_jid> | Create an invitation to make an account on this server with the specified JID (supply only a hostname to allow any username) | | Flags: | --expires-after <expires_after> | --group <group>, ... | --role <role>, ... | | invite create_contact <user_jid> | Create an invitation to become contacts with the specified user | | Flags: | --allow-registration | --expires-after <expires_after> | | invite create_reset <user_jid> | Create a password reset link for the specified user | | Flags: | --expires-after <expires_after> | | invite delete <host> <token> | Delete/revoke an invitation token | | invite list <host> | List pending invitations which allow account registration | invite show <host> <token> | Show details of an account invitation token | ``` - Now, press enter while in the shell. It should show you `| Result: nil` - Run `help invite` again. Here's its output this time: ``` | Help: invite | Create and manage invitations | ----------------------------- | | invite:create_account(user_jid) - Create an invitation to make an account on this server with the specified JID (supply only a hostname to allow any username) | invite:create_contact(user_jid) - Create an invitation to become contacts with the specified user | invite:create_reset(user_jid) - Create a password reset link for the specified user | invite:delete(host, token) - Delete/revoke an invitation token | invite:list(host) - List pending invitations which allow account registration | invite:show(host, token) - Show details of an account invitation token | ``` Note: `help invite` was just an example. The behavior is the same with any help section. This issue happens on prosody 13.0, but not on prosody 0.12.4

  2. MattJ on

    Good catch! I've fixed this to be more reliable in https://hg.prosody.im/trunk/rev/a28349b8a387

    Changes
    • tags Status-Fixed
    • owner MattJ

New comment

Not published. Used for spam prevention and optional update notifications.