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

ts-ify database:get #2778

Merged
merged 2 commits into from
Nov 4, 2020
Merged

ts-ify database:get #2778

merged 2 commits into from
Nov 4, 2020

Conversation

bkendall
Copy link
Contributor

@bkendall bkendall commented Nov 4, 2020

Description

high-level switch of database:get from js to ts. I'm not trying to fix or optimize code - keeping it simple to bring it to typescript first. Then I'll replace request with something else and clean up what I can.

The gnarliest change is that a new function writeOut needs to handle writing to the output streams because the callbacks of each options (file or stdout) don't match in signature.

Scenarios Tested

database:get to a file and to stdout

@google-cla google-cla bot added the cla: yes Manual indication that this has passed CLA. label Nov 4, 2020
src/commands/database-get.ts Show resolved Hide resolved
@bkendall bkendall merged commit ef28371 into master Nov 4, 2020
@bkendall bkendall deleted the bk-no-request branch November 12, 2020 18:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Manual indication that this has passed CLA.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants