mirror of
https://github.com/JuanCanham/HackMyResume.git
synced 2025-05-10 07:47:07 +01:00
feat: convert: support multiple JRS versions
This commit is contained in:
@ -257,6 +257,9 @@ assembleError = ( ex ) ->
|
||||
msg = printf M2C( @msgs.themeHelperLoad.msg ), ex.glob
|
||||
etype = 'error'
|
||||
|
||||
when HMSTATUS.invalidSchemaVersion
|
||||
msg = printf M2C( @msgs.invalidSchemaVersion.msg ), ex.data
|
||||
etype = 'error'
|
||||
|
||||
msg: msg # The error message to display
|
||||
withStack: withStack # Whether to include the stack
|
||||
|
@ -84,6 +84,7 @@ main = module.exports = ( rawArgs, exitCallback ) ->
|
||||
program
|
||||
.command('convert')
|
||||
.description('Convert a resume to/from FRESH or JSON RESUME format.')
|
||||
.option('-f --format <fmt>', 'FRESH or JRS format and optional version', undefined)
|
||||
.action(->
|
||||
x = splitSrcDest.call( this );
|
||||
execute.call( this, x.src, x.dst, this.opts(), logMsg)
|
||||
|
@ -137,3 +137,5 @@ errors:
|
||||
An error occurred while attempting to load the '%s' theme helper. Is the
|
||||
theme correctly installed?
|
||||
dummy: dontcare
|
||||
invalidSchemaVersion:
|
||||
msg: "'%s' is not recognized as a valid schema version."
|
||||
|
Reference in New Issue
Block a user