Files
git.stella-ops.org/docs/features/unchecked/cli/policy-workspace-initialization-cli.md

1.1 KiB

Policy Workspace Initialization CLI

Module

Cli

Status

IMPLEMENTED

Description

Initialize a policy workspace directory with template support (minimal, baseline, vex-precedence, reachability, secret-leak, full). Creates policy files, optional Git repository, README, and test fixtures directory.

Implementation Details

  • Command Group: src/Cli/StellaOps.Cli/Commands/PolicyCommandGroup.cs -- policy workspace commands
  • Commands:
    • stella policy init <dir> -- initialize policy workspace. Options: --template minimal|baseline|vex-precedence|reachability|secret-leak|full, --git, --fixtures
  • Creates: policy file, README.md, optional .git, optional fixtures/ directory

E2E Test Plan

  • Run stella policy init ./my-policies --template baseline and verify workspace created
  • Verify policy file created with baseline template content
  • Run with --git and verify Git repository initialized
  • Run with --fixtures and verify fixtures directory with sample test data
  • Verify README.md created with workspace documentation
  • Verify all template types generate valid policy files