Skip to content

Commit 243d6dc

Browse files
committed
Allow specifying --auto flag to run clean-project-auto
Closes pmadruga#45
1 parent 91182e1 commit 243d6dc

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

source/index.js

+9
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,17 @@
22
const options = require('./internals/options');
33
const { executeTask } = require('./internals/executor');
44
const { tasks } = require('./internals/tasks');
5+
const plugin = require("./plugin");
6+
7+
const autoClean = plugin.find(p => (p.name === 'clean-project-auto'));
8+
const args = process.argv.slice(2);
59

610
async function main() {
11+
if (args.includes('--auto')) {
12+
autoClean.func();
13+
return;
14+
}
15+
716
await options.askiOS();
817
await options.askiOSPods();
918
await options.askSystemiOSPodsCache();

0 commit comments

Comments
 (0)