Skip to content

Commit

Permalink
Hook up to public api
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicole White committed Feb 13, 2024
1 parent 452a349 commit e22961f
Show file tree
Hide file tree
Showing 2 changed files with 328 additions and 260 deletions.
9 changes: 8 additions & 1 deletion src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,16 @@ yargs(hideBin(process.argv))
})
.option('interactive', {
alias: 'i',
describe: 'Run command interactively',
describe: 'Run tests interactively',
type: 'boolean',
default: false,
})
.option('api-key', {
describe: 'Autoblocks API key',
type: 'string',
default: process.env.AUTOBLOCKS_API_KEY,
demandOption: true,
})
.help();
},
(argv) => {
Expand All @@ -49,6 +55,7 @@ yargs(hideBin(process.argv))
handlers.testing.exec({
command,
commandArgs,
apiKey: argv['api-key'],
runMessage: argv.message,
port: argv.port,
interactive: argv.interactive,
Expand Down
Loading

0 comments on commit e22961f

Please sign in to comment.