Skip to content

Commit

Permalink
fix: add missing cli.mjs file
Browse files Browse the repository at this point in the history
Signed-off-by: Jérôme Benoit <[email protected]>
  • Loading branch information
jerome-benoit committed Jul 8, 2024
1 parent 4a96b21 commit f558dd1
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions cli.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#!/usr/bin/env node

import { peowly } from 'peowly'

const { options } = peowly({
options: {
baseline: {
listGroup: 'Benchmark options',
description: '',
type: 'string',
},
bench: {
listGroup: 'Benchmark options',
description: '',
type: 'string',
multiple: true,
},
silent: {
listGroup: 'Output options',
description: 'Silences output',
type: 'boolean',
},
json: {
listGroup: 'Output options',
description: 'Outputs as JSON',
type: 'boolean' | 'number' | 'bmf',
},
file: {
listGroup: 'Output options',
description: 'Outputs as JSON to a file',
type: 'string',
},
},
description: 'tatami-ng CLI for running benchmarks',
examples: ['--bench <command> --bench <command>'],
name: 'tatami',
})

0 comments on commit f558dd1

Please sign in to comment.