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

feat(prompt): rewrite codebase to use inquirer #2375

Closed
wants to merge 12 commits into from

Conversation

armano2
Copy link
Contributor

@armano2 armano2 commented Dec 20, 2020

This is highly experimental, and most likely requires more refining

Description

Current implementation of prompt is using vorpal that is using outdated version inquirer,

before merging this some of changes and tests can be submitted separately.

Motivation and Context

fixes #46, closes #86, fixes #402, fixes #585, fixes #688, fixes #812, fixes #1531

How Has This Been Tested?

New and exsiting tests and manual tests

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@armano2 armano2 changed the title Refactor/prompt2 feat(prompt): rewrite codebase to use inquirer Dec 20, 2020
@armano2 armano2 force-pushed the refactor/prompt2 branch 2 times, most recently from beb2ec0 to 8674c0a Compare December 22, 2020 00:55
@armano2 armano2 marked this pull request as ready for review January 8, 2021 17:47
@@ -0,0 +1,55 @@
import {Result} from './types';
import format from './format';
Copy link
Contributor Author

Choose a reason for hiding this comment

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

i added some additional tests here, as this file was never tested

});
const message = await input(prompt);
expect(message).toEqual('fix(test): subject\n' + 'body\n' + 'footer');
});
Copy link
Contributor Author

@armano2 armano2 Jan 9, 2021

Choose a reason for hiding this comment

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

those tests actually test validation only, as there is no viable / easy way to write proper end to end tests

most likely we should add more cases here

@@ -0,0 +1,96 @@
import {Answers, PromptModule, QuestionCollection} from 'inquirer';
/// <reference path="./inquirer/inquirer.d.ts" />
Copy link
Contributor Author

@armano2 armano2 Jan 12, 2021

Choose a reason for hiding this comment

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

if you have better idea for this, I'm open to suggestions

@escapedcat
Copy link
Member

Updated and merged via #2697 🎉
Thanks armano! Appreciate all you do!

@escapedcat escapedcat closed this Nov 6, 2021
@armano2 armano2 deleted the refactor/prompt2 branch November 7, 2021 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment