Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

Split CLI into tslint-cli and a Runner class #1688

Merged
merged 1 commit into from
Nov 24, 2016
Merged

Split CLI into tslint-cli and a Runner class #1688

merged 1 commit into from
Nov 24, 2016

Conversation

JoshuaKGoldberg
Copy link
Contributor

Fixes #1675.

tslint-cli.ts takes in arguments using optimist and converts them to a friendlier object to pass to a CliRunner. The rest of the logic that used to be in tslint-cli.ts is now in the CliRunner.

Notes:

  • I really wanted to make CliRunner::run return a Promise<number>, but didn't want to add new dependencies or change the output target.
  • I tried to stick to the existing code style for the cut-and-pasted code. If you'd like it changed I'm up for that too.
  • I'm not confident in CliRunner as a name. Alternate suggestions, anyone?

@JoshuaKGoldberg
Copy link
Contributor Author

👐 merge conflicts! I'll wait to resolve for if/until a design review passes.

@JoshuaKGoldberg
Copy link
Contributor Author

@nchen63 thanks for the ping, updated and renamed cliRunner.ts/CliRunner to runner.ts/Runner.

@JoshuaKGoldberg JoshuaKGoldberg changed the title Split CLI into tslint-cli and a CliRunner class Split CLI into tslint-cli and a Runner class Nov 23, 2016
@nchen63
Copy link
Contributor

nchen63 commented Nov 24, 2016

lgtm

@nchen63 nchen63 merged commit 3d70e38 into palantir:master Nov 24, 2016
@nchen63
Copy link
Contributor

nchen63 commented Nov 24, 2016

@JoshuaKGoldberg thanks!

@JoshuaKGoldberg JoshuaKGoldberg deleted the cli-runner branch November 24, 2016 00:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants