Skip to content

Commit

Permalink
#235: doc
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Feb 14, 2024
1 parent f26163f commit 19dbdc8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/eoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,17 @@ if (process.argv.includes('--verbose')) {

const fs = require('fs');
const path = require('path');
const hash = fs.readFileSync(path.join(__dirname, '../home-hash.txt'), 'utf8');
let parser = fs.readFileSync(path.join(__dirname, '../eo-version.txt'), 'utf8');
if (process.argv.includes('--latest')) {
parser = require('./parser-version').get();
// Maybe here we should also go to GITHUB, find out what is the
// latest hash of the objectionary/home repository, and then
// set it to the "hash" variable?
} else {
console.debug('EO parser ' + parser + '; use the --latest flag if you need a freshier one');
}

const hash = fs.readFileSync(path.join(__dirname, '../home-hash.txt'), 'utf8');

const version = require('./version');
program
.name('eoc')
Expand Down

0 comments on commit 19dbdc8

Please sign in to comment.