Skip to content

Conversation

eddami
Copy link
Contributor

@eddami eddami commented Dec 20, 2021

See #45

PR checklist

  • String input
  • File input
  • Process input line by line
  • Ignore input empty lines flag
  • Ignore unmatched lines flag
  • Support Windows PowerShell 5.1
  • Support PowerShell Core for Windows, Linux, and MacOS
  • JSON output with optional indent option
  • CSV output with optional delimiter option
  • Formatted table as default output
  • PowerShell help file
  • Unit tests
  • Build/publish scripts

Current Syntax

String input:

grok -Input -Filter [-OutputFormat] [-IgnoreEmptyLines] [-IgnoreUnmatched] [-CsvDelimiter] [-IndentJson]
grok -i -f [-o] [-e] [-u] [-d] [-j]

File input:

grok -Path -Filter [-OutputFormat] [-IgnoreEmptyLines] [-IgnoreUnmatched] [-CsvDelimiter] [-IndentJson]
grok -p -f [-o] [-e] [-u] [-d] [-j]

Get Version:

grok -Version
grok -v

-OutputFormat accepts csv or json. Formatted table output if not provided.

Run

Build Grok.Net.PowerShell project.
Import Grok module:

cd ./bin/(Debug|Release)/netstandard2.0
import-module ./Grok-Test.psd1
help grok

or alternatively install already published test module:

Install-Module -Name Grok-Test

Copy link
Owner

@Marusyk Marusyk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is amazing work. Thank you

@Marusyk
Copy link
Owner

Marusyk commented Dec 21, 2021

Would you be interested to add build/publish scripts in a separate PR?

@eddami
Copy link
Contributor Author

eddami commented Dec 22, 2021

Sure.

Copy link
Owner

@Marusyk Marusyk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you very much for your contribution

@Marusyk Marusyk merged commit cedc088 into Marusyk:main Dec 22, 2021
@Marusyk Marusyk linked an issue Jan 11, 2022 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add powershell cmdlets
2 participants