Skip to content

Consolidate subcommands for each resource on a single file. - #1733

Merged
Luiz Oliveira (laoj2) merged 1 commit into
agent-substrate:mainfrom
juli4n:kubectl-files
Sep 18, 2026
Merged

Luiz Oliveira (laoj2) merged 1 commit into
agent-substrate:mainfrom
juli4n:kubectl-files

Conversation

@juli4n

Copy link
Copy Markdown
Collaborator

As the number of resources in the Substrate API grows, having one file for each (resource x verb) is becoming hard to manage. We recently started consolidating all commands for a each resource in a single file (see tag.go), similar to how we organize RPC handlers in the ate-apiserver controlapi package.

This PR re-organizes the resources that are sill spread across multiple files.

@bowei

Copy link
Copy Markdown
Collaborator

What about each resource in a separate package?

We should be careful if a file gets above 1kLoC

@juli4n

Copy link
Copy Markdown
Collaborator Author

Sure, we can consider that if resources grow too much. I think we are ok for now?

@laoj2
Luiz Oliveira (laoj2) added this pull request to the merge queue Sep 18, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Sep 18, 2026
@laoj2
Luiz Oliveira (laoj2) added this pull request to the merge queue Sep 18, 2026
Merged via the queue into agent-substrate:main with commit 8c01920 Sep 18, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants