kellyjonbrazil / jc

CLI tool and python library that converts the output of popular command-line tools, file-types, and common strings to JSON, YAML, or Dictionaries. This allows piping of output to tools like jq and simplifying automation scripts.
MIT License
7.93k stars 209 forks source link

New Parser: `net localgroup` and `net user` on windows #600

Open joehacksalot opened 2 months ago

joehacksalot commented 2 months ago

I found myself needing to parse this information and thought it was better for the community if it were a jc parser than a one off in my application.

This issue is to introduce new parsers to handle parsing the following commands:

net-localgroup parser: net localgroup net localgroup /domain net localgroup Administrators net localgroup Administrators /domain

net-user parser: net user net user /domain net user User1 net user User1 /domain

route-print parser: route print

If interested, I will post the PR after I'm through with testing.

kellyjonbrazil commented 2 months ago

Excellent! Yes, pleas submit a PR when you get a chance.