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

Wrapper of cd/chdir ? #79

Closed
hyorigo opened this issue Apr 4, 2021 · 2 comments
Closed

Wrapper of cd/chdir ? #79

hyorigo opened this issue Apr 4, 2021 · 2 comments

Comments

@hyorigo
Copy link

hyorigo commented Apr 4, 2021

cd is quite common in Shell script. Do you have wrapper/method for this command?

@hikhvar
Copy link
Contributor

hikhvar commented Sep 28, 2021

The golang buildin os.Chdir("/Users") should to the trick.

@bitfield
Copy link
Owner

Yes, os.Chdir is exactly the right thing here. script is aimed at making it easy to write pipelines, and cd isn't really part of a pipeline. Thanks for both the question, and the answer!

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

3 participants