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.cr

Instance Method Summary

Instance Method Detail

def bash #

[View source]
def fish #

[View source]
def generate(shell : String) #

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


[View source]
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.


[View source]
def zsh #

[View source]