Downloads:

758

Downloads of v 0.5.2:

182

Last Update:

07 Apr 2018

Package Maintainer(s):

Software Author(s):

  • Tom Hudson

Tags:

command-line json grep cross-platform foss

gron

This is not the latest version of gron available.

0.5.2 | Updated: 07 Apr 2018

Downloads:

758

Downloads of v 0.5.2:

182

Maintainer(s):

Software Author(s):

  • Tom Hudson

gron 0.5.2

This is not the latest version of gron available.

All Checks are Passing

2 Passing Test


Validation Testing Passed


Verification Testing Passed

Details

To install gron, run the following command from the command line or from PowerShell:

>

To upgrade gron, run the following command from the command line or from PowerShell:

>

To uninstall gron, run the following command from the command line or from PowerShell:

>

NOTE: This applies to both open source and commercial editions of Chocolatey.

1. Ensure you are set for organizational deployment

Please see the organizational deployment guide

  • Open Source or Commercial:
    • Proxy Repository - Create a proxy nuget repository on Nexus, Artifactory Pro, or a proxy Chocolatey repository on ProGet. Point your upstream to https://chocolatey.org/api/v2. Packages cache on first access automatically. Make sure your choco clients are using your proxy repository as a source and NOT the default community repository. See source command for more information.
    • You can also just download the package and push it to a repository Download

3. Enter your internal repository url

(this should look similar to https://chocolatey.org/api/v2)

4. Choose your deployment method:


choco upgrade gron -y --source="'STEP 3 URL'" [other options]

See options you can pass to upgrade.

See best practices for scripting.

Add this to a PowerShell script or use a Batch script with tools and in places where you are calling directly to Chocolatey. If you are integrating, keep in mind enhanced exit codes.

If you do use a PowerShell script, use the following to ensure bad exit codes are shown as failures:


choco upgrade gron -y --source="'STEP 3 URL'"
$exitCode = $LASTEXITCODE

Write-Verbose "Exit code was $exitCode"
$validExitCodes = @(0, 1605, 1614, 1641, 3010)
if ($validExitCodes -contains $exitCode) {
  Exit 0
}

Exit $exitCode

- name: Ensure gron installed
  win_chocolatey:
    name: gron
    state: present
    version: 0.5.2
    source: STEP 3 URL

See docs at https://docs.ansible.com/ansible/latest/modules/win_chocolatey_module.html.

Coming early 2020! Central Managment Reporting available now! More information...


chocolatey_package 'gron' do
  action    :install
  version  '0.5.2'
  source   'STEP 3 URL'
end

See docs at https://docs.chef.io/resource_chocolatey_package.html.


Chocolatey::Ensure-Package
(
    Name: gron,
    Version: 0.5.2,
    Source: STEP 3 URL
);

Requires Otter Chocolatey Extension. See docs at https://inedo.com/den/otter/chocolatey.


cChocoPackageInstaller gron
{
   Name     = 'gron'
   Ensure   = 'Present'
   Version  = '0.5.2'
   Source   = 'STEP 3 URL'
}

Requires cChoco DSC Resource. See docs at https://github.com/chocolatey/cChoco.


package { 'gron':
  provider => 'chocolatey',
  ensure   => '0.5.2',
  source   => 'STEP 3 URL',
}

Requires Puppet Chocolatey Provider module. See docs at https://forge.puppet.com/puppetlabs/chocolatey.


salt '*' chocolatey.install gron version="0.5.2" source="STEP 3 URL"

See docs at https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.chocolatey.html.

5. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

This package was approved by moderator gep13 on 16 Apr 2018.

Description

Make JSON greppable!

gron transforms JSON into discrete assignments to make it easier to grep for what you want and see the absolute 'path' to it.
It eases the exploration of APIs that return large blobs of JSON but have terrible documentation.

▶ gron "https://api.github.com/repos/tomnomnom/gron/commits?per_page=1" | fgrep "commit.author"
json[0].commit.author = {};
json[0].commit.author.date = "2016-07-02T10:51:21Z";
json[0].commit.author.email = "[email protected]";
json[0].commit.author.name = "Tom Hudson";

gron can work backwards too, enabling you to turn your filtered data back into JSON:

▶ gron "https://api.github.com/repos/tomnomnom/gron/commits?per_page=1" | fgrep "commit.author" | gron --ungron
[
  {
    "commit": {
      "author": {
        "date": "2016-07-02T10:51:21Z",
        "email": "[email protected]",
        "name": "Tom Hudson"
      }
    }
  }
]

> Disclaimer: the GitHub API has fantastic documentation, but it makes for a good example.


legal\LICENSE.txt
MIT License

Copyright (c) 2016 Tom Hudson

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
legal\VERIFICATION.txt
VERIFICATION

Verification is intended to assist the Chocolatey moderators and community
in verifying that this package's contents are trustworthy.

Package can be verified like this:

1. Go to

   x32: https://github.com/tomnomnom/gron/releases/download/v0.5.2/gron-windows-386-0.5.2.zip
   x64: https://github.com/tomnomnom/gron/releases/download/v0.5.2/gron-windows-amd64-0.5.2.zip

   to download the installer.

2. You can use one of the following methods to obtain the SHA256 checksum:
   - Use powershell function 'Get-FileHash'
   - Use Chocolatey utility 'checksum.exe'

   checksum32: A6E55BBAFDFE3F24602BD2FC895C471BD389B888005987C58D991D6D0D969A8F
   checksum64: 99C979AF14210B3343F54B2DCA09ABC44A95019BBC70AF17D7FDC025DF280BF8

Using AU:

   Get-RemoteChecksum https://github.com/tomnomnom/gron/releases/download/v0.5.2/gron-windows-386-0.5.2.zip  # 32-bit
   Get-RemoteChecksum https://github.com/tomnomnom/gron/releases/download/v0.5.2/gron-windows-amd64-0.5.2.zip  # 64-bit

File 'license.txt' is obtained from:
   https://raw.githubusercontent.com/tomnomnom/gron/v0.5.2/LICENSE
tools\chocolateyInstall.ps1
$ErrorActionPreference = 'Stop'; # stop on all errors

$packageName= 'gron'
$toolsDir   = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
$zip32 = 'gron-windows-386-0.5.2.zip'
$zip64 = 'gron-windows-amd64-0.5.2.zip'

$packageArgs = @{
  packageName    = $packageName
  FileFullPath   = Join-Path $toolsDir $zip32
  FileFullPath64 = Join-Path $toolsDir $zip64
  Destination    = $toolsDir
}

Get-ChocolateyUnZip @packageArgs
tools\gron-windows-386-0.5.2.zip
md5: 53B5857E2B7F74E7D621231BC3C4ACDF | sha1: 90430FD8796E6B42A57EA3E5E0B49EF3E460EB9A | sha256: A6E55BBAFDFE3F24602BD2FC895C471BD389B888005987C58D991D6D0D969A8F | sha512: 88CD8C6457B7795FEBAEB559BF76ABB049C882531478D072DE39F8D9599A9FA5AF8902DE2C6B3CDDD27F278E50D90691109845BA4F9E3BE65A673219C50FC65B
tools\gron-windows-amd64-0.5.2.zip
md5: 9B9ECD38027047E7D7DD656D8053D51C | sha1: EC43E6D7772670A10FC2A544CE3C4BC0C1E4C86E | sha256: 99C979AF14210B3343F54B2DCA09ABC44A95019BBC70AF17D7FDC025DF280BF8 | sha512: 260BE383D070D304BF4054ED6618EB5C70628B23D73839A7F90DB636FBC56E35B246152EC97CD0F639270940AFF83B9B9130EA81442DF040BC66656E250C2649

Log in or click on link to see number of positives.

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Version Downloads Last Updated Status
gron 0.5.2 182 Saturday, April 7, 2018 Approved
gron 0.5.1 179 Tuesday, April 3, 2018 Approved

This package has no dependencies.

Discussion for the gron Package

Ground Rules:

  • This discussion is only about gron and the gron package. If you have feedback for Chocolatey, please contact the Google Group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or gron, or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.
comments powered by Disqus