mirror of
https://github.com/JuanCanham/HackMyResume.git
synced 2025-04-19 22:30:26 +01:00
Start moving to a more familiar verb-based interface with "generate" and "validate" commands. Use with "fluentcv generate" or "fluentcv validate".
46 lines
761 B
JavaScript
46 lines
761 B
JavaScript
/**
|
|
Base resume generator for FluentCV.
|
|
@license Copyright (c) 2015 | James M. Devlin
|
|
*/
|
|
|
|
(function() {
|
|
|
|
// Use J. Resig's nifty class implementation
|
|
var Class = require( '../utils/class' );
|
|
|
|
/**
|
|
The BaseGenerator class is the root of the generator hierarchy. Functionality
|
|
common to ALL generators lives here.
|
|
*/
|
|
|
|
var BaseGenerator = module.exports = Class.extend({
|
|
|
|
/**
|
|
Base-class initialize.
|
|
*/
|
|
init: function( outputFormat ) {
|
|
this.format = outputFormat;
|
|
},
|
|
|
|
/**
|
|
Status codes.
|
|
*/
|
|
codes: {
|
|
success: 0,
|
|
themeNotFound: 1,
|
|
copyCss: 2,
|
|
resumeNotFound: 3,
|
|
missingCommand: 4,
|
|
invalidCommand: 5
|
|
},
|
|
|
|
/**
|
|
Generator options.
|
|
*/
|
|
opts: {
|
|
|
|
}
|
|
|
|
});
|
|
}());
|