Skip to content

feat: burnless init interactive wizard (#12)#54

Merged
Dinushi94 merged 1 commit into
mainfrom
feat/init-wizard
Jul 2, 2026
Merged

feat: burnless init interactive wizard (#12)#54
Dinushi94 merged 1 commit into
mainfrom
feat/init-wizard

Conversation

@Dinushi94

Copy link
Copy Markdown
Contributor

What this PR does

Extends burnless init from a basic 2-question prompt into a full 6-step interactive wizard using the survey library.

Changes

  • Added github.com/AlecAivazis/survey/v2 dependency
  • Rewrote internal/cli/init.go to prompt for:
    1. Service name (required)
    2. Team (required)
    3. SLO availability target % (default 99.9, validated 0–100)
    4. SLO window — arrow-key select: 7d / 30d / 90d (default 30d)
    5. Prometheus metric name (default http_requests_total)
    6. Slack channel for alerts (default #sre-incidents)
    7. On-call provider — arrow-key select: pagerduty / opsgenie / none (default pagerduty)

Testing

  • Smoke tested: all 6 prompts fire, sre.yaml written correctly
  • burnless validate passes on generated file
  • make lint clean

Closes #12

@Dinushi94 Dinushi94 merged commit 478a08e into main Jul 2, 2026
1 check passed
@Dinushi94 Dinushi94 deleted the feat/init-wizard branch July 2, 2026 15:20
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.

feat: burnless init interactive wizard

1 participant