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

Ability to pass additional args to comand #261

Closed
nixel2007 opened this issue Dec 16, 2015 · 8 comments

Comments

@nixel2007
Copy link

commented Dec 16, 2015

hi there!

I think that your package will be more cool, if it will have an ability to set and pass to build-system some args, like "python.exe my_scrypt.py arg1 arg2".
Can you add some fillable form like the one in script package (press ctrl+shift+alt+O to open it)?

It will be really usefull!

And thank you for you work, build is really good package.

@noseglid

This comment has been minimized.

Copy link
Owner

commented Dec 16, 2015

You could create a custom build configuration. Does that suit your needs?

@nixel2007

This comment has been minimized.

Copy link
Author

commented Dec 16, 2015

Technically - yes. But then if you need to edit this args you must edit that .atom-build.json. And of course it requires to create of a file itself, which is inconvenient.
I'm making a simple custom build provider (you can find it here if you interested).
I think I could do some magic with setting args in some custom window, saving args in my package in variable and pass it dynamically... but (imho) it is a frequently used functionality, and it makes sense to add it into the main build package

@nixel2007 nixel2007 changed the title Ability to pass adition args to comand Ability to pass additional args to comand Dec 16, 2015
@noseglid

This comment has been minimized.

Copy link
Owner

commented Dec 19, 2015

I don't think this fits very well with the general setup. None of the existing build providers have had a need for this.

You can always add configurations and/or other ways of setting additional arguments in your build provider.

If more providers require this, I'm open to discussing it again. But for now I will close this.

@noseglid noseglid closed this Dec 19, 2015
@capfredf

This comment has been minimized.

Copy link

commented May 20, 2016

hi, @noseglid. Thanks for your work. As a newcomer to atom, I think additional arguments can be very handy. For instance, when developing Elixir application, I am used to use mix test --only line:$line_number to run the closet test. It is quite helpful especially when I want to focus on one test. If additional arguments is supported, I can pass the current line number under cursor or anything I need directly to build

@oli-obk

This comment has been minimized.

Copy link
Contributor

commented May 20, 2016

@codetender would an additional {FILE_LINE} replacement (see https://github.com/noseglid/atom-build#replacements for other replacements) help you? Then you could write a build provider that takes the current line and passes it directly to the call args. So you'd go on the line you want to check and press build, and it just checks that line.

@capfredf

This comment has been minimized.

Copy link

commented May 21, 2016

@oli-obk Thanks for your reply. In this case, yes. But If there is a more generalized solution, it would be very convenient :)

@jcrben

This comment has been minimized.

Copy link

commented Oct 24, 2016

If I'm building a command-line tool, it would be elegant for me to do a build and pass arguments at the same time - is that possible? I'm talking about something like https://github.com/bilalba/InputArgs for Sublime

@black-snow

This comment has been minimized.

Copy link

commented Nov 11, 2016

Really? No (easy) way to pass args to the targets?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
6 participants
You can’t perform that action at this time.