getWorkingDirectory.lua 469 B

123456789101112131415161718192021
  1. return {
  2. tag = 'filesystem-paths',
  3. summary = 'Get the current working directory.',
  4. description = [[
  5. Returns the absolute path of the working directory. Usually this is where the executable was
  6. started from.
  7. ]],
  8. arguments = {},
  9. returns = {
  10. path = {
  11. type = 'string',
  12. description = 'The current working directory, or `nil` if it\'s unknown.'
  13. }
  14. },
  15. variants = {
  16. {
  17. arguments = {},
  18. returns = { 'path' }
  19. }
  20. }
  21. }