Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

controllers: add a cmd controller #4257

Merged
merged 1 commit into from Mar 2, 2021
Merged

controllers: add a cmd controller #4257

merged 1 commit into from Mar 2, 2021

Conversation

nicks
Copy link
Member

@nicks nicks commented Mar 1, 2021

Hello @milas,

Please review the following commits I made in branch nicks/cmdscaffold:

e8ef063 (2021-03-01 11:22:57 -0500)
controllers: add a cmd controller

Code review reminders, by giving a LGTM you attest that:

  • Commits are adequately tested
  • Code is easy to understand and conforms to style guides
  • Incomplete code is marked with TODOs
  • Code is suitably instrumented with logging and metrics

@nicks nicks requested a review from milas March 1, 2021 16:23
@nicks
Copy link
Member Author

nicks commented Mar 1, 2021

mainly making sure i got the scaffolding right!


import "github.com/google/wire"

var WireSet = wire.NewSet(
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think this actually being used currently, but I do like this pattern since make the top level wire cleaner:

var controllerSet = wire.NewSet(
    filewatch.WireSet,
    cmd.WireSet,
    ...
)

(I'm assuming controllers will accumulate various sub-dependencies beyond their own ctor)

Copy link
Member Author

Choose a reason for hiding this comment

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

oops, fixed. yep, there will be other deps

@nicks nicks merged commit fd74295 into master Mar 2, 2021
@nicks nicks deleted the nicks/cmdscaffold branch March 2, 2021 15:14
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.

None yet

2 participants