Skip to content

feat(cli): manifest command with add flag #153

@kriscoleman

Description

@kriscoleman

feat(cli): manifest command with add flag

Add a new manifest command to the CLI that allows users to manage their flag manifest file directly from the command line. This will provide a more streamlined workflow for flag management without requiring manual file editing.

Starting with the add sub-command to add new flags to the manifest file, with plans to expand to other manifest management operations in the future.

Acceptance Criteria

  • Implement openfeature manifest add command
  • Command requires flag name and default value as mandatory parameters
  • Command defaults type to "boolean" but allows override via optional type parameter
  • Command accepts optional description parameter
  • Command validates flag configuration before adding to manifest
  • Use temp file pattern for safe I/O operations:
    • Write updated manifest to temporary file
    • Complete all I/O operations on temp file
    • Only overwrite original manifest if no errors occur
  • Command provides clear success/error feedback
  • Command follows existing CLI patterns and conventions
  • Add appropriate help text and usage examples showing required vs optional parameters
  • Include unit tests for the new functionality

Notes

  • Required parameters: name, default value
  • Optional parameters: type (defaults to "boolean"), description
  • Follow existing temp file pattern used elsewhere in codebase for safe file operations
  • This is the first step in a broader manifest management feature set
  • Future sub-commands may include: remove, list, update, validate
  • Should integrate with existing manifest file format and validation logic

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions