no version = latest version

This commit is contained in:
Thomas Hobson 2021-04-23 11:59:54 +12:00
parent 589dfec6df
commit f683dfc2cf
No known key found for this signature in database
GPG key ID: 9F1FD9D87950DB6F
3 changed files with 11 additions and 5 deletions

View file

@ -3,11 +3,17 @@ const fs = require('fs');
const path = require('path');
const chalk = require('chalk');
exports.command = ['execute <language> <language-version> <file> [args..]']
exports.command = ['execute <language> <file> [args..]']
exports.aliases = ['run']
exports.describe = 'Executes file with the specified runner'
exports.builder = {
languageVersion: {
string: true,
desc: 'Set the version of the language to use',
alias: ['l'],
default: '*'
},
stdin: {
boolean: true,
desc: 'Read input from stdin and pass to executor',