Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Commit e133452

Browse files
mitchellhjen20
authored andcommitted
command/state: pattern => address
1 parent b10f224 commit e133452

4 files changed

Lines changed: 14 additions & 14 deletions

File tree

command/state_list.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,19 +54,19 @@ func (c *StateListCommand) Run(args []string) int {
5454

5555
func (c *StateListCommand) Help() string {
5656
helpText := `
57-
Usage: terraform state list [options] [pattern...]
57+
Usage: terraform state list [options] [address...]
5858
5959
List resources in the Terraform state.
6060
61-
This command lists resources in the Terraform state. The pattern argument
62-
can be used to filter the resources by resource or module. If no pattern
61+
This command lists resources in the Terraform state. The address argument
62+
can be used to filter the resources by resource or module. If no address
6363
is given, all resources are listed.
6464
65-
The pattern argument is meant to provide very simple filtering. For
65+
The address argument is meant to provide very simple filtering. For
6666
advanced filtering, please use tools such as "grep". The output of this
6767
command is designed to be friendly for this usage.
6868
69-
The pattern argument accepts any resource targeting syntax. Please
69+
The address argument accepts any resource targeting syntax. Please
7070
refer to the documentation on resource targeting syntax for more
7171
information.
7272

command/state_show.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,12 @@ func (c *StateShowCommand) Run(args []string) int {
7777

7878
func (c *StateShowCommand) Help() string {
7979
helpText := `
80-
Usage: terraform state show [options] PATTERN
80+
Usage: terraform state show [options] ADDRESS
8181
8282
Shows the attributes of a resource in the Terraform state.
8383
8484
This command shows the attributes of a single resource in the Terraform
85-
state. The pattern argument must be used to specify a single resource.
85+
state. The address argument must be used to specify a single resource.
8686
You can view the list of available resources with "terraform state list".
8787
8888
Options:

website/source/docs/commands/state/list.html.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,18 @@ The `terraform state list` command is used to list resources within a
1313

1414
## Usage
1515

16-
Usage: `terraform state list [options] [pattern...]`
16+
Usage: `terraform state list [options] [address...]`
1717

1818
The command will list all resources in the state file matching the given
19-
patterns (if any). If no patterns are given, all resources are listed.
19+
addresses (if any). If no addresses are given, all resources are listed.
2020

2121
The resources listed are sorted according to module depth order followed
2222
by alphabetical. This means that resources that are in your immediate
2323
configuration are listed first, and resources that are more deeply nested
2424
within modules are listed last.
2525

2626
For complex infrastructures, the state can contain thousands of resources.
27-
To filter these, provide one or more patterns to the command. Patterns are
27+
To filter these, provide one or more addresses to the command. Addresses are
2828
in [resource addressing format](/docs/commands/state/addressing.html).
2929

3030
The command-line flags are all optional. The list of available flags are:

website/source/docs/commands/state/show.html.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,17 @@ single resource in the
1414

1515
## Usage
1616

17-
Usage: `terraform state show [options] PATTERN`
17+
Usage: `terraform state show [options] ADDRESS`
1818

1919
The command will show the attributes of a single resource in the
20-
state file that matches the given pattern.
20+
state file that matches the given address.
2121

2222
The attributes are listed in alphabetical order (with the except of "id"
2323
which is always at the top). They are outputted in a way that is easy
2424
to parse on the command-line.
2525

26-
This command requires a pattern that points to a single resource in the
27-
state. Patterns are
26+
This command requires a address that points to a single resource in the
27+
state. Addresses are
2828
in [resource addressing format](/docs/commands/state/addressing.html).
2929

3030
The command-line flags are all optional. The list of available flags are:

0 commit comments

Comments
 (0)