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.92k stars 210 forks source link

Feat: Introduce net-localgroup net-user and route-print parsers #602

Open joehacksalot opened 1 month ago

joehacksalot commented 1 month ago

This PR introduces a new parsers for net-localgroup, net-user and route-print[1] windows commands.

Tested on:

Windows XP Windows 7 Windows 10 Windows 11 Windows Server 2008 Windows Server 2016

Note: [1] - The 'metric' fields are generally integers, and I was processing them as such but found one instance where the value was the string "Default", which after some research, would require looking up the OS default metric currently set to identify the numerical value. For this reason, I changed the schema type to string and left the original value for the end user to interpret.

This closes #600

kellyjonbrazil commented 1 month ago

This PR seems to have other unrelated files in it (e.g. ipconfig.py and associated test files). Could you re-open this PR with a clean set of files?

joehacksalot commented 1 month ago

I'll get those removed. I branched off of the wrong branch when I started. It'll be up soon

joehacksalot commented 1 month ago

ok. should be ready now