mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-20 20:16:26 +02:00
Piston lint
This commit is contained in:
parent
d61fb8ec5b
commit
f2c91acbe6
57 changed files with 1121 additions and 893 deletions
|
@ -6,8 +6,8 @@ const axios_instance = argv => {
|
|||
argv.axios = axios.create({
|
||||
baseURL: argv['piston-url'],
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
}
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
});
|
||||
|
||||
return argv;
|
||||
|
@ -18,12 +18,11 @@ require('yargs')(process.argv.slice(2))
|
|||
alias: ['u'],
|
||||
default: 'http://127.0.0.1:2000',
|
||||
desc: 'Piston API URL',
|
||||
string: true
|
||||
string: true,
|
||||
})
|
||||
.middleware(axios_instance)
|
||||
.scriptName('piston')
|
||||
.commandDir('commands')
|
||||
.demandCommand()
|
||||
.help()
|
||||
.wrap(72)
|
||||
.argv;
|
||||
.wrap(72).argv;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue