jeremieca / pulsion

Pulsion centralize all commands of your project in one unique place with no pain.
5 stars 2 forks source link

Verbosity is not shared with imported project #4

Open asiegf opened 8 years ago

asiegf commented 8 years ago

I get the following results:

> pulsion hello
foo verbosity 1
bar verbosity 1
> pulsion hello -v 2
foo verbosity 1
foo verbosity 2
bar verbosity 1

For: pulsion/config_pulsion

#!/bin/bash
import bar './bar/'
function command_hello {
    function help {
               echo -e "Example of pulsion command"
    }
    function process {
        p 1 'foo verbosity 1'
        p 2 'foo verbosity 2'
        pulsion bar::hello
    }
}

bar/pulsion/config_pulsion

#!/bin/bash
function command_hello {
    function help {
        echo -e "Example of pulsion command"
    }
    function process {
        p 1 "bar verbosity 1"
        p 2 "bar verbosity 2"
    }
}

I would have expected to see "bar verbosity 2". Is it intended this way? Thanks for this tool, keep up the good work.

jeremieca commented 8 years ago

Thanks, I look at this bug soon.