eolang 0.13.3 → 0.13.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eolang",
3
- "version": "0.13.3",
3
+ "version": "0.13.4",
4
4
  "author": "Yegor Bugayenko <yegor256@gmail.com> (https://www.yegor256.com/)",
5
5
  "license": "MIT",
6
6
  "repository": "objectionary/eoc",
@@ -33,6 +33,8 @@ const path = require('path');
33
33
  module.exports = function(opts) {
34
34
  return mvnw([
35
35
  'surefire:test',
36
+ opts.verbose ? '--errors' : '',
37
+ opts.verbose ? '' : '--quiet',
36
38
  '-Deo.version=' + opts.parser,
37
39
  `-Deo.targetDir=${path.resolve(opts.target)}`,
38
40
  ]);
package/src/eoc.js CHANGED
@@ -51,8 +51,11 @@ if (process.argv.includes('--latest')) {
51
51
  const version = require('./version');
52
52
  program
53
53
  .name('eoc')
54
- .description('EO command-line toolkit (' + version.what + ' ' + version.when + ')')
55
- .version(version.what);
54
+ .usage('[options] command')
55
+ .summary('EO command line toolkit')
56
+ .description('EO command-line toolkit (' + version.what + ' built on ' + version.when + ')')
57
+ .version(version.what, '-v, --version', 'Output the version number')
58
+ .helpOption('-?, --help', 'Print this help information');
56
59
 
57
60
  program
58
61
  .option('-s, --sources <path>', 'Directory with .EO sources', '.')
package/src/mvnw.js CHANGED
@@ -131,7 +131,6 @@ function stop() {
131
131
  * Prints mvnw execution status.
132
132
  */
133
133
  function print() {
134
- readline.clearLine(process.stdout);
135
134
  const duration = Date.now() - beginning;
136
135
  /**
137
136
  * Recursively calculates number of files under a directory.
@@ -161,8 +160,9 @@ function print() {
161
160
  elapsed = `${Math.ceil(duration / 3600000)}min`;
162
161
  }
163
162
  process.stdout.write(
164
- colors.yellow(`[${phase}] ${elapsed}; ${count(target, 0)} files generated...`)
163
+ colors.yellow(`[${phase}] ${elapsed}; ${count(target, 0)} files generated so far...`)
165
164
  );
165
+ readline.clearLine(process.stdout, 1);
166
166
  readline.cursorTo(process.stdout, 0);
167
167
  }
168
168
 
package/src/version.js CHANGED
@@ -25,6 +25,6 @@
25
25
  // The values here are replaced automatically by the .rultor.yml script,
26
26
  // at the "release" pipeline:
27
27
  module.exports = {
28
- what: '0.13.3',
28
+ what: '0.13.4',
29
29
  when: '2023-06-03'
30
30
  };