cli/docs/commands
Kris Coleman 063cfca2d7
feat: adds compare command (#93)
* 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>
2025-05-14 19:27:46 +00:00
..
openfeature.md feat: adds compare command (#93) 2025-05-14 19:27:46 +00:00
openfeature_compare.md feat: adds compare command (#93) 2025-05-14 19:27:46 +00:00
openfeature_generate.md feat: add java generator (#107) 2025-05-12 20:29:06 +00:00
openfeature_generate_csharp.md feat(csharp): added generator and integration tests (#97) 2025-04-14 17:40:52 +00:00
openfeature_generate_go.md feat: consolidate logging and support debug flag (#92) 2025-04-02 14:21:20 +00:00
openfeature_generate_java.md feat: add java generator (#107) 2025-05-12 20:29:06 +00:00
openfeature_generate_nestjs.md feat: add codegen for NestJS (#99) 2025-04-18 14:28:35 +00:00
openfeature_generate_nodejs.md feat: consolidate logging and support debug flag (#92) 2025-04-02 14:21:20 +00:00
openfeature_generate_python.md feat: Python generator (#95) 2025-04-10 12:37:44 +00:00
openfeature_generate_react.md feat: consolidate logging and support debug flag (#92) 2025-04-02 14:21:20 +00:00
openfeature_init.md feat: consolidate logging and support debug flag (#92) 2025-04-02 14:21:20 +00:00
openfeature_version.md feat: consolidate logging and support debug flag (#92) 2025-04-02 14:21:20 +00:00