The main Bubble source repository. Contains the Bubble API server, the web UI, documentation and utilities. https://getbubblenow.com
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 

36 строки
1.3 KiB

  1. #!/bin/bash
  2. #
  3. # Write a constant value to stdout.
  4. #
  5. # This will only ever write the constant value to stdout if it can successfully be read.
  6. # If the constant can be read, its value is printed with the .toString() method.
  7. # If an error occurs, nothing is written to stdout, and the error will be written to stderr.
  8. # If the value of the constant is null, nothing is printed to stdout, and "null" is printed to stderr.
  9. #
  10. # Usage:
  11. #
  12. # bconst classAndMember
  13. #
  14. # classAndMember : the full name of a Java class, followed by a dot and the constant member name
  15. #
  16. # For example:
  17. #
  18. # bconst bubble.ApiConstants.ROOT_NETWORK_UUID
  19. #
  20. # Environment variables
  21. #
  22. # BUBBLE_API : which API to use. Default is local (http://127.0.0.1:PORT, where PORT is found in .bubble.env)
  23. # BUBBLE_USER : account to use. Default is root
  24. # BUBBLE_PASS : password for account. Default is root
  25. # BUBBLE_INCLUDE : path to look for JSON include files. default value is to assume we are being run from
  26. # bubble repo, bubble-models repo, or bubble-client and use include files from minimal model.
  27. #
  28. SCRIPT="${0}"
  29. SCRIPT_DIR=$(cd $(dirname ${SCRIPT}) && pwd)
  30. . ${SCRIPT_DIR}/bubble_common
  31. CLASS_AND_MEMBER="${1:?sole param should be something like: bubble.pkg.SomeClass.SOME_CONSTANT}"
  32. shift
  33. BUBBLE_QUIET=1 exec ${SCRIPT_DIR}/bubble const "${CLASS_AND_MEMBER}" "${@}"