UNPKG

@boykaframework/boyka-cli

Version:

šŸ§‘šŸ»ā€šŸ’» Command line assistant for Boyka Framework

54 lines (47 loc) • 2.5 kB
const boykaSite = 'https://boykaframework.github.io/boyka-framework'; const epilog = `For more information, visit: ${boykaSite}`; const commandFailure = (command) => `āŒ 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, filePath) => `Boyka config file ${state} at [${filePath}]`; const commandError = (error) => ` āŒ Error occurred! ${error} `; const saveConfig = (state) => `${state} the [boyka-config.json] file...`; const initConfig = (path) => ` Creating Boyka config file at ${path}... `; const pathNotFound = (path) => `Boyka config path [${path}] does not exists...`; const pathNotFolder = (path) => `Config path [${path}] is not a folder...`; const fileExists = (path) => `Boyka config file is already available at [${path}]...`; const blockExists = (platform, configName) => ` ${platform} Config already exists in the Boyka config file with the name: ${configName}...`; const fileNotExists = (path) => ` 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) => `Navigate to the project by running, 'cd ${name}' And resolve the dependencies by running, 'mvn clean install -DskipTests'`; const incorrectTemplatePath = (message, path) => `Error encountered creating file: ${path} Message: ${message}`; const projectFolderExists = (path) => `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, };