1
0
Fork 0
mirror of https://github.com/sbrl/terrain50-cli.git synced 2024-11-29 08:02:59 +00:00
terrain50-cli/src/Bootstrap/settings.mjs

22 lines
571 B
JavaScript
Raw Normal View History

"use strict";
import fs from 'fs';
import path from 'path';
const __dirname = import.meta.url.slice(7, import.meta.url.lastIndexOf("/"));
// Default settings object
2020-09-03 16:01:50 +00:00
// This is a (greatly) simplified stand-in for the much more advanced settings parsing system we have going on in our main PhD-Code codebase.
export default {
cli: {
program_name: "terrain50",
description: "manipulates ordnance survey digital elevation model files"
},
output: {
ansi_colour: true
},
package: JSON.parse(fs.readFileSync(
path.resolve(__dirname, "../../package.json")
))
};