Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simpler way to run evaluation from command line #1

Open
h0tk3y opened this issue Sep 17, 2020 · 1 comment
Open

Simpler way to run evaluation from command line #1

h0tk3y opened this issue Sep 17, 2020 · 1 comment

Comments

@h0tk3y
Copy link
Owner

h0tk3y commented Sep 17, 2020

Running the eval task within a single given subproject and passing it --command='...' may be tedious.
We could find a simpler way to pass an expression in the command line.

@h0tk3y
Copy link
Owner Author

h0tk3y commented Sep 17, 2020

One way is to create a shell script or a function that does that.

For example, in the fish shell:

function geval
    if test (count $argv) -lt 2 
        ./gradlew eval --command="$argv[1]"
    else if [ $argv[1] = ":" ]
        ./gradlew :eval --command="$argv[2]"
    else 
        ./gradlew "$argv[1]":eval --command="$argv[2]"
    end
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant