-
-
Notifications
You must be signed in to change notification settings - Fork 30
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
Execute 1build from specified configuration file #192
Comments
Perhaps, passing file path may become tedious. |
Could you assign to me @gopinath-langote . I'd like to try implementing this feature. Can we scope to the command argument |
@TimDurward Sure. Please go ahead. I have updated the Acceptance Criteria for the issue. Let me know if need any clarification on this. About decision/tech decisions please feel free to ask here in the thread. Let me know the scope of the issue looks good to you. |
@gopinath-langote Your example list shows A couple design ideas
Me personally, I suggest we scope |
@TimDurward Thanks for the detailed analysis. I missed that part of the analysis. Yes. After considering all options. I agree to use About Example What do you think? |
@TimDurward This will increase the scope of this issue. We can split the issues to support |
@gopinath-langote I think we can scope to one issue. I currently have all commands, and custom commands working with the new Line 109 in 8fb9101
I'm not finished with the Pull Request yet, I still need to dig in to the tests (not my strongest part 😆 ), but what I would like is maybe a quick review to see if we're both on the same page, and maybe you can try it out locally. You can take a look at it here: |
Thanks for the PR. My suggestion was to not to setDir for the command vs pass the absolute path of 1build.yaml to read. This way - we only need to change reading part everything else remain same. And also gives flexibility of extending functionality. Or is this for setting directory as working directory? I am not quite sure whether we should set working directory to specified file path or not. Should we go ahead with using current execution directory and see later if we need to change the working directory? WDYT? |
@gopinath-langote I guess that was my natural assumption that a user would want to run their 1build commands in the same context of the configuration file. For example: However, the adverse is, a user has common commands that aren't specific to a project and can be run in multiple projects/directories, having a generic 1build configuration file could serve it's purpose, which in this case, having 1build change the directory (where the config file is located) to execute commands would not be ideal. I'm curious what your opinion is and what you'd learn towards; from reading your last message - your current suggestion is not to implement changing directories, as that would increase scope of work, but, for what it's worth that work is pretty much done. I can go either way. 😄 |
@TimDurward Got your point.
But I agree with you. Changing directory for the command will give clear idea for developer which context they are running command in. Please go ahead with |
Hi @gopinath-langote & @TimDurward , I'm currently doing some POC in our organization. One of the potential use case is, we put For our internal test environment
You got the idea. However, if Any suggestion? My feeling is, |
@dzhg I was thinking of the same and talking few potentials developer users, understood that - Changing working directory to the specified location of a file makes sense by default. We can improve this as a part new issue - where we can specify the working directory. By default working dir will be same as where the file exists. |
OK. Thanks @gopinath-langote . Sounds good. I could help to add the other option to disable working dir changing once this cheers. |
Description
Currently
1build
only allows executing commands from the current directory. Sometimes developers have to switch the directory to execute any command.Allowing the user to execute a command from specified will help to reduce the two steps.
Flag
Acceptance Criteria
-f
flag/option. As it doesn't make sense to delete the file using one build instead developer can delete it byrm
.-f
flag/option.Out of scope
1build.yaml
Example
The text was updated successfully, but these errors were encountered: