autolibs 803 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #!/usr/bin/env bash
  2. source "$rvm_scripts_path/functions/autolibs"
  3. __rvm_autolibs_show()
  4. {
  5. __rvm_autolibs_get
  6. echo "${rvm_autolibs_flag}"
  7. }
  8. __rvm_autolibs_status()
  9. {
  10. __rvm_autolibs_get
  11. __rvm_autolibs_translate_description
  12. printf "%b" "---
  13. value: ${rvm_autolibs_flag}
  14. number: ${rvm_autolibs_flag_number}
  15. runner: ${rvm_autolibs_flag_runner}
  16. description: ${rvm_autolibs_flag_description}
  17. "
  18. }
  19. __rvm_autolibs()
  20. {
  21. if
  22. __rvm_autolibs_translate "$1"
  23. then
  24. __rvm_autolibs_set
  25. else
  26. case "${1:-help}" in
  27. (show|status|reset)
  28. __rvm_autolibs_${1}
  29. ;;
  30. (help)
  31. rvm_help autolibs "$@"
  32. ;;
  33. (*)
  34. rvm_error_help "Unknown subcommand '$*' for autolibs" autolibs "$@"
  35. return 1
  36. ;;
  37. esac
  38. fi
  39. }
  40. __rvm_autolibs "${args[@]}"