tfpluginsdkupgrade

command module
v0.0.0-...-04969cc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 24, 2020 License: MPL-2.0 Imports: 15 Imported by: 0

README

tfpluginsdkupgrade

A proof of concept Terraform Plugin SDK upgrade tool for Terraform Provider code.

Install

Local Install

To install into your $GOBIN directory (e.g. $GOPATH/bin):

$ go get github.com/bflad/tfpluginsdkupgrade

Usage

Additional information about usage and configuration options can be found by passing the help argument:

$ tfpluginsdkupgrade help
Local Usage

To report issues, change into the directory of the Terraform Provider code and run:

$ tfpluginsdkupgrade ./...

To automatically fix some issues, change into the directory of the Terraform Provider code and run:

$ tfpluginsdkupgrade -fix ./...

Development and Testing

This project is built on the go/analysis framework and uses Go Modules for dependency management.

Helpful tooling for development:

  • astdump: a tool for displaying the AST form of Go file
Updating Dependencies
$ go get URL
$ go mod tidy
$ go mod vendor
Unit Testing
$ go test ./...
Local Install Testing
$ go install .

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL