Skip to content

fix: init wizard captures no selections — add Space instruction to checkbox prompts#14

Merged
chefgs merged 6 commits intomainfrom
copilot/add-process-first-section
Mar 7, 2026
Merged

fix: init wizard captures no selections — add Space instruction to checkbox prompts#14
chefgs merged 6 commits intomainfrom
copilot/add-process-first-section

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 7, 2026

This pull request significantly enhances the Process-First DevOps CLI experience by restructuring the project initializer wizard, introducing new educational content, and improving best practice guidance. The changes align the tool's workflow and documentation with Systems Thinking and Process-First DevOps principles, making it easier for users to understand, select, and standardize tools and processes across the DevOps lifecycle.

Key improvements and additions:

1. Project Initializer Wizard Redesign

  • The init command now groups tool choices by Process-First DevOps stages (e.g., Build, Test, Containerization, SRE), providing descriptions for each group and aligning tool selection with Systems Thinking principles. This replaces the previous flat category-based selection, making the process more intuitive and educational.
  • The mapping from user selections to the legacy configuration structure has been refactored for backward compatibility, ensuring seamless integration with existing workflows.
  • Support for additional tools (e.g., podman) and improved version prompting for selected tools. [1] [2]

2. Expanded Process-First Content and Documentation

  • Added a new "Thought Leaders" section highlighting key figures and quotes on Systems Thinking and Process-First in DevOps, enriching the educational value of the CLI. [1] [2]
  • The "what" section now includes this new content, offering a more comprehensive overview of Process-First ideology.

3. Best Practices by Stage

  • Introduced a detailed "Best Practices by Stage" section, covering actionable, stage-specific recommendations for Build, Containerization, Kubernetes, Testing, IaC, Deploy, SRE, Monitoring, and Security.
  • Users can access this new section via the CLI, and help messages/documentation have been updated accordingly. [1] [2] [3] [4] [5]

4. Improved Tool Mapping and Consistency

  • The tool selection and configuration logic has been refactored for clarity and maintainability, with consistent mapping from user input to internal configuration and environment variables.
  • The mapping table and help texts have been updated to reflect new tools and improved descriptions.

5. Updated CLI Help and Usage Instructions

  • CLI help messages, usage footers, and quick-invocation guides have been revised to reflect new sections and improved command documentation, making it easier for users to discover and use new features. [1] [2] [3] [4]

These changes collectively modernize the CLI, making it a more powerful learning and scaffolding tool for Process-First DevOps adoption.

[1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11]InquirerPy checkbox requires Space to toggle items; pressing Enter immediately returns []. With no visible hint, every wizard group produced an empty selection and the written config had all values false.

Changes

  • cli/devopsos.py — adds instruction= to the single inquirer.checkbox() call in the wizard loop:

    selected = inquirer.checkbox(
        message=f"Select {group_label}:",
        choices=group_info["choices"],
        instruction="(Space to select, ↑↓ to navigate, Enter to confirm)",
    ).execute()
  • cli/test_cli.py — two new tests:

    • test_init_checkbox_includes_space_instruction — asserts every checkbox call carries a non-empty instruction kwarg that mentions "space"
    • test_init_selections_written_to_config — mocks the wizard with concrete per-group selections and asserts the resulting devcontainer.env.json reflects them as true

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

…ices per stage

Co-authored-by: chefgs <7605658+chefgs@users.noreply.github.com>
Copilot AI changed the title [WIP] Add process first section and categorize tools for DevOps Add Systems Thinking framing, DevOps-stage init grouping, and per-stage best practices Mar 7, 2026
…an support

Co-authored-by: chefgs <7605658+chefgs@users.noreply.github.com>
Copilot AI changed the title Add Systems Thinking framing, DevOps-stage init grouping, and per-stage best practices Add dedicated Containerization & Kubernetes groups to init wizard; add podman support Mar 7, 2026
@chefgs chefgs marked this pull request as ready for review March 7, 2026 11:56
Copilot stopped work on behalf of chefgs due to an error March 7, 2026 12:13
@chefgs
Copy link
Copy Markdown
Member

chefgs commented Mar 7, 2026

This is linked to issue #16

…captured

Co-authored-by: chefgs <7605658+chefgs@users.noreply.github.com>
Copilot AI changed the title Add dedicated Containerization & Kubernetes groups to init wizard; add podman support fix: init wizard captures no selections — add Space instruction to checkbox prompts Mar 7, 2026
@chefgs chefgs merged commit 00d092d into main Mar 7, 2026
4 checks passed
@chefgs chefgs deleted the copilot/add-process-first-section branch March 7, 2026 13:07
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