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

Split the code into a library and binary to enable toolbx integration #10

Open
travier opened this issue Aug 8, 2022 · 3 comments
Open

Comments

@travier
Copy link
Contributor

travier commented Aug 8, 2022

One option to add this directly into toolbx upstream is to split the logic into a library that is pulled by toolbx and kept here for this binary.

@1player
Copy link
Owner

1player commented Aug 9, 2022

Where would this "split" be? I reckon you'd want the whole of runCommandSync into the library, is that correct?

exitCode, err := runCommandSync(command, allocatePty)

@travier
Copy link
Contributor Author

travier commented Aug 9, 2022

I'm not really sure. We might need to ask toolbx maintainers if and how they want to do it.

1player added a commit that referenced this issue Oct 12, 2022
Also, refactor the environment variable logic to keep the core function
`runCommandSync` as freestanding as possible, in preparation for #10
@1player
Copy link
Owner

1player commented Apr 26, 2023

Are the toolbx maintainers still interested in integrating this?

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