Reproduction
A registered command must define at least one @Handler() method:
src/app.module.ts
import { Command, FuncModule, run } from 'func'
@Command({ name: 'build' })
class BuildCommand {}
@FuncModule({ commands: [BuildCommand] })
class AppModule {}
run(AppModule)What this error means
func found no handler metadata on the selected command. A command that has handlers but cannot select one for the current invocation uses F_SYSTEM_NO_MATCHING_HANDLER instead.
How to fix it
Add an instance method decorated with @Handler():
src/build.command.ts
class BuildCommand {
@Handler()
run() {}
}