mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-28 05:59:42 -08:00
14 lines
333 B
Plaintext
14 lines
333 B
Plaintext
|
#!/usr/bin/env node
|
||
|
|
||
|
// Check if version should be displayed
|
||
|
const versionFlags = ['-v', '-V', '--version'];
|
||
|
if (versionFlags.includes(process.argv.slice(-1)[0])) {
|
||
|
console.log(require('../package').version);
|
||
|
process.exit(0);
|
||
|
}
|
||
|
|
||
|
(async () => {
|
||
|
const oclif = require('@oclif/core');
|
||
|
await oclif.execute({ dir: __dirname });
|
||
|
})();
|