fist commit

This commit is contained in:
Guillaume "B.B." Van Hemmen 2024-08-07 10:43:19 +02:00
commit a27fca4dea
Signed by: GuillaumeHemmen
GPG key ID: 7921E64524F7EB35
17 changed files with 5033 additions and 0 deletions

21
bin/docker-volume-manager Executable file
View file

@ -0,0 +1,21 @@
#!/usr/bin/env node
/* tslint:disable */
// check if we're running in dev mode
var devMode = require('fs').existsSync(`${__dirname}/../src`)
// or want to "force" running the compiled version with --compiled-build
var wantsCompiled = process.argv.indexOf('--compiled-build') >= 0
if (wantsCompiled || !devMode) {
// this runs from the compiled javascript source
require(`${__dirname}/../build/cli`).run(process.argv)
} else {
// this runs from the typescript source (for dev only)
// hook into ts-node so we can run typescript on the fly
require('ts-node').register({ project: `${__dirname}/../tsconfig.json` })
// run the CLI with the current process arguments
require(`${__dirname}/../src/cli`).run(process.argv)
}