Skip to content

Commit

Permalink
Merge pull request #114 from AbbyDeng/master
Browse files Browse the repository at this point in the history
update `go get` to `go install` command
  • Loading branch information
crw authored Dec 4, 2023
2 parents 5a6f8d1 + 532f00b commit a34142e
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ to be broadly compatible with modules written for many different versions of
Terraform.

```
$ go get github.com/hashicorp/terraform-config-inspect
$ go install github.com/hashicorp/terraform-config-inspect@latest
```

```go
Expand Down Expand Up @@ -39,28 +39,34 @@ information in either a Markdown-like format or in JSON format.
```sh
$ terraform-config-inspect path/to/module
```

```markdown
# Module `path/to/module`

Provider Requirements:
* **null:** (any version)

- **null:** (any version)

## Input Variables
* `a` (default `"a default"`)
* `b` (required): The b variable

- `a` (default `"a default"`)
- `b` (required): The b variable

## Output Values
* `a`
* `b`: I am B

- `a`
- `b`: I am B

## Managed Resources
* `null_resource.a` from `null`
* `null_resource.b` from `null`

- `null_resource.a` from `null`
- `null_resource.b` from `null`
```

```sh
$ terraform-config-inspect --json path/to/module
```

```json
{
"path": "path/to/module",
Expand Down

0 comments on commit a34142e

Please sign in to comment.