cps-org / cps-org/cps-config

Add `--format=json` option

Open
#8 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
C++
Stars
21
Forks
8
PR merge metrics
No merged PRs in 30d

Description

The default format, which is `pkgconf` compatible is useful for pkg-config, but also mixes various kinds of flags together on a single line. A JSON format could also be provided for tools willing to implement cps-config specific support, which would allow separating different kinds of flags. This would allow a build system to run cps-config once to get all of the information it needs, but be able to separate that information internally without post processing or running pkg-config/pkgconf multiple times with different flags.

One example where this may be important is separating the output of `--cflags-only-I` and `--cflags-only-other`

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the command-line handling for the existing format options and trace how cflags and other flag categories are collected. Define the JSON output structure for those categories and add support for --format=json; done means one invocation exposes separable flag information without post-processing.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.