2
0

config.json 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. {
  2. "$schema": "http://json-schema.org/draft-07/schema#",
  3. "type": "object",
  4. "additionalProperties": false,
  5. "properties": {
  6. "GIT_ENABLED": {
  7. "type": "boolean",
  8. "default": true,
  9. "x-aliases": ["SAVE_GIT", "USE_GIT"],
  10. "description": "Enable git repository cloning"
  11. },
  12. "GIT_BINARY": {
  13. "type": "string",
  14. "default": "git",
  15. "description": "Path to git binary"
  16. },
  17. "GIT_TIMEOUT": {
  18. "type": "integer",
  19. "default": 120,
  20. "minimum": 10,
  21. "x-fallback": "TIMEOUT",
  22. "description": "Timeout for git operations in seconds"
  23. },
  24. "GIT_DOMAINS": {
  25. "type": "string",
  26. "default": "github.com,gitlab.com,bitbucket.org,gist.github.com,codeberg.org,gitea.com,git.sr.ht",
  27. "description": "Comma-separated list of domains to treat as git repositories"
  28. },
  29. "GIT_ARGS": {
  30. "type": "array",
  31. "items": {"type": "string"},
  32. "default": ["clone", "--depth=1", "--recursive"],
  33. "x-aliases": ["GIT_DEFAULT_ARGS"],
  34. "description": "Default git arguments"
  35. },
  36. "GIT_ARGS_EXTRA": {
  37. "type": "array",
  38. "items": {"type": "string"},
  39. "default": [],
  40. "x-aliases": ["GIT_EXTRA_ARGS"],
  41. "description": "Extra arguments to append to git command"
  42. }
  43. }
  44. }