Skip to content

Commit

Permalink
chore: wip
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbbreuer committed May 23, 2024
1 parent b09543d commit cb25ccb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ lib-cov
logs
node_modules
temp
.vitepress/dist
.vitepress/cache
docs/.vitepress/dist
docs/.vitepress/cache
storage
rp
11 changes: 6 additions & 5 deletions bin/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,12 @@ interface Options {
}

cli
.command('secure <domain>', 'Auto generate a self-signed SSL certificate/s')
.option('--output <output>', 'Output directory', { default: os.tmpdir() })
.option('--key <key>', 'Output key file name', { default: 'key.pem' })
.option('--cert <cert>', 'Output certificate file name', { default: 'cert.pem' })
.option('--ca <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>', 'Output directory', { default: os.tmpdir() })
.option('-k, --key <key>', 'Output key file name', { default: 'key.pem' })
.option('-c, --cert <cert>', 'Output certificate file name', { default: 'cert.pem' })
.option('-ca, --ca <ca>', 'Output CA file name', { default: 'ca.pem' })
.option('--verbose', 'Enable verbose logging', { default: false })
.usage('tlsx secure <domain> [options]')
.example('tlsx secure example.com --output /etc/ssl')
Expand Down

0 comments on commit cb25ccb

Please sign in to comment.