mirror of
https://github.com/cypress-io/cypress.git
synced 2026-01-31 20:09:01 -06:00
* add --no-exit, cache commands * Manage -> Manages * fix run, run spec * remove comments
29 lines
486 B
JavaScript
29 lines
486 B
JavaScript
const state = require('./state')
|
|
const logger = require('../logger')
|
|
const fs = require('../fs')
|
|
const util = require('../util')
|
|
|
|
const path = () => {
|
|
logger.log(state.getCacheDir())
|
|
return undefined
|
|
}
|
|
|
|
const clear = () => {
|
|
return fs.removeAsync(state.getCacheDir())
|
|
}
|
|
|
|
const list = () => {
|
|
return fs
|
|
.readdirAsync(state.getCacheDir())
|
|
.filter(util.isSemver)
|
|
.then((versions) => {
|
|
logger.log(versions.join(', '))
|
|
})
|
|
}
|
|
|
|
module.exports = {
|
|
path,
|
|
clear,
|
|
list,
|
|
}
|