1.1 KiB
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 baselineand verify workspace created - Verify policy file created with baseline template content
- Run with
--gitand verify Git repository initialized - Run with
--fixturesand verify fixtures directory with sample test data - Verify README.md created with workspace documentation
- Verify all template types generate valid policy files