module

Hace::Completion

Shell completion script generation and Hacefile task discovery. Lives in its own file so the CLI (src/main.cr) and the test suite require the same code rather than duplicating stub implementations.

Instance methods

bash
Source
fish
Source
generate(shell : String)

Generate the completion script for shell, exiting with an error for unsupported shells.

Source
get_task_names(filename = "Hacefile.yml") : Array(String)

Task names from the Hacefile, for completion scripts. Returns an empty array when the Hacefile is missing or unparseable.

Source