The main Bubble source repository. Contains the Bubble API server, the web UI, documentation and utilities. https://getbubblenow.com
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

22 行
673 B

  1. #!/bin/bash
  2. #
  3. # Print all values for a JSON property name, among any given JSON via stdin.
  4. # JSON could be object, array, nested objects, etc.
  5. #
  6. # Note that this command redirects stderr to /dev/null, so it might mask errors.
  7. # If you get empty results when you expect something there, check the output of the command
  8. # before piping to jq-all-vals to verify
  9. #
  10. # Usage:
  11. #
  12. # some-command-that-produces-JSON | jq-all-vals prop-name
  13. #
  14. # prop-name : a property name
  15. #
  16. SCRIPT="${0}"
  17. SCRIPT_DIR=$(cd $(dirname ${SCRIPT}) && pwd)
  18. . ${SCRIPT_DIR}/bubble_common
  19. ARG=${1:?no property provided}
  20. jq -r 'getpath(path(.. | select(.'"${ARG}"' != null))) | .'"${ARG}"'' 2> /dev/null