Skip to content

feat: remove autocli placeholders#4884

Merged
Pantani merged 7 commits intomainfrom
feat/remove-autocli-placeholders
Mar 3, 2026
Merged

feat: remove autocli placeholders#4884
Pantani merged 7 commits intomainfrom
feat/remove-autocli-placeholders

Conversation

@Pantani
Copy link
Copy Markdown
Collaborator

@Pantani Pantani commented Mar 3, 2026

close #2841

@Pantani Pantani self-assigned this Mar 3, 2026
@github-actions github-actions bot added type:services Service-related issues. component:packages labels Mar 3, 2026
@Pantani Pantani marked this pull request as ready for review March 3, 2026 03:23
@Pantani Pantani requested a review from julienrbrt as a code owner March 3, 2026 03:23
@Pantani Pantani requested a review from Copilot March 3, 2026 03:35
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes AutoCLI placeholder markers from the Ignite scaffolding templates and switches AutoCLI option insertion from placeholder-based string replacement to AST-based appending, so new queries/messages/types can update autocli.go without relying on template sentinel comments.

Changes:

  • Removed AutoCLI placeholder constants and template placeholder comment lines.
  • Updated typed/list/map/singleton, query, and message generators to append AutoCLI options via new typed.AppendAutoCLI{Query,Tx}Options.
  • Removed the placeholder tracer plumbing from the scaffolder runner and deleted the ignite/pkg/placeholder package; added changelog entry.

Reviewed changes

Copilot reviewed 19 out of 19 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
ignite/templates/typed/singleton/singleton.go Switch AutoCLI query/tx option insertion from placeholder replacement to AST append helpers.
ignite/templates/typed/map/map.go Switch AutoCLI query/tx option insertion to AST append helpers (note: one CLI usage inconsistency flagged in comments).
ignite/templates/typed/list/list.go Switch AutoCLI query/tx option insertion to AST append helpers.
ignite/templates/typed/autocli.go New AST-based helper to append AutoCLI options and skip duplicates by RpcMethod.
ignite/templates/typed/autocli_test.go Tests for duplicate-skipping behavior in the new AST append helpers.
ignite/templates/typed/placeholders.go Removes typed AutoCLI placeholder constants.
ignite/templates/query/query.go Switch query AutoCLI insertion to typed.AppendAutoCLIQueryOptions.
ignite/templates/query/placeholders.go Removes query AutoCLI placeholder constant.
ignite/templates/module/create/files/base/x/{{moduleName}}/module/autocli.go.plush Removes placeholder comment lines from the generated module template.
ignite/templates/message/message.go Switch message AutoCLI insertion to typed.AppendAutoCLITxOptions.
ignite/services/scaffolder/type.go Updates type scaffolding to call generators without placeholder tracer/replacer.
ignite/services/scaffolder/query.go Updates query scaffolding to call generator without placeholder tracer/replacer.
ignite/services/scaffolder/message.go Updates message scaffolding to call generator without placeholder tracer/replacer.
ignite/services/scaffolder/scaffolder.go Removes Tracer() accessor (placeholder tracer no longer used).
ignite/pkg/xgenny/runner.go Removes placeholder tracer tracking and final tracer error return.
ignite/pkg/placeholder/* Deletes placeholder tracer implementation and tests.
changelog.md Adds entry for removing autocli placeholders.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

julienrbrt
julienrbrt previously approved these changes Mar 3, 2026
Copy link
Copy Markdown
Member

@julienrbrt julienrbrt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK 👏

@Pantani Pantani requested a review from julienrbrt March 3, 2026 16:16
@Pantani Pantani force-pushed the feat/remove-autocli-placeholders branch from aa2bf08 to a07ebe7 Compare March 3, 2026 16:23
@Pantani Pantani merged commit e7544b2 into main Mar 3, 2026
26 checks passed
@Pantani Pantani deleted the feat/remove-autocli-placeholders branch March 3, 2026 19:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove placeholders from the template

3 participants