Skip to content

Commit

Permalink
node version in CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
Evgeny Metelkin committed Dec 6, 2023
1 parent 2325737 commit 7684cb9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
5 changes: 5 additions & 0 deletions TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,13 @@
[ ] rxode (R)
[ ] dat (DBSolve)
[ ] ModelingToolkit (Julia)
[ ] PGF and TikZ

## bugs

- `--skip-updates` in docs
- `heta update` in docs

## features

- checking units for diff eq
Expand All @@ -44,6 +48,7 @@

## ideas

- `heta update --dev`
- remove unnecessary rules in export
- generation of 'platform.yml' by `heta init`
- `include` statement is deprecated, use `#include` action (v0.8.0)
Expand Down
2 changes: 1 addition & 1 deletion bin/heta-update.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const { exec } = require('child_process');
const { name, version } = require('../package.json');

program
.name('heta init')
.name('heta update')
.description('Update heta-compiler to the latest version.')
.parse(process.argv);

Expand Down
7 changes: 3 additions & 4 deletions bin/heta.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@
'use strict';
const { Command } = require('commander');
const program = new Command('heta');
const pkg = require('../package');
const { version } = require('../package');

let version = pkg.version;
let descriptionText = `Command line utilities for working with Heta compiler
version: ${version}
license: ${pkg.license}`;
Version: ${version}
Node: ${process.version}`;

program
.version(version, '-v, --version')
Expand Down

0 comments on commit 7684cb9

Please sign in to comment.