Skip to content

feat: --format json flag on all commands #6

@stackbilt-admin

Description

@stackbilt-admin

Summary

CLIOptions.format is hardcoded to 'text' in src/cli.ts. The json mode only works when commands are called programmatically, not from the CLI entrypoint.

An agent piping stackbilt run or stackbilt classify needs structured output.

Fix

Wire --format json through the CLI dispatcher in src/cli.ts and pass it to each command. Each command already accepts CLIOptions with a format field — this is purely a dispatcher fix.

stackbilt classify "my intention" --format json
stackbilt architect "my intention" --format json
stackbilt run "my intention" --format json

Also add stackbilt --version and stackbilt --help while here — both are currently absent.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions