Skip to content

Commit

Permalink
Merge branch 'main' into NR-68284/install-script-proxy-support
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien4218 authored Feb 24, 2023
2 parents 766fef7 + 4948ee5 commit dc948af
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs/cli/newrelic_utils.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,5 @@ Various utility methods
* [newrelic utils jq](newrelic_utils_jq.md) - Parse json strings
* [newrelic utils semver](newrelic_utils_semver.md) - Work with semantic version strings
* [newrelic utils terraform](newrelic_utils_terraform.md) - Tools for working with Terraform
* [newrelic utils yq](newrelic_utils_yq.md) - Parse yaml strings

42 changes: 42 additions & 0 deletions docs/cli/newrelic_utils_yq.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
## newrelic utils yq

Parse yaml strings

### Synopsis

Parse yaml strings

The yq subcommand makes use of gojq (https://github.com/itchyny/gojq) to provide
yaml parsing capabilities.


```
newrelic utils yq [flags]
```

### Examples

```
echo '"foo": 128' | newrelic utils yq '.foo'
```

### Options

```
-h, --help help for yq
```

### Options inherited from parent commands

```
-a, --accountId int the account ID to use. Can be overridden by setting NEW_RELIC_ACCOUNT_ID
--debug debug level logging
--format string output text format [JSON, Text, YAML] (default "JSON")
--plain output compact text
--profile string the authentication profile to use
--trace trace level logging
```

### SEE ALSO

* [newrelic utils](newrelic_utils.md) - Various utility methods
4 changes: 2 additions & 2 deletions internal/utils/command_yq.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ var (

var cmdYq = &cobra.Command{
Use: "yq",
Short: "Parse json strings",
Long: `Parse json strings
Short: "Parse yaml strings",
Long: `Parse yaml strings
The yq subcommand makes use of gojq (https://github.com/itchyny/gojq) to provide
yaml parsing capabilities.
Expand Down

0 comments on commit dc948af

Please sign in to comment.