mirror of https://github.com/open-feature/cli.git
* feat: add compare command to cli A new 'compare' command has been added to the CLI. This command allows users to compare two manifest files and list the changes between them. The comparison is done by loading each manifest file, then using a new function from the 'manifest' package to identify differences. Error handling has also been implemented for scenarios where loading or comparing manifests fails. Tests were also included to test the compare function. Signed-off-by: Kris Coleman <kriscodeman@gmail.com> * feat: adds tree behavior to compare cmd Compare now supports flat, tree, and color output modes. Signed-off-by: Kris Coleman <kriscodeman@gmail.com> * chore: refactors compare command flag handling Refactors the compare command to use the global manifest flag and introduces an 'against' flag for specifying the target manifest for comparison. This change simplifies command usage and aligns it with other commands that utilize the global manifest configuration. Signed-off-by: Kris Coleman <kriscodeman@gmail.com> * feat: Adds output formats to compare Adds the ability to render the differences between manifests in JSON format, providing a structured output suitable for consumption by other tools or systems. Also, introduces validation for the output format flag. Signed-off-by: Kris Coleman <kriscodeman@gmail.com> * feat: adds yaml output format Adds the ability to output manifest comparison results in YAML format. This provides users with another option for viewing and processing the differences between manifests, which can be useful for configuration management and automation tasks. The changes include: - Implementation of a new render function for YAML output. - Modification of the output format selection logic to include YAML. - Addition of YAML as a valid output format option in the command line interface and documentation. Signed-off-by: Kris Coleman <kriscodeman@gmail.com> --------- Signed-off-by: Kris Coleman <kriscodeman@gmail.com> |
||
|---|---|---|
| .. | ||
| openfeature.md | ||
| openfeature_compare.md | ||
| openfeature_generate.md | ||
| openfeature_generate_csharp.md | ||
| openfeature_generate_go.md | ||
| openfeature_generate_java.md | ||
| openfeature_generate_nestjs.md | ||
| openfeature_generate_nodejs.md | ||
| openfeature_generate_python.md | ||
| openfeature_generate_react.md | ||
| openfeature_init.md | ||
| openfeature_version.md | ||