The main Bubble source repository. Contains the Bubble API server, the web UI, documentation and utilities. https://getbubblenow.com
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

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