1
0
Fork 0
mirror of https://github.com/sbrl/terrain50-cli.git synced 2024-11-22 06:53:01 +00:00

Add current version of terrain50 library to help text

This commit is contained in:
Starbeamrainbowlabs 2020-10-16 17:35:40 +01:00
parent 0af6e7f7c5
commit 3726f9e624
Signed by: sbrl
GPG key ID: 1BE5172E637709C2
4 changed files with 15 additions and 8 deletions

View file

@ -14,6 +14,10 @@ npm install --save terrain50-cli
----- -----
## v1.6.3
- Add current version of `terrain50` library to help text
## v1.6.2 ## v1.6.2
- `merge`: Fix crash - `merge`: Fix crash

12
package-lock.json generated
View file

@ -10,9 +10,9 @@
"integrity": "sha512-trnsAYxU3xnS1gPHPyU961coFyLkh4gAD/0zQ5mymY4yOZ+CYvsPqUbOFSw0aDM4y0tV7tiFxL/1XfXPNC6IPg==" "integrity": "sha512-trnsAYxU3xnS1gPHPyU961coFyLkh4gAD/0zQ5mymY4yOZ+CYvsPqUbOFSw0aDM4y0tV7tiFxL/1XfXPNC6IPg=="
}, },
"applause-cli": { "applause-cli": {
"version": "1.3.3", "version": "1.5.1",
"resolved": "https://registry.npmjs.org/applause-cli/-/applause-cli-1.3.3.tgz", "resolved": "https://registry.npmjs.org/applause-cli/-/applause-cli-1.5.1.tgz",
"integrity": "sha512-MZN635uK5p53rbenQwuYAvhBrg+Piuyy8ux+lZplsariqoRwdu4GUO34eugxevcPNv2KDyQ4hZnbckZaXsljEg==" "integrity": "sha512-QNFlRnYAJu2FsH/rvhwtGjfamKK3ehELAmn9sYNY5b1A6OW3DTs3e4+gfpRKl1yjck+EEeCwKyUoaOsXYFGzgA=="
}, },
"arr-flatten": { "arr-flatten": {
"version": "1.1.0", "version": "1.1.0",
@ -338,9 +338,9 @@
} }
}, },
"terrain50": { "terrain50": {
"version": "1.8.4", "version": "1.9.1",
"resolved": "https://registry.npmjs.org/terrain50/-/terrain50-1.8.4.tgz", "resolved": "https://registry.npmjs.org/terrain50/-/terrain50-1.9.1.tgz",
"integrity": "sha512-AM7BnE4NI77iYJeJYfklTGCA954OAXkYbwQ0o93pVQIsjWxojlqOIieqLwmLQxGJT5g32+Gjwwf0Q+F7gtpZUg==", "integrity": "sha512-QqDS3FMiJzjXYR0LQd/i/hezRS/NnhJJOw/+isv16GipToi7P1aupIICDDWPy3dZooKuLiYffhzePxog+bGJJw==",
"requires": { "requires": {
"nexline": "^1.2.1", "nexline": "^1.2.1",
"nnng": "^1.0.0" "nnng": "^1.0.0"

View file

@ -33,11 +33,11 @@
"homepage": "https://github.com/sbrl/terrain50-cli#readme", "homepage": "https://github.com/sbrl/terrain50-cli#readme",
"dependencies": { "dependencies": {
"@iarna/toml": "^2.2.5", "@iarna/toml": "^2.2.5",
"applause-cli": "^1.3.3", "applause-cli": "^1.5.1",
"chroma-js": "^2.1.0", "chroma-js": "^2.1.0",
"image-encode": "^1.3.0", "image-encode": "^1.3.0",
"nexline": "^1.2.1", "nexline": "^1.2.1",
"terrain50": "^1.8.4" "terrain50": "^1.9.1"
}, },
"bin": { "bin": {
"terrain50": "./src/index.mjs" "terrain50": "./src/index.mjs"

View file

@ -10,6 +10,8 @@ import CliParser from 'applause-cli';
import a from '../Helpers/Ansi.mjs'; import a from '../Helpers/Ansi.mjs';
import settings from './settings.mjs'; import settings from './settings.mjs';
import { get_version } from 'terrain50';
const __dirname = import.meta.url.slice(7, import.meta.url.lastIndexOf("/")); const __dirname = import.meta.url.slice(7, import.meta.url.lastIndexOf("/"));
@ -54,6 +56,7 @@ async function get_actions_metadata() {
export default async function() { export default async function() {
let cli = new CliParser(path.resolve(__dirname, "../../package.json")); let cli = new CliParser(path.resolve(__dirname, "../../package.json"));
cli.set_description_extended(`With terrain50 ${await get_version()}`);
// Disable ansi escape codes if requested // Disable ansi escape codes if requested
if(!settings.output.ansi_colour) { if(!settings.output.ansi_colour) {