Skip to content

Commit

Permalink
Removing advanced options for now
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiehewitt15 committed Sep 5, 2024
1 parent 5e89890 commit bd077b4
Showing 1 changed file with 15 additions and 16 deletions.
31 changes: 15 additions & 16 deletions src/interactiveFlow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,20 +141,20 @@ export async function interactiveFlow() {
: {};

// Prompting for advanced options
const advancedAnswers = await prompt<Partial<Answers>>([
{
type: 'confirm',
name: 'showAdvanced',
message: 'Would you like to consider all of the advanced options for your asset?\n',
initial: false,
},
{
type: 'input',
name: 'customParameter',
message: 'Please provide any user-defined parameters:\n',
skip: (answers: Partial<Answers>) => !answers.showAdvanced,
},
]);
// const advancedAnswers = await prompt<Partial<Answers>>([
// {
// type: 'confirm',
// name: 'showAdvanced',
// message: 'Would you like to consider all of the advanced options for your asset?\n',
// initial: false,
// },
// {
// type: 'input',
// name: 'customParameter',
// message: 'Please provide any user-defined parameters:\n',
// skip: (answers: Partial<Answers>) => !answers.showAdvanced,
// },
// ]);

// Combine all answers
const allAnswers = {
Expand All @@ -164,8 +164,7 @@ export async function interactiveFlow() {
isCharged,
...paymentDetails,
network,
...templateAnswer,
...advancedAnswers
...templateAnswer
};

console.log('\nHere are your responses:');
Expand Down

0 comments on commit bd077b4

Please sign in to comment.