pulumi/pkg/backend/filestate
Pat Gavlin 2bad0a85e8 [cli] Add an "open in browser" keybinding
Add support for using Ctrl+O to open the current update in the browser
for backends that support permalinks.

The keybinding is advertised in the interactive display as part of the
message that displays the permalink:

```
Previewing update (dev)

View in Browser (Ctrl+O): https://<some-url>

     Type                          Name      Plan
 +   pulumi:pulumi:Stack           vpc-dev   create
 +   ├─ aws:ec2:Vpc                vpc       create
 +   ├─ aws:ec2:SecurityGroup      secgroup  create
 +   ├─ aws:ec2:SecurityGroupRule  rule-2    create
 +   ├─ aws:ec2:SecurityGroupRule  rule-0    create
 +   ├─ aws:ec2:SecurityGroupRule  rule-1    create
 +   └─ aws:ec2:SecurityGroupRule  rule-3    create
```

In order to maintain backwards compatibility with older versions of the
Automation API, the message is not changed for non-interactive
scenarios.
2023-03-09 15:52:13 -08:00
..
backend.go [cli] Add an "open in browser" keybinding 2023-03-09 15:52:13 -08:00
backend_test.go Set the current project as ambient context on backends. 2023-03-03 20:32:42 +00:00
bucket.go Revert "Support projects in the file state backend" 2023-02-02 15:26:26 -08:00
bucket_test.go Set the current project as ambient context on backends. 2023-03-03 20:32:42 +00:00
doc.go Document Go packages (#6009) 2021-01-11 11:07:59 -07:00
lock.go pkg/backend: Prefer contract.Assertf over Assert 2023-02-21 15:13:16 -08:00
snapshot.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
stack.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
state.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00