Skip to content

fix(cli): deprecate the no-op --init-functions and --no-lint options of nf new - #370

Merged
Exeloo merged 3 commits into
mainfrom
fix/new-dead-options
Nov 23, 2026
Merged

Exeloo merged 3 commits into
mainfrom
fix/new-dead-options

Conversation

@Exeloo

@Exeloo Exeloo commented Nov 23, 2026

Copy link
Copy Markdown
Member

What does this PR do?

Closes #317

--init-functions, --no-init-functions and --no-lint never had an effect. They are now hidden from the help and still accepted, so scripts keep working, and nf new prints Warning: ... are deprecated and have no effect. They will be removed in the next major version. The unused lint input and the initFunctions schematic schema entry are removed. The docs, README and scaffold skill no longer list the options. Their removal in the next major is tracked in #351.

How do you test this PR?

  • Before: the help lists the 3 options as "accepted, but has no effect yet".
    After: they are gone from the help. nf new ... --no-init-functions --no-lint prints the warning once, exits 0 and generates the project. Without them, no warning.
  • Commands run: build, test:unit (349; new.command.spec 6/6), e2e cli-help + cli-new (32 passed, 1 skipped) and lint, all pass.

Merge danger

Door: two-way. The options still work; only a warning is added. Keep the PR title without !.
Blast radius: nf new users. No script in other repos passes these flags.

Quality gate

Check Result Notes
Docs Updated commands/new.mdx, schematics/project.mdx, README
Correctness Pass (2 rounds) Important (an unmarked break) closed by f670eca. Minor: the warning names all 3 flags
Performance Pass
Accessibility Pass
Security Pass
Style Pass lint: pass

Follow-up issues

@github-actions github-actions Bot added documentation Improvements or additions to documentation command:new Related to new command lib:schematics Related to the @nanoforge-dev/schematics library labels Nov 23, 2026
@Exeloo
Exeloo merged commit 64417bc into main Nov 23, 2026
9 checks passed
@Exeloo
Exeloo deleted the fix/new-dead-options branch November 23, 2026 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

command:new Related to new command documentation Improvements or additions to documentation lib:schematics Related to the @nanoforge-dev/schematics library

Projects

None yet

Development

Successfully merging this pull request may close these issues.

nf new help lists --no-lint and --init-functions, which have no effect

1 participant