pulumi/sdk/go
bors[bot] 572912ff6f
Merge #11202 #11319
11202: [color] Use graphemes to measure strings. r=pgavlin a=pgavlin

The number of Unicode code points in a string is not the same as the
number of user-visible characters (graphemes). When measuring colorized
strings, we want the latter rather than the former. Notably, these
changes fix some issues where the interactive display cut off before the
right edge of the terminal.

11319: Add prelim interface contract for Capabilities API r=caseyyh a=caseyyh

# Description

Add request shapes for Capabilities API, which will moving forward help cement service/client contract in dynamically indicating which features are available in a given backend for the CLI to use.

Related: https://github.com/pulumi/pulumi-service/issues/10510

## Checklist

<!--- Please provide details if the checkbox below is to be left unchecked. -->
- [ ] I have added tests that prove my fix is effective or that my feature works
<!--- 
User-facing changes require a CHANGELOG entry.
-->
- [ ] I have run `make changelog` and committed the `changelog/pending/<file>` documenting my change
<!--
If the change(s) in this PR is a modification of an existing call to the Pulumi Service,
then the service should honor older versions of the CLI where this change would not exist.
You must then bump the API version in /pkg/backend/httpstate/client/api.go, as well as add
it to the service.
-->
- [ ] Yes, there are changes in this PR that warrants bumping the Pulumi Service API version
  <!-- `@Pulumi` employees: If yes, you must submit corresponding changes in the service repo. -->


Co-authored-by: Pat Gavlin <pat@pulumi.com>
Co-authored-by: Casey <casey@pulumi.com>
2022-11-10 18:25:04 +00:00
..
auto Introduce PULUMI_DEBUG_GRPC support 2022-11-08 14:01:15 -05:00
common Merge #11202 #11319 2022-11-10 18:25:04 +00:00
pulumi Merge remote-tracking branch 'origin/master' into same-id/master 2022-11-04 15:28:01 +00:00
pulumi-language-go Introduce PULUMI_DEBUG_GRPC support 2022-11-08 14:01:15 -05:00
Makefile ci: Enable testing of language version sets 2022-09-21 09:48:38 -07:00
README.md `pulumi update` => `pulumi up` (#2702) 2019-05-06 14:00:18 -07:00

README.md

Pulumi Golang SDK

This directory contains support for writing Pulumi programs in the Go language. There are two aspects to this:

  • pulumi/ contains the client language bindings Pulumi program's code directly against;
  • pulumi-language-go/ contains the language host plugin that the Pulumi engine uses to orchestrate updates.

To author a Pulumi program in Go, simply say so in your Pulumi.yaml

name: <my-project>
runtime: go

and ensure you have pulumi-language-go on your path (it is distributed in the Pulumi download automatically).

By default, the language plugin will use your project's name, <my-project>, as the executable that it loads. This too must be on your path for the language provider to load it when you run pulumi preview or pulumi up.