Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Complex data tabulation using the -s option #22

Open
PackeTsar opened this issue Mar 8, 2024 · 0 comments
Open

Complex data tabulation using the -s option #22

PackeTsar opened this issue Mar 8, 2024 · 0 comments

Comments

@PackeTsar
Copy link
Owner

PackeTsar commented Mar 8, 2024

Allow the input of JSONPath-like syntax to extract complex data for tabulation.

Example:

The meraki networks getNetworkClients command provides output like

    {
        "id": "xxxxxxxx",
        "mac": "xx:xx:xx:xx:xx:xx",
        "description": "SomeEndpoint",
        "usage": {
            "sent": 711311,
            "recv": 345962,
            "total": 1057274
        },
        "status": "Online",
        "notes": null,
        "groupPolicy8021x": null,
        "adaptivePolicyGroup": null,
        "smInstalled": false
    }

Normally, the usage data is squashed out of tabulation.

Allow the use of an option like -s "id,mac,usage.sent,usage.recv" with dot-separators to extract and tabulate the nested data.

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

No branches or pull requests

1 participant