( answers: SetupAnswers, )
| 955 | return answers; |
| 956 | } |
| 957 | export async function cloudbeaverSetup( |
| 958 | answers: SetupAnswers, |
| 959 | ): Promise<SetupAnswers> { |
| 960 | try { |
| 961 | answers.CLOUDBEAVER_ADMIN_NAME = await promptInput( |
| 962 | "CLOUDBEAVER_ADMIN_NAME", |
| 963 | "CloudBeaver admin name:", |
| 964 | "talawa", |
| 965 | validateCloudBeaverAdmin, |
| 966 | ); |
| 967 | answers.CLOUDBEAVER_ADMIN_PASSWORD = await promptInput( |
| 968 | "CLOUDBEAVER_ADMIN_PASSWORD", |
| 969 | "CloudBeaver admin password:", |
| 970 | process.env.CLOUDBEAVER_ADMIN_PASSWORD ?? "", |
| 971 | validateCloudBeaverPassword, |
| 972 | ); |
| 973 | answers.CLOUDBEAVER_MAPPED_HOST_IP = await promptInput( |
| 974 | "CLOUDBEAVER_MAPPED_HOST_IP", |
| 975 | "CloudBeaver mapped host IP:", |
| 976 | "127.0.0.1", |
| 977 | ); |
| 978 | answers.CLOUDBEAVER_MAPPED_PORT = await promptInput( |
| 979 | "CLOUDBEAVER_MAPPED_PORT", |
| 980 | "CloudBeaver mapped port:", |
| 981 | "8978", |
| 982 | validatePort, |
| 983 | ); |
| 984 | answers.CLOUDBEAVER_SERVER_NAME = await promptInput( |
| 985 | "CLOUDBEAVER_SERVER_NAME", |
| 986 | "CloudBeaver server name:", |
| 987 | "Talawa CloudBeaver Server", |
| 988 | ); |
| 989 | answers.CLOUDBEAVER_SERVER_URL = await promptInput( |
| 990 | "CLOUDBEAVER_SERVER_URL", |
| 991 | "CloudBeaver server URL:", |
| 992 | "http://127.0.0.1:8978", |
| 993 | validateCloudBeaverURL, |
| 994 | ); |
| 995 | } catch (err) { |
| 996 | await handlePromptError(err); |
| 997 | } |
| 998 | return answers; |
| 999 | } |
| 1000 | export async function minioSetup(answers: SetupAnswers): Promise<SetupAnswers> { |
| 1001 | try { |
| 1002 | answers.MINIO_BROWSER = await promptInput( |
no test coverage detected