UX: add 'show nearby picture' in new point popup

This commit is contained in:
Pieter Vander Vennet 2025-04-28 15:09:17 +02:00
parent d56cf56511
commit dad9bb1349
8 changed files with 37 additions and 24 deletions

View file

@ -15,17 +15,18 @@ export default abstract class Script {
args.splice(0, 2)
const start = new Date()
this.main(args)
.then((_) => {
.catch((e) => {
console.log(`ERROR in script ${process.argv[1]}:`, e)
process.exit(1)
})
.then(() => {
const end = new Date()
const millisNeeded = end.getTime() - start.getTime()
const green = (s) => "\x1b[92m" + s + "\x1b[0m"
console.log(green("All done! (" + millisNeeded + " ms)"))
})
.catch((e) => {
console.log(`ERROR in script ${process.argv[1]}:`, e)
process.exit(1)
})
}
public printHelp() {