Skip to content

feat(hooks): use ZENABLE_NONINTERACTIVE for non-interactive installs#97

Merged
JonZeolla merged 2 commits intomainfrom
feat/zenable-noninteractive
Apr 15, 2026
Merged

feat(hooks): use ZENABLE_NONINTERACTIVE for non-interactive installs#97
JonZeolla merged 2 commits intomainfrom
feat/zenable-noninteractive

Conversation

@JonZeolla
Copy link
Copy Markdown
Member

Summary

  • Replace ZENABLE_YES env var with ZENABLE_NONINTERACTIVE for clarity — the intent is "don't prompt," not "answer yes to everything"
  • Simplify post-gen hook: the installer scripts now handle integrations in non-interactive mode, so remove the post-install PATH manipulation and second binary lookup
  • When zenable is already installed (skipping the installer), pass -y to zenable install

Companion PR

  • Zenable-io/next-gen-governance#5149 — updates install.sh and install.ps1 to support ZENABLE_NONINTERACTIVE and run zenable install -y in non-interactive mode

Test plan

  • Verify template generation works with ZENABLE_NONINTERACTIVE=1 set
  • Verify template generation works when zenable CLI is already installed (should call zenable install -y)
  • Verify template generation works when zenable CLI is not installed (installer handles full flow)
  • CI tests pass

🤖 Generated with Claude Code

JonZeolla and others added 2 commits April 15, 2026 12:13
Replace ZENABLE_YES with ZENABLE_NONINTERACTIVE env var for clarity.
The installer scripts now handle integrations in non-interactive mode,
so remove the post-install PATH manipulation and second binary lookup.
When zenable is already installed, pass -y to zenable install.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@JonZeolla JonZeolla merged commit 6d9fcac into main Apr 15, 2026
5 checks passed
@JonZeolla JonZeolla deleted the feat/zenable-noninteractive branch April 15, 2026 18:35
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.

1 participant