justjanne / powerline-go

A beautiful and useful low-latency prompt for your shell, written in go
GNU General Public License v3.0
2.73k stars 268 forks source link

[Feature] Support for displaying Pulumi stack #355

Open scottslowe opened 2 years ago

scottslowe commented 2 years ago

Is your feature request related to a problem? Please describe. I use Pulumi for infrastructure-as-code use cases. Pulumi has the concept of multiple stacks (think of them as conceptually similar to Terraform workspaces). Aside from running pulumi stack ls, there's no easy/straightforward way to tell which stack is active.

Describe the solution you'd like It would be ideal to have powerline-go display the currently-active Pulumi stack when in a directory where a Pulumi project exists. This would be similar to the way that powerline-go can display the active Terraform workspace.

Describe alternatives you've considered I use powerline-go on all the systems where I code in/use Pulumi. I don't think there are any other alternatives out there to display the currently-selected Pulumi stack in the shell prompt (not that I've found, anyway).

Additional context N/A

scottslowe commented 2 years ago

@justjanne I have a draft implementation that I can submit as a WIP PR, if you're interested.