From cb25ccbb565177e21a79d08611876d85b56a443d Mon Sep 17 00:00:00 2001 From: Chris Date: Thu, 23 May 2024 16:46:35 -0700 Subject: [PATCH] chore: wip --- .gitignore | 4 ++-- bin/cli.ts | 11 ++++++----- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index becf13f..a68a3ea 100644 --- a/.gitignore +++ b/.gitignore @@ -10,7 +10,7 @@ lib-cov logs node_modules temp -.vitepress/dist -.vitepress/cache +docs/.vitepress/dist +docs/.vitepress/cache storage rp diff --git a/bin/cli.ts b/bin/cli.ts index 6c866fe..9360361 100644 --- a/bin/cli.ts +++ b/bin/cli.ts @@ -23,11 +23,12 @@ interface Options { } cli - .command('secure ', 'Auto generate a self-signed SSL certificate/s') - .option('--output ', 'Output directory', { default: os.tmpdir() }) - .option('--key ', 'Output key file name', { default: 'key.pem' }) - .option('--cert ', 'Output certificate file name', { default: 'cert.pem' }) - .option('--ca ', 'Output CA file name', { default: 'ca.pem' }) + .command('secure [domain]', 'Auto generate a self-signed SSL certificate/s') + .option('-d, --domain [domain]', 'Domain name', { default: true }) + .option('-o, --output ', 'Output directory', { default: os.tmpdir() }) + .option('-k, --key ', 'Output key file name', { default: 'key.pem' }) + .option('-c, --cert ', 'Output certificate file name', { default: 'cert.pem' }) + .option('-ca, --ca ', 'Output CA file name', { default: 'ca.pem' }) .option('--verbose', 'Enable verbose logging', { default: false }) .usage('tlsx secure [options]') .example('tlsx secure example.com --output /etc/ssl')