You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe what should be investigated or refactored
The embedded commands like zarf tools monitor/kubectl/helm/syft/yq take global flags even though they have absolutely no impact. We should remove these flags from these commands entirely, instead of just hiding them as we do now. Additionally, each command tree should be constructed as an independent root command so flags between tools do not interact with each other.
Each embedded tool will have its own Cobra root, separating its command tree and flags from Zarf and the other tools. The existing zarf tools <tool> interface stays the same, but each embedded tool will accept only its own flags.
The current shared command tree allows Zarf flags to reach embedded tools and lets tools inspect sibling commands.
What this breaks:
Invocations that currently pass unrelated Zarf flags to embedded tools will return an error, including when those flags appear before tools. Affected scripts must remove those flags or use the embedded tool’s native equivalent.
This applies to embedded tools. Zarf-owned helpers under tools will retain their relevant Zarf flags. Existing tool names, aliases, and native flags remain supported.
Activity
dwertent commentedon Oct 27, 2026
I can work on this
dwertent commentedon Nov 5, 2026
Proposed solution
Each embedded tool will have its own Cobra root, separating its command tree and flags from Zarf and the other tools. The existing
zarf tools <tool>interface stays the same, but each embedded tool will accept only its own flags.The current shared command tree allows Zarf flags to reach embedded tools and lets tools inspect sibling commands.
What this breaks:
Invocations that currently pass unrelated Zarf flags to embedded tools will return an error, including when those flags appear before
tools. Affected scripts must remove those flags or use the embedded tool’s native equivalent.For example:
This applies to embedded tools. Zarf-owned helpers under
toolswill retain their relevant Zarf flags. Existing tool names, aliases, and native flags remain supported.AustinAbro321 commentedon Nov 16, 2026
This strategy sounds good to me
soltysh commentedon Nov 18, 2026
@dwertent feel free to ping me when you have the PR ready, slack is preferred 😅