You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: index.js
+37-6Lines changed: 37 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,18 @@
1
1
#! /usr/bin/env node
2
+
varcolors=require('colors');
3
+
2
4
varargv=require('yargs')
3
5
.option('resolution',{
4
6
alias: 'r',
5
7
describe: 'Controls the dependency resolution strategy.\nSupported options:\n* release: selects the latest release\n* milestone: select the latest version being either a milestone or a release (default)\n* integration: selects the latest revision of the dependency module (such as SNAPSHOT)',
6
8
type: 'string',
7
9
nargs: 1,
8
10
demand: false
9
-
}).argv
11
+
})
12
+
.option('no-color',{
13
+
describe: 'Disables color output'
14
+
})
15
+
.argv
10
16
11
17
constprompts=require('prompts');
12
18
constfs=require('fs');
@@ -26,6 +32,11 @@ try {
26
32
}catch(err){
27
33
}
28
34
35
+
if(!fs.existsSync('build.gradle')){
36
+
console.log('build.gradle file was not found.'.red)
0 commit comments