pulumi/pkg
Pat Gavlin 1e45aa6ddc [cli] Reflow the interactive display as needed.
The interactive display currently has the unfortunate property that as
the width of the tree table grows, more and more content is lost off of
the right side of the screen. These changes add support for reflowing
the contents of the table as needed. Content is reflowed when the width
of the first N-1 columns of the N-column wide table exceed the width of
the terminal. We do not include the last column in the measurement
because the width of its contents vary wildly, whereas the width of the
other columns is essentially constant (or only increases).

When the terminal is wide enough, each node is layed out into a single
row of the form:

    op | indent + type | name | status | info

If the terminal is too narrow for the content of the first four columns,
each node is layed out into multiple rows:

    op | indent + type | status
       | name
       | info

Concrete examples are given below.

Wide display
------------

     Type                      Name                  Status            Info
     pulumi:pulumi:Stack       aws-ts-webserver-dev
     ├─ aws:ec2:SecurityGroup  web-secgrp
 +-  └─ aws:ec2:Instance       web-server-www        replaced (0.01s)  [diff: ~userData]

Outputs:
  ~ publicHostName: "ec2-34-211-56-110.us-west-2.compute.amazonaws.com" => undefined
  ~ publicIp      : "34.211.56.110" => undefined

Resources:
    +-1 replaced
    2 unchanged

Duration: 12s

Narrow display
--------------

     Type                      Status
     pulumi:pulumi:Stack
     aws-ts-webserver-dev
     ├─ aws:ec2:SecurityGroup
     │  web-secgrp
 +-  └─ aws:ec2:Instance       replaced (0.01s)
        web-server-www
        [diff: ~userData]

Outputs:
  ~ publicHostName: "ec2-34-211-56-110.us-west-2.compute.amazonaws.com" => undefined
  ~ publicIp      : "34.211.56.110" => undefined

Resources:
    +-1 replaced
    2 unchanged

Duration: 12s
2023-03-15 09:42:47 -07:00
..
authhelpers make linter happy 2023-02-08 10:30:10 -08:00
backend [cli] Reflow the interactive display as needed. 2023-03-15 09:42:47 -07:00
cmd/pulumi filestate: Plumb context through constructor 2023-03-13 13:24:32 -07:00
codegen all: Don't use cmdutil.Diag in tests 2023-03-13 12:54:04 -07:00
engine all: Drop //nolint:goconst 2023-03-09 11:15:21 -08:00
graph all: Assert => Assertf 2023-03-03 14:37:43 -08:00
importer all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
operations all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
resource all: Don't use cmdutil.Diag in tests 2023-03-13 12:54:04 -07:00
secrets all: Assert => Assertf 2023-03-03 14:37:43 -08:00
testing/integration chore(all): Log to iotest.LogWriter from tests 2023-03-07 11:27:47 -08:00
util all: Assert => Assertf 2023-03-03 14:37:43 -08:00
version duplicate version to ensure linking is properly handled 2020-03-19 12:49:34 -07:00
README.md export codegen tests for internal use (#8928) 2022-02-07 12:10:04 +01:00
go.mod pkg: Dedupe "open in browser" library 2023-03-10 10:57:33 -07:00
go.sum pkg: Dedupe "open in browser" library 2023-03-10 10:57:33 -07:00

README.md

pulumi/pkg

While pulumi/sdk maintains strict backwards compatibility guarantees, code under pkg/ is handled more informally: while breaking changes are still discouraged they may happen when they make sense.