1. 07 Jun, 2022 1 commit
    • Binbin's avatar
      Handle multiple_token flag in generate-command-help.rb (#10822) · 3d56f607
      Binbin authored
      Currently generate-command.help.rb dose not handle the
      multiple_token flag, handle this flag in this PR.
      The format is the same as redis-cli rendering.
      ```diff
      - bitfield_ro key GET encoding offset [encoding offset ...]
      + bitfield_ro key GET encoding offset [GET encoding offset ...]
      ```
      
      Re run generate-command-code.py which was forget in #10820.
      Also change the flag value from string to bool, like "true" to true
      3d56f607
  2. 06 Apr, 2022 1 commit
    • Itamar Haber's avatar
      Fixes commands' syntices (#10534) · 3e09a8c0
      Itamar Haber authored
      Fixes in command argument in json files
      * Fixes BITFIELD's syntax ("sub-commands" can be repeated, and OVERFLOW is only valid for SET and INCR)
      * Improves readability of SET (reordered)
      * Fixes GEOSEARCH and GEOSEARCH_RO syntices (use `oneof` for mutually exclusive group instead of `optional`)
      * Fixes MIGRATE syntax (use `oneof` for mutually exclusive group instead of `optional`)
      * Fixes MODULE LOADEX syntax (the `CONFIG` token should be repeated too when using multiple configs)
      
      other:
      * make generate-command-help.rb accept a path to commands.json, or read it from stdin (e.g. `generate-commands-json.py | generate-command-help.rb -`)
      3e09a8c0
  3. 05 Feb, 2022 2 commits
    • Oran Agra's avatar
      fix file permissions for scripts in utils folder (#10241) · c42b1633
      Oran Agra authored
      make sure the scripts are executable
      c42b1633
    • Jason Elbaum's avatar
      redis-cli generates command help tables from the results of COMMAND (#10043) · 5b17909c
      Jason Elbaum authored
      
      
      This is a followup to #9656 and implements the following step mentioned in that PR:
      
      * When possible, extract all the help and completion tips from COMMAND DOCS (Redis 7.0 and up)
      * If COMMAND DOCS fails, use the static help.h compiled into redis-cli.
      * Supplement additional command names from COMMAND (pre-Redis 7.0)
      
      The last step is needed to add module command and other non-standard commands.
      
      This PR does not change the interactive hinting mechanism, which still uses only the param
      strings to provide somewhat unreliable and inconsistent command hints (see #8084).
      That task is left for a future PR. 
      Co-authored-by: default avatarOran Agra <oran@redislabs.com>
      5b17909c
  4. 27 Jan, 2022 1 commit
  5. 09 Sep, 2021 1 commit
  6. 18 May, 2021 1 commit
  7. 30 Nov, 2020 1 commit
  8. 10 Jul, 2020 1 commit
  9. 07 Jun, 2018 1 commit
  10. 17 Nov, 2015 1 commit
  11. 25 Aug, 2014 1 commit
    • Jan-Erik Rediger's avatar
      Use correct github url to find commands.json · ef57f94d
      Jan-Erik Rediger authored
      Once this is merged:
        - merge the latest changes to commands.json in antirez/redis-doc
        - re-run: utils/generate-command-help.rb > src/help.h
      
      Then we'll have nice and easy tab-completed help in redis-cli again.
      
      Closes #1909
      ef57f94d
  12. 22 Apr, 2014 1 commit
  13. 03 Apr, 2012 1 commit
  14. 19 Dec, 2010 1 commit
  15. 15 Dec, 2010 1 commit
  16. 28 Nov, 2010 2 commits
  17. 16 Nov, 2010 1 commit
    • Tj Holowaychuk's avatar
      Added redis-cli interactive help support · 5397f2b5
      Tj Holowaychuk authored
      updated via commands.json in redis-doc repo. Currently
      use `make src/help.h` to re-generate. The following
      are valid from the REPL:
      
        help
        help [command]
        help [group]
        help groups
      
      ex:
      
        help sort
        help hash
      5397f2b5