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

build and run commands instead of command #40

Open
KCErb opened this issue May 24, 2019 · 2 comments
Open

build and run commands instead of command #40

KCErb opened this issue May 24, 2019 · 2 comments

Comments

@KCErb
Copy link

KCErb commented May 24, 2019

Are you interested in allowing the user to pass in an array of commands instead of a single command for build and run?

There's a relative of this tool in Lucky that allows that and it's a must-have feature for my use case.

Related: luckyframework/lucky#782

@samueleaton
Copy link
Owner

Hey @KCErb could you give an example?

@KCErb
Copy link
Author

KCErb commented Jun 5, 2019

require "sentry"

sentry = Sentry::ProcessRunner.new(
    process_name: "My cool app",
    build_commands: ["crystal build ./src/my_app.cr", "do_something_else"]
    run_command: ["./script/prep_app", "./my_app"],
    files: ["./src/**/*.cr", "./src/**/*.ecr"]
)

sentry.run

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

2 participants