Skip to content

feat: add --json flag to list command#120

Merged
sametcelikbicak merged 2 commits into
rolecraft-sh:mainfrom
BenjaminAyivoh1:feat/list-json-output
Jul 17, 2026
Merged

feat: add --json flag to list command#120
sametcelikbicak merged 2 commits into
rolecraft-sh:mainfrom
BenjaminAyivoh1:feat/list-json-output

Conversation

@BenjaminAyivoh1

@BenjaminAyivoh1 BenjaminAyivoh1 commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds support for a --json flag to the rolecraft list command.

Changes

  • Adds a --json option to the CLI.
  • Outputs installed skills as JSON when --json is used.
  • Preserves the existing tree output for rolecraft list.
  • Includes computed scope together with lockfile fields such as installedAt, source, sourceType, and agents.
  • Adds tests for JSON output.

Closes #118

Signed-off-by: Benjamin Ayivoh <218328228+BenjaminAyivoh1@users.noreply.github.com>
Co-authored-by: BenjaminAyivoh1 <benjaminayivoh1@users.noreply.github.com>
@sametcelikbicak
sametcelikbicak merged commit f28adc2 into rolecraft-sh:main Jul 17, 2026
3 checks passed
@BenjaminAyivoh1
BenjaminAyivoh1 deleted the feat/list-json-output branch July 17, 2026 18:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: add --json flag to list command for machine-readable output

2 participants