File tree 2 files changed +6
-8
lines changed
2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -5,14 +5,14 @@ import { askSimpleQuestions } from "./simple";
5
5
import { QuestionArgs , QuestionResults } from "./types" ;
6
6
7
7
export const askQuestions = async (
8
- program : QuestionArgs ,
8
+ args : QuestionArgs ,
9
9
) : Promise < QuestionResults > => {
10
10
if ( ciInfo . isCI ) {
11
- return await getCIQuestionResults ( program ) ;
12
- } else if ( program . pro ) {
11
+ return await getCIQuestionResults ( args ) ;
12
+ } else if ( args . pro ) {
13
13
// TODO: refactor pro questions to return a result object
14
- await askProQuestions ( program as unknown as QuestionArgs ) ;
15
- return program as unknown as QuestionResults ;
14
+ await askProQuestions ( args ) ;
15
+ return args as unknown as QuestionResults ;
16
16
}
17
- return await askSimpleQuestions ( program as unknown as QuestionArgs ) ;
17
+ return await askSimpleQuestions ( args ) ;
18
18
} ;
Original file line number Diff line number Diff line change @@ -7,8 +7,6 @@ import { PureQuestionArgs, QuestionResults } from "./types";
7
7
import { askPostInstallAction , questionHandlers } from "./utils" ;
8
8
type AppType = "rag" | "code_artifact" | "multiagent" | "extractor" ;
9
9
10
- // TODO: configure data sources
11
-
12
10
type SimpleAnswers = {
13
11
appType : AppType ;
14
12
language : TemplateFramework ;
You can’t perform that action at this time.
0 commit comments