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

A way to retrieve a branch of the current environment? #97

Closed
hanoii opened this issue Jun 8, 2020 · 2 comments
Closed

A way to retrieve a branch of the current environment? #97

hanoii opened this issue Jun 8, 2020 · 2 comments

Comments

@hanoii
Copy link

hanoii commented Jun 8, 2020

I see that environment:info can help but is there a way for me to just get the deployed tag/branch of a certain environment? I want to use this on a script.

@hanoii
Copy link
Author

hanoii commented Jun 8, 2020

I came up with

acquiacli environment:info $UUID dev | sed -En "/Branch/,/^\| (.*) \|\$/ N; N; s/^\| Branch.*\n.*\n\| ([^ ]*).*/\1/p"

but it's a rather poor solution :)

@typhonius
Copy link
Owner

I think we could very easily add another command to the code namespace. It sounds like this would also benefit from #96 with output in a non-tabular format - is that correct?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants