Skip to content

Commit

Permalink
feat: provide application name when connecting
Browse files Browse the repository at this point in the history
  • Loading branch information
gajus committed May 7, 2021
1 parent 09893c2 commit f2ef607
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/bin/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ const argv = yargs
description: 'When filtering, print a number of lines trailing the match.',
type: 'number',
},
name: {
description: 'Name of the application. Used by roarr.io.',
type: 'string',
},
'output-format': {
choices: [
'pretty',
Expand Down Expand Up @@ -101,6 +105,7 @@ if (argv['api-key']) {
socket = io(argv['api-url'], {
query: {
hostname: os.hostname(),
name: argv.name || '',
token: String(argv['api-key']),
version: '1.0.0',
},
Expand Down

0 comments on commit f2ef607

Please sign in to comment.