From 64a41e98abf850d74f0c7ecebe1ef06aaa87f166 Mon Sep 17 00:00:00 2001 From: Pablo Fernandez Date: Wed, 31 Jan 2024 13:45:23 +0000 Subject: [PATCH] remove default `start` and just document using `lfg` --- README.md | 4 ++-- src/index.ts | 11 +---------- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 6de7431..dcfaa51 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ To quickly install `nsecbunkerd` via Docker just run: ### Configurations - Prepare your config directory - + ```shell mkdir $HOME/.nsecbunker-config ``` @@ -105,7 +105,7 @@ You will need this to manage users of your keys. ## Start ```bash -$ npm run nsecbunkerd start +$ npm run lfg --admin ``` ## Testing with `nsecbunker-client` diff --git a/src/index.ts b/src/index.ts index 46a9280..c8b3620 100644 --- a/src/index.ts +++ b/src/index.ts @@ -65,14 +65,5 @@ const argv = yargs(hideBin(process.argv)) default: 'config/nsecbunker.json', }, }) + .demandCommand(0, 1) .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 - }); -} \ No newline at end of file