mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-21 20:46:26 +02:00
validate json instead of a json header, and lots of cleanup
This commit is contained in:
parent
0da1cd5867
commit
de449c6d56
15 changed files with 272 additions and 269 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
const axios = require('axios').default;
|
||||
|
||||
const axios_instance = function(argv){
|
||||
const axios_instance = argv => {
|
||||
argv.axios = axios.create({
|
||||
baseURL: argv['piston-url']
|
||||
});
|
||||
|
@ -18,7 +18,7 @@ require('yargs')(process.argv.slice(2))
|
|||
string: true
|
||||
})
|
||||
.middleware(axios_instance)
|
||||
.scriptName("piston")
|
||||
.scriptName('piston')
|
||||
.commandDir('commands')
|
||||
.demandCommand()
|
||||
.help()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue