mirror of
https://github.com/aljazceru/nsecbunkerd.git
synced 2025-12-17 06:04:22 +01:00
start without requiring start
This commit is contained in:
11
src/index.ts
11
src/index.ts
@@ -65,5 +65,14 @@ const argv = yargs(hideBin(process.argv))
|
|||||||
default: 'config/nsecbunker.json',
|
default: 'config/nsecbunker.json',
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
.demandCommand(0, 1)
|
|
||||||
.parse();
|
.parse();
|
||||||
|
|
||||||
|
// Check if a command is provided, if not, default to 'start'
|
||||||
|
if (!argv._[0]) {
|
||||||
|
start({
|
||||||
|
keys: [],
|
||||||
|
verbose: false,
|
||||||
|
config: argv.config as string,
|
||||||
|
adminNpubs: adminNpubs
|
||||||
|
});
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user