getOS.lua 373 B

123456789101112131415161718
  1. return {
  2. tag = 'system-info',
  3. summary = 'Get the current operating system.',
  4. description = 'Returns the current operating system.',
  5. arguments = {},
  6. returns = {
  7. os = {
  8. type = 'string',
  9. description = 'Either "Windows", "macOS", "Linux", "Android" or "Web".'
  10. }
  11. },
  12. variants = {
  13. {
  14. arguments = {},
  15. returns = { 'os' }
  16. }
  17. }
  18. }