2020-03-27 20:10:52 +00:00
|
|
|
"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.
|
2020-03-27 20:10:52 +00:00
|
|
|
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")
|
|
|
|
))
|
|
|
|
};
|