lab icon indicating copy to clipboard operation
lab copied to clipboard

Workflow for environments

Open simonrw opened this issue 4 years ago • 2 comments

Is there any interest for a workflow for viewing environments, particularly which commits are on which environments? At $WORK we have multiple dev environments, one staging and one prod and it's quite handy to get an overview in the CLI.

I have implemented something myself for my own purposes, shown in the image below. The details have been anonymised, but in the following image, the words have the following meanings:

  • the first purple word is the environment name
  • the yellow word is the branch
  • the blue word is the deploy trigger user

Is there interest in integrating something like this into the lab tool? My tool is written in Rust, but the needed requests are straightforward.

Screenshot 2021-06-03 at 21 22 34

simonrw avatar Jun 03 '21 20:06 simonrw

While I don't know if I'd personally make use of it I can see it being very handy for people with your use case :) OOC how do you envision this being called from the lab command line?

prarit avatar Jun 07 '21 18:06 prarit

I was thinking something like lab env list which would present a summary. There may be flags to hide or show information. Perhaps something like lab env history <environment> or ... show <environment> to show all of the deploys (mimicking the gitlab interface). What do you think?

simonrw avatar Jun 12 '21 14:06 simonrw