Skip to content

Commit

Permalink
style: touch up names
Browse files Browse the repository at this point in the history
  • Loading branch information
bschaatsbergen committed Mar 31, 2024
1 parent b129bea commit 4115e88
Show file tree
Hide file tree
Showing 10 changed files with 27 additions and 27 deletions.
4 changes: 2 additions & 2 deletions docs/functions/contains.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ description: |-

<!-- signature generated by tfplugindocs -->
```text
contains(input list of string, string string) bool
contains(list list of string, string string) bool
```

## Arguments

<!-- arguments generated by tfplugindocs -->
1. `input` (List of String) The list of strings to check
1. `list` (List of String) The list of strings to check
1. `string` (String) The string to check for

6 changes: 3 additions & 3 deletions docs/functions/false.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
page_title: "false function - terraform-provider-assert"
subcategory: ""
description: |-
Checks whether a value is false
Checks whether a boolean value is false
---

# function: false
Expand All @@ -16,11 +16,11 @@ description: |-

<!-- signature generated by tfplugindocs -->
```text
false(value bool) bool
false(bool bool) bool
```

## Arguments

<!-- arguments generated by tfplugindocs -->
1. `value` (Boolean) The value to check
1. `bool` (Boolean) The boolean value to check

6 changes: 3 additions & 3 deletions docs/functions/not_null.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
page_title: "not_null function - terraform-provider-assert"
subcategory: ""
description: |-
Checks whether a given object is not null
Checks whether a given argument is not null
---

# function: not_null
Expand All @@ -16,11 +16,11 @@ description: |-

<!-- signature generated by tfplugindocs -->
```text
not_null(object dynamic) bool
not_null(argument dynamic) bool
```

## Arguments

<!-- arguments generated by tfplugindocs -->
1. `object` (Dynamic, Nullable) The object to check
1. `argument` (Dynamic, Nullable) The argument to check

6 changes: 3 additions & 3 deletions docs/functions/null.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
page_title: "null function - terraform-provider-assert"
subcategory: ""
description: |-
Checks whether a given object is null
Checks whether a given argument is null
---

# function: null
Expand All @@ -16,11 +16,11 @@ description: |-

<!-- signature generated by tfplugindocs -->
```text
null(object dynamic) bool
null(argument dynamic) bool
```

## Arguments

<!-- arguments generated by tfplugindocs -->
1. `object` (Dynamic, Nullable) The object to check
1. `argument` (Dynamic, Nullable) The argument to check

6 changes: 3 additions & 3 deletions docs/functions/true.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
page_title: "true function - terraform-provider-assert"
subcategory: ""
description: |-
Checks whether a value is true
Checks whether a boolean value is true
---

# function: true
Expand All @@ -16,11 +16,11 @@ description: |-

<!-- signature generated by tfplugindocs -->
```text
true(value bool) bool
true(bool bool) bool
```

## Arguments

<!-- arguments generated by tfplugindocs -->
1. `value` (Boolean) The value to check
1. `bool` (Boolean) The boolean value to check

2 changes: 1 addition & 1 deletion internal/provider/contains_function.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func (r ContainsFunction) Definition(_ context.Context, _ function.DefinitionReq
AllowNullValue: false,
AllowUnknownValues: false,
Description: "The list of strings to check",
Name: "input",
Name: "list",
ElementType: tpftypes.StringType,
},
function.StringParameter{
Expand Down
6 changes: 3 additions & 3 deletions internal/provider/false_function.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ func (r FalseFunction) Metadata(_ context.Context, req function.MetadataRequest,

func (r FalseFunction) Definition(_ context.Context, _ function.DefinitionRequest, resp *function.DefinitionResponse) {
resp.Definition = function.Definition{
Summary: "Checks whether a value is false",
Summary: "Checks whether a boolean value is false",
Parameters: []function.Parameter{
function.BoolParameter{
AllowNullValue: false,
AllowUnknownValues: false,
Description: "The value to check",
Name: "value",
Description: "The boolean value to check",
Name: "bool",
},
},
Return: function.BoolReturn{},
Expand Down
6 changes: 3 additions & 3 deletions internal/provider/not_null_function.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ func (r NotNullFunction) Metadata(_ context.Context, req function.MetadataReques

func (r NotNullFunction) Definition(_ context.Context, _ function.DefinitionRequest, resp *function.DefinitionResponse) {
resp.Definition = function.Definition{
Summary: "Checks whether a given object is not null",
Summary: "Checks whether a given argument is not null",
Parameters: []function.Parameter{
function.DynamicParameter{
AllowNullValue: true,
AllowUnknownValues: true,
Description: "The object to check",
Name: "object",
Description: "The argument to check",
Name: "argument",
},
},
Return: function.BoolReturn{},
Expand Down
6 changes: 3 additions & 3 deletions internal/provider/null_function.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ func (r IsNullFunction) Metadata(_ context.Context, req function.MetadataRequest

func (r IsNullFunction) Definition(_ context.Context, _ function.DefinitionRequest, resp *function.DefinitionResponse) {
resp.Definition = function.Definition{
Summary: "Checks whether a given object is null",
Summary: "Checks whether a given argument is null",
Parameters: []function.Parameter{
function.DynamicParameter{
AllowNullValue: true,
AllowUnknownValues: true,
Description: "The object to check",
Name: "object",
Description: "The argument to check",
Name: "argument",
},
},
Return: function.BoolReturn{},
Expand Down
6 changes: 3 additions & 3 deletions internal/provider/true_function.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ func (r TrueFunction) Metadata(_ context.Context, req function.MetadataRequest,

func (r TrueFunction) Definition(_ context.Context, _ function.DefinitionRequest, resp *function.DefinitionResponse) {
resp.Definition = function.Definition{
Summary: "Checks whether a value is true",
Summary: "Checks whether a boolean value is true",
Parameters: []function.Parameter{
function.BoolParameter{
AllowNullValue: false,
AllowUnknownValues: false,
Description: "The value to check",
Name: "value",
Description: "The boolean value to check",
Name: "bool",
},
},
Return: function.BoolReturn{},
Expand Down

0 comments on commit 4115e88

Please sign in to comment.