Skip to content

Commit

Permalink
module can be added on AddTask
Browse files Browse the repository at this point in the history
  • Loading branch information
cesarferreira committed Aug 20, 2017
1 parent 58bf68e commit 4c47532
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 11 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ language: node_js
notifications:
email: false
node_js:
- 'node'
- '8'
branches:
only:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
> The missing package manager for Android
<p align="center">
<img src="extras/screenshot.png" width="100%" />
<img src="extras/ss_usage_cropped.png" width="100%" />
</p>

[![Build Status](https://travis-ci.org/cesarferreira/drone.svg?branch=master)](https://travis-ci.org/cesarferreira/drone)
Expand Down
8 changes: 2 additions & 6 deletions cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Usage
$ drone <command> <params>
$ drone install # Downloads the packages
$ drone update # Get the latest packages
$ drone add <creator/library> <module> # Adds a dependency to a module
$ drone info <creator/library> # Retrieves the info for this package
$ drone open <creator/library> # Opens the library's homepage
Expand All @@ -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 ) {
Expand Down
Binary file added extras/ss_usage.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added extras/ss_usage_cropped.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 7 additions & 3 deletions lib/tasks/add.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 4c47532

Please sign in to comment.