-
Notifications
You must be signed in to change notification settings - Fork 6
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
Moved CommandContext and CommandResult to command package #193
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are we moving this to models? I'm not a fan of that models package because it inevitably becomes a dumping ground. Let's keep data models in meaningful packages. Like in this case, maybe keeping it in a package called command
and then the objects could just be Context
and Result
? Wdyt?
I like that, I was moving to models just to get it out of events. I like moving them to |
rename CommandContext -> Context rename CommandResult -> Result
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sweet looks good.
* Moved CommandContext and CommandResult to models (#193) * Moved CommandContext and CommandResult to models * move from models to command rename CommandContext -> Context rename CommandResult -> Result * moved command related helpers into command package * move ProjectCommandContext and ProjectResult to command/project package * move project command context and project result * revert unrelated code * move tests * fix left over * fix linting * fix tests * remove unused import * fix project context dependencies * fix depenedecies * fix typo
Created a new
command
package to contain command to contain everything command specific.Moved
CommandContext
,CommandResult
,CommandLock
,CommandName
,ProjectCommandContext
,ProjectResult
, andCommandResult
into the package.Removed
Command
from all structs.For instance:
Both
ProjectCommandContext
andProjectResults
have a dependency onCommandName
so I had to move them together to avoid cyclical dependencies