scaffold_invalid_name

Diagnostic `nanook::cli::scaffold_invalid_name`

Summary

plugin name `{0}` must be snake_case (lowercase ASCII, digits, underscores)

Help

use [a-z_][a-z0-9_]* so the cdylib filename matches lib<name>.so

Details

When this fires

nanook plugins new got a name that isn't snake_case. The validator requires the first char to be lowercase ASCII or _, and every other char to be lowercase ASCII, a digit, or _. Uppercase, dashes, and unicode all bounce here.

What to check

Rename to fit the cdylib convention so loading works without surprises:

# bad
nanook plugins new MyCollector
nanook plugins new my-collector

# good
nanook plugins new my_collector --kind collector
nanook plugins new nanook_smtp_v2 --kind action

The resulting file libmy_collector.so is what the host loader looks for at runtime, so the shape matters.