module
Hace::Completion
Overview
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.
Extended Modules
Defined in:
completion.crInstance Method Summary
- #bash
- #fish
-
#generate(shell : String)
Generate the completion script for shell, exiting with an error for unsupported shells.
-
#get_task_names(filename = "Hacefile.yml") : Array(String)
Task names from the Hacefile, for completion scripts.
- #zsh
Instance Method Detail
def generate(shell : String)
#
Generate the completion script for shell, exiting with an error for unsupported shells.
def 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.