@boykaframework/boyka-cli
Version:
š§š»āš» Command line assistant for Boyka Framework
79 lines (70 loc) ⢠2.68 kB
text/typescript
const boykaSite = 'https://boykaframework.github.io/boyka-framework';
const epilog = `For more information,
visit: ${boykaSite}`;
const commandFailure = (command: string) =>
`ā Something went wrong${command}! Run the command with '--help' option`;
const commandHelp = `
Check out the Boyka config documentation š
[https://boykaframework.github.io/boyka-framework/docs/guides/configuration]
šļø You can update the generated config file to include more settings š ļø as per your requirement.
`;
const capabilitiesHelp = `
ā ļø Since you have selected Cloud platform to run your tests,
you must also add cloud specific capabilities to the empty 'capabilities' block
added to the config file.`;
const commandSuccess = (state: string, filePath: string) =>
`Boyka config file ${state} at [${filePath}]`;
const commandError = (error: string) => `
ā Error occurred!
${error}
`;
const saveConfig = (state: string) => `${state} the [boyka-config.json] file...`;
const initConfig = (path: string) => `
Creating Boyka config file at ${path}...
`;
const pathNotFound = (path: string) => `Boyka config path [${path}] does not exists...`;
const pathNotFolder = (path: string) => `Config path [${path}] is not a folder...`;
const fileExists = (path: string) => `Boyka config file is already available at [${path}]...`;
const blockExists = (platform: string, configName: string) => `
${platform} Config already exists in the Boyka config file with the name: ${configName}...`;
const fileNotExists = (path: string) => `
Boyka config file does not exist at [${path}].
Create one by running command 'boyka config init'`;
const suggestions = `
š Suggestions to fix the above problems:`;
const errorSavingConfigFile = `
Error encountered creating Boyka config file...
`;
const successMavenProject = `
A demo Maven project has been created, you can modify the 'pom.xml' file
according to your requirement
`;
const mavenCommandSuggestion = (name: string) => `Navigate to the project by running,
'cd ${name}'
And resolve the dependencies by running,
'mvn clean install -DskipTests'`;
const incorrectTemplatePath = (message: string, path: string) =>
`Error encountered creating file: ${path}
Message: ${message}`;
const projectFolderExists = (path: string) => `Boyka Project is already created at [${path}]...`;
export {
suggestions,
fileNotExists,
blockExists,
fileExists,
pathNotFolder,
pathNotFound,
initConfig,
saveConfig,
commandError,
commandSuccess,
capabilitiesHelp,
commandHelp,
commandFailure,
epilog,
errorSavingConfigFile,
successMavenProject,
mavenCommandSuggestion,
incorrectTemplatePath,
projectFolderExists,
};