Skip to content

Add .pulserrc.json config file support #3

@TheStack-ai

Description

@TheStack-ai

Context

All configuration is via CLI flags only. There is no config file. Users running pulser in CI or across multiple repos have to repeat flags every time:

pulser --strict --all --format json

Proposed solution

Support a .pulserrc.json config file:

{
  "strict": true,
  "all": true,
  "format": "json",
  "path": ".claude/skills"
}

Lookup order:

  1. .pulserrc.json in current directory
  2. ~/.pulserrc.json as global fallback
  3. CLI flags always override config file

What to do

  1. Create src/config.ts with a loadConfig() function
  2. Modify src/index.ts to merge config with CLI opts before calling run()
  3. The CLIOptions type in src/types.ts already defines the shape — reuse it

Files to modify

  • New: src/config.ts
  • src/index.ts (merge logic)

Difficulty: Easy-Medium

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions