UNPKG

cbf

Version:

A package for creating scripts to store and run your most commonly used CLI commands for a repo or just in general

74 lines (71 loc) 1.99 kB
#!/usr/bin/env node const messages = { noSuchDirectory: { message: '\nCould not run command in non-existent <red>{path}<red> directory', }, commandMessage: { message: '\n{message}\n', }, runCommandDryRunMode: { message: '\nRunning in <primary>dry-run<primary> mode. Would have run <primary>{command}<primary>\n', }, runCommand: { message: '\nRunning <primary>{command}<primary>\n', }, runCommandInPathDryRunMode: { message: '\nRunning in <primary>dry-run<primary> mode. Would have run <primary>{command}<primary> in {path}\n', }, runCommandInPath: { message: '\nRunning <primary>{command}<primary> in {path}\n', }, runCommandsDryRunMode: { message: '\nRunning in <primary>dry-run<primary> mode. Would have run\n<primary>[commands]<primary>\n', defaultOptions: { commands: [], separator: '\n', }, }, runCommands: { message: '\nRunning\n[commands]<primary>\n', defaultOptions: { commands: [], separator: '\n', }, }, runCommandsInPathDryRunMode: { message: '\nRunning in <primary>dry-run<primary> mode. Would have run commands in <primary>{path}\n[commands]<primary>\n', defaultOptions: { commands: [], separator: '\n', }, }, runCommandsInPath: { message: '\nRunning commands in <primary>{path}\n[commands]<primary>\n', defaultOptions: { commands: [], separator: '\n', }, }, errorRunningCommand: { message: '\n\nError executing <primary>{command}<primary>\n<error>{error}<error>', }, errorRunningCommands: { message: '\n\nError executing commands\n<primary>[commands]<primary>\n<error>{error}<error>', defaultOptions: { commands: [], separator: '\n', }, }, dryRun: { message: '\nRunning in <primary>dry-run<primary> mode. Would have run:\n\n<secondary>{command}<secondary>', defaultOptions: { command: '', }, }, }; module.exports = messages;