mirror of
https://github.com/sbrl/terrain50-cli.git
synced 2024-11-26 07:33:00 +00:00
Add current version of terrain50 library to help text
This commit is contained in:
parent
0af6e7f7c5
commit
3726f9e624
4 changed files with 15 additions and 8 deletions
|
@ -14,6 +14,10 @@ npm install --save terrain50-cli
|
|||
-----
|
||||
|
||||
|
||||
## v1.6.3
|
||||
- Add current version of `terrain50` library to help text
|
||||
|
||||
|
||||
## v1.6.2
|
||||
- `merge`: Fix crash
|
||||
|
||||
|
|
12
package-lock.json
generated
12
package-lock.json
generated
|
@ -10,9 +10,9 @@
|
|||
"integrity": "sha512-trnsAYxU3xnS1gPHPyU961coFyLkh4gAD/0zQ5mymY4yOZ+CYvsPqUbOFSw0aDM4y0tV7tiFxL/1XfXPNC6IPg=="
|
||||
},
|
||||
"applause-cli": {
|
||||
"version": "1.3.3",
|
||||
"resolved": "https://registry.npmjs.org/applause-cli/-/applause-cli-1.3.3.tgz",
|
||||
"integrity": "sha512-MZN635uK5p53rbenQwuYAvhBrg+Piuyy8ux+lZplsariqoRwdu4GUO34eugxevcPNv2KDyQ4hZnbckZaXsljEg=="
|
||||
"version": "1.5.1",
|
||||
"resolved": "https://registry.npmjs.org/applause-cli/-/applause-cli-1.5.1.tgz",
|
||||
"integrity": "sha512-QNFlRnYAJu2FsH/rvhwtGjfamKK3ehELAmn9sYNY5b1A6OW3DTs3e4+gfpRKl1yjck+EEeCwKyUoaOsXYFGzgA=="
|
||||
},
|
||||
"arr-flatten": {
|
||||
"version": "1.1.0",
|
||||
|
@ -338,9 +338,9 @@
|
|||
}
|
||||
},
|
||||
"terrain50": {
|
||||
"version": "1.8.4",
|
||||
"resolved": "https://registry.npmjs.org/terrain50/-/terrain50-1.8.4.tgz",
|
||||
"integrity": "sha512-AM7BnE4NI77iYJeJYfklTGCA954OAXkYbwQ0o93pVQIsjWxojlqOIieqLwmLQxGJT5g32+Gjwwf0Q+F7gtpZUg==",
|
||||
"version": "1.9.1",
|
||||
"resolved": "https://registry.npmjs.org/terrain50/-/terrain50-1.9.1.tgz",
|
||||
"integrity": "sha512-QqDS3FMiJzjXYR0LQd/i/hezRS/NnhJJOw/+isv16GipToi7P1aupIICDDWPy3dZooKuLiYffhzePxog+bGJJw==",
|
||||
"requires": {
|
||||
"nexline": "^1.2.1",
|
||||
"nnng": "^1.0.0"
|
||||
|
|
|
@ -33,11 +33,11 @@
|
|||
"homepage": "https://github.com/sbrl/terrain50-cli#readme",
|
||||
"dependencies": {
|
||||
"@iarna/toml": "^2.2.5",
|
||||
"applause-cli": "^1.3.3",
|
||||
"applause-cli": "^1.5.1",
|
||||
"chroma-js": "^2.1.0",
|
||||
"image-encode": "^1.3.0",
|
||||
"nexline": "^1.2.1",
|
||||
"terrain50": "^1.8.4"
|
||||
"terrain50": "^1.9.1"
|
||||
},
|
||||
"bin": {
|
||||
"terrain50": "./src/index.mjs"
|
||||
|
|
|
@ -10,6 +10,8 @@ import CliParser from 'applause-cli';
|
|||
import a from '../Helpers/Ansi.mjs';
|
||||
import settings from './settings.mjs';
|
||||
|
||||
import { get_version } from 'terrain50';
|
||||
|
||||
|
||||
const __dirname = import.meta.url.slice(7, import.meta.url.lastIndexOf("/"));
|
||||
|
||||
|
@ -54,6 +56,7 @@ async function get_actions_metadata() {
|
|||
|
||||
export default async function() {
|
||||
let cli = new CliParser(path.resolve(__dirname, "../../package.json"));
|
||||
cli.set_description_extended(`With terrain50 ${await get_version()}`);
|
||||
|
||||
// Disable ansi escape codes if requested
|
||||
if(!settings.output.ansi_colour) {
|
||||
|
|
Loading…
Reference in a new issue