diff --git a/.travis.yml b/.travis.yml
index 95b681e..80bf53e 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -3,7 +3,6 @@ language: node_js
notifications:
email: false
node_js:
- - 'node'
- '8'
branches:
only:
diff --git a/README.md b/README.md
index 1fb8cb1..cf06c5c 100644
--- a/README.md
+++ b/README.md
@@ -2,7 +2,7 @@
> The missing package manager for Android
-
+
[](https://travis-ci.org/cesarferreira/drone)
diff --git a/cli.js b/cli.js
index 50f0b97..cbfe4ff 100755
--- a/cli.js
+++ b/cli.js
@@ -14,6 +14,7 @@ Usage
$ drone
$ drone install # Downloads the packages
+ $ drone update # Get the latest packages
$ drone add # Adds a dependency to a module
$ drone info # Retrieves the info for this package
$ drone open # Opens the library's homepage
@@ -32,12 +33,7 @@ Usage
$ drone test square/picasso # Tests the library by fetching its version
`,
{
- alias: {
- // h: 'homepage', // Optional
- // d: 'description', // Optional
- // s: 'server', // Optional
- // d: 'dependency'
- }
+ alias: {}
});
if (cli.input.length > 0 ) {
diff --git a/extras/ss_usage.png b/extras/ss_usage.png
new file mode 100644
index 0000000..2077346
Binary files /dev/null and b/extras/ss_usage.png differ
diff --git a/extras/ss_usage_cropped.png b/extras/ss_usage_cropped.png
new file mode 100644
index 0000000..1e9d203
Binary files /dev/null and b/extras/ss_usage_cropped.png differ
diff --git a/lib/tasks/add.js b/lib/tasks/add.js
index cddddd3..e7bc17e 100644
--- a/lib/tasks/add.js
+++ b/lib/tasks/add.js
@@ -12,9 +12,13 @@ const GradleUtils = require('../utils/gradle_utils');
// Main code //
const self = module.exports = {
init: (input) => {
- // log(input.length)
- // TODOOOOOOOOOOOOOOOOOOOOOOO so tem 1 em lenght? nao pode continuar
- const module = 'app'; // TODO MAKE ME A REAL BOY
+ if (input.length == 1) {
+ Log.titleError(`You need to specify the module`);
+ return;
+ }
+
+ const module = input[1];
+
QuickSearch.search(input[0])
.then(result => {
if (result.rating === 1) {