dnx icon indicating copy to clipboard operation
dnx copied to clipboard

Support running global dnx commands

Open mvalipour opened this issue 11 years ago • 0 comments

The most important use-case I found where I needed to run dnx commands from the root of the solution is to run test command on all of my test projects under test directory.

For example on a project with the following structure:

my-solution/
    src/
    test/
        test-proj1/
            project.json -- that defines test command
        test-proj2/
            project.json -- that defines test command

When running:

cd ./my-solution
dnx . test

All tests get executed:

Discovered:  test-proj1
Starting:    test-proj1
...
Finished:    test-proj1

Discovered:  test-proj2
Starting:    test-proj2
...
Finished:    test-proj2

One could think of even more use-cases for this. For example dnx . clean

Possible solutions

One possible solution is to support glob-like patterns for the --appbase. so we could say:

dnx ./test/* test

mvalipour avatar Jun 28 '15 11:06 mvalipour