godot.fish 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. # Fish completion for the Godot editor
  2. # To use it, install this file in `~/.config/fish/completions` then restart your shell.
  3. # You can also `source` this file directly in your shell startup file.
  4. #
  5. # Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md).
  6. # Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.
  7. #
  8. # Permission is hereby granted, free of charge, to any person obtaining a copy
  9. # of this software and associated documentation files (the "Software"), to deal
  10. # in the Software without restriction, including without limitation the rights
  11. # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  12. # copies of the Software, and to permit persons to whom the Software is
  13. # furnished to do so, subject to the following conditions:
  14. #
  15. # The above copyright notice and this permission notice shall be included in all
  16. # copies or substantial portions of the Software.
  17. #
  18. # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  19. # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  20. # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  21. # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  22. # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  23. # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  24. # SOFTWARE.
  25. function godot_rendering_method_args
  26. # Use a function instead of a fixed string to customize the argument descriptions.
  27. echo -e "forward_plus\tHigh-end desktop renderer"
  28. echo -e "mobile\tHigh-end mobile/desktop renderer"
  29. echo -e "gl_compatibility\tLow-end desktop, mobile and web renderer"
  30. end
  31. function godot_rendering_driver_args
  32. # Use a function instead of a fixed string to customize the argument descriptions.
  33. echo -e "vulkan\tVulkan renderer"
  34. echo -e "opengl3\tOpenGL ES 3.0 renderer"
  35. echo -e "dummy\tDummy renderer"
  36. end
  37. # Erase existing completions for Godot.
  38. complete -c godot -e
  39. # General options:
  40. complete -c godot -s h -l help -d "Display the full help message"
  41. complete -c godot -l version -d "Display the version string"
  42. complete -c godot -s v -l verbose -d "Use verbose stdout mode"
  43. complete -c godot -s q -l quiet -d "Quiet mode, silences stdout messages (errors are still displayed)"
  44. # Run options:
  45. complete -c godot -s e -l editor -d "Start the editor instead of running the scene"
  46. complete -c godot -s p -l project-manager -d "Start the project manager, even if a project is auto-detected"
  47. complete -c godot -l debug-server -d "Start the editor debug server (<protocol>://<host/IP>[:<port>] address)" -x
  48. complete -c godot -l quit -d "Quit after the first iteration"
  49. complete -c godot -s l -l language -d "Use a specific locale (<locale> being a two-letter code)" -x
  50. complete -c godot -l path -d "Path to a project (<directory> must contain a 'project.godot' file)" -r
  51. complete -c godot -s u -l upwards -d "Scan folders upwards for project.godot file"
  52. complete -c godot -l main-pack -d "Path to a pack (.pck) file to load" -r
  53. complete -c godot -l render-thread -d "Set the render thread mode" -x -a "unsafe safe separate"
  54. complete -c godot -l remote-fs -d "Use a remote filesystem (<host/IP>[:<port>] address)" -x
  55. complete -c godot -l remote-fs-password -d "Password for remote filesystem" -x
  56. complete -c godot -l audio-driver -d "Set the audio driver" -x
  57. complete -c godot -l audio-output-latency -d "Override audio output latency in milliseconds (default is 15 ms)" -x
  58. complete -c godot -l display-driver -d "Set the display driver" -x
  59. complete -c godot -l rendering-method -d "Set the renderer" -x -a "(godot_rendering_method_args)"
  60. complete -c godot -l rendering-driver -d "Set the rendering driver" -x -a "(godot_rendering_driver_args)"
  61. complete -c godot -l gpu-index -d "Use a specific GPU (run with --verbose to get available device list)" -x
  62. complete -c godot -l text-driver -d "Set the text driver" -x
  63. complete -c godot -l tablet-driver -d "Set the pen tablet input driver" -x
  64. complete -c godot -l headless -d "Enable headless mode (--display-driver headless --audio-driver Dummy). Useful for servers and with --script"
  65. complete -c godot -l log-file -d "Write output/error log to the specified path instead of the default location defined by the project" -x
  66. complete -c godot -l write-movie -d "Write a video to the specified path (usually with .avi or .png extension). --fixed-fps is forced when enabled" -x
  67. # Display options:
  68. complete -c godot -s f -l fullscreen -d "Request fullscreen mode"
  69. complete -c godot -s m -l maximized -d "Request a maximized window"
  70. complete -c godot -s w -l windowed -d "Request windowed mode"
  71. complete -c godot -s t -l always-on-top -d "Request an always-on-top window"
  72. complete -c godot -l resolution -d "Request window resolution" -x
  73. complete -c godot -l position -d "Request window position" -x
  74. complete -c godot -l single-window -d "Use a single window (no separate subwindows)"
  75. complete -c godot -l xr-mode -d "Select Extended Reality (XR) mode" -a "default off on"
  76. # Debug options:
  77. complete -c godot -s d -l debug -d "Debug (local stdout debugger)"
  78. complete -c godot -s b -l breakpoints -d "Specify the breakpoint list as source::line comma-separated pairs, no spaces (use %20 instead)" -x
  79. complete -c godot -l profiling -d "Enable profiling in the script debugger"
  80. complete -c godot -l gpu-profile -d "Show a GPU profile of the tasks that took the most time during frame rendering"
  81. complete -c godot -l gpu-validation -d "Enable graphics API validation layers for debugging"
  82. complete -c godot -l gpu-abort -d "Abort on graphics API usage errors (usually validation layer errors)"
  83. complete -c godot -l remote-debug -d "Enable remote debugging"
  84. complete -c godot -l debug-collisions -d "Show collision shapes when running the scene"
  85. complete -c godot -l debug-navigation -d "Show navigation polygons when running the scene"
  86. complete -c godot -l debug-stringnames -d "Print all StringName allocations to stdout when the engine quits"
  87. complete -c godot -l max-fps -d "Set a maximum number of frames per second rendered (can be used to limit power usage), a value of 0 results in unlimited framerate" -x
  88. complete -c godot -l frame-delay -d "Simulate high CPU load (delay each frame by the given number of milliseconds)" -x
  89. complete -c godot -l time-scale -d "Force time scale (higher values are faster, 1.0 is normal speed)" -x
  90. complete -c godot -l disable-render-loop -d "Disable render loop so rendering only occurs when called explicitly from script"
  91. complete -c godot -l disable-crash-handler -d "Disable crash handler when supported by the platform code"
  92. complete -c godot -l fixed-fps -d "Force a fixed number of frames per second (this setting disables real-time synchronization)" -x
  93. complete -c godot -l print-fps -d "Print the frames per second to the stdout"
  94. # Standalone tools:
  95. complete -c godot -s s -l script -d "Run a script" -r
  96. complete -c godot -l check-only -d "Only parse for errors and quit (use with --script)"
  97. complete -c godot -l export-release -d "Export the project in release mode using the given preset and output path" -x
  98. complete -c godot -l export-debug -d "Export the project in debug mode using the given preset and output path" -x
  99. complete -c godot -l export-pack -d "Export the project data only as a PCK or ZIP file using the given preset and output path" -x
  100. complete -c godot -l convert-3to4 -d "Converts project from Godot 3.x to Godot 4.x"
  101. complete -c godot -l validate-conversion-3to4 -d "Shows what elements will be renamed when converting project from Godot 3.x to Godot 4.x"
  102. complete -c godot -l doctool -d "Dump the engine API reference to the given path in XML format, merging if existing files are found" -r
  103. complete -c godot -l no-docbase -d "Disallow dumping the base types (used with --doctool)"
  104. complete -c godot -l build-solutions -d "Build the scripting solutions (e.g. for C# projects)"
  105. complete -c godot -l dump-gdextension-interface -d "Generate GDExtension header file 'gdextension_interface.h' in the current folder. This file is the base file required to implement a GDExtension"
  106. complete -c godot -l dump-extension-api -d "Generate JSON dump of the Godot API for GDExtension bindings named 'extension_api.json' in the current folder"
  107. complete -c godot -l benchmark -d "Benchmark the run time and print it to console"
  108. complete -c godot -l benchmark-file -d "Benchmark the run time and save it to a given file in JSON format" -x
  109. complete -c godot -l test -d "Run all unit tests; run with '--test --help' for more information" -x