Skip to content

Feat: Add --json flag support to interfaces command#211

Merged
ddddddO merged 2 commits intoddddddO:mainfrom
ayb-blc:feature/json-interface-output
Jan 13, 2026
Merged

Feat: Add --json flag support to interfaces command#211
ddddddO merged 2 commits intoddddddO:mainfrom
ayb-blc:feature/json-interface-output

Conversation

@ayb-blc
Copy link
Copy Markdown
Contributor

@ayb-blc ayb-blc commented Jan 13, 2026

Hi! Thanks for this great TUI tool. 🐹

Why this change?
While the interfaces command provides a great human-readable output, it is currently difficult to parse for automation scripts, SIEM integrations, or other tools.

What works:
I added a --json flag to the interfaces command.

  • Users can now run packemon interfaces --json to get a structured JSON output.
  • The default behavior (table view) remains unchanged if the flag is not used.

Example Usage:

$ packemon interfaces --json
[
  {
    "InterfaceName": "eth0",
    "MacAddr": "00:15:5d:...",
    ...
  }
]

@ddddddO
Copy link
Copy Markdown
Owner

ddddddO commented Jan 13, 2026

@ayb-blc
Thanks for the contribution! Great addition!
Merging now!

@ddddddO ddddddO merged commit eefd798 into ddddddO:main Jan 13, 2026
@ddddddO
Copy link
Copy Markdown
Owner

ddddddO commented Jan 13, 2026

@ayb-blc
Copy link
Copy Markdown
Contributor Author

ayb-blc commented Jan 13, 2026

Awesome! Thanks for the super quick review and merge.
Glad I could contribute to the project!

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.

2 participants