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

Simplify some naming #39

Merged
merged 10 commits into from Dec 4, 2015
Merged

Simplify some naming #39

merged 10 commits into from Dec 4, 2015

Conversation

mdiep
Copy link
Member

@mdiep mdiep commented Dec 2, 2015

I really dislike some of the current naming in ReactiveTask. This PR cleans that up and makes a few more breaking changes while I'm at it:

  • Rename TaskDescription to Task
  • Remove the launchPath: parameter name from Task.init
  • Rename ReactiveTaskError to TaskError
  • Move standardInput from Task to launchTask
  • Make Task conform to Hashable
  • Add a Launch case to TaskEvent that sends the Task

The latter 3 changes were motivated by a desire to print executed commands in Carthage. Right now, we only print the output of commands. It'd be nice to print the commands themselves.

}
}

private func ==<Key : Equatable, Value : Equatable>(lhs: [Key : Value]?, rhs: [Key : Value]?) -> Bool {
Copy link
Member

Choose a reason for hiding this comment

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

This should be styled as follows:

<Key: Equatable, Value: Equatable>(lhs: [Key: Value]?, rhs: [Key: Value]?)

@ikesyo
Copy link
Member

ikesyo commented Dec 4, 2015

I've experimented with the changes in Carthage, and I had no problem to put them in! Looks good to me and just a few stylistic notes. 👍

@mdiep
Copy link
Member Author

mdiep commented Dec 4, 2015

👾

/// Launches a new shell task, using the parameters from `taskDescription`.
/// Launches a new shell task.
///
/// - Parameters:
Copy link
Member

Choose a reason for hiding this comment

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

It's nice! 💯

Copy link
Member Author

Choose a reason for hiding this comment

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

I just discovered this yesterday in the apple/swift documentation. 😄

ikesyo added a commit that referenced this pull request Dec 4, 2015
@ikesyo ikesyo merged commit 645c93e into master Dec 4, 2015
@ikesyo ikesyo deleted the mdiep-design branch December 4, 2015 16:39
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