pulumi/pkg/backend/display/internal/terminal
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
..
info.go [display] Hide the cursor in interactive mode. 2022-12-20 10:56:59 -08:00
mock.go [display] Hide the cursor in interactive mode. 2022-12-20 10:56:59 -08:00
term.go [cli] Add an "open in browser" keybinding 2023-03-09 15:52:13 -08:00
term_test.go [cli] Add autoscrolling and support page-{down,up} 2023-03-07 12:16:02 -08:00