Skip to content

feat: create parent directories for output files automatically #12

@dyoshikawa-claw

Description

@dyoshikawa-claw

Summary

When --output points to a path inside a directory that does not exist yet, ghactivities currently fails instead of creating the directory automatically.

Motivation

A first-run example like --output ./tmp/ghactivities.json should work without requiring the user to create ./tmp manually.

Expected behavior

  • Create the parent directory for --output when it does not exist
  • Keep existing behavior for plain file paths in the current directory
  • Return a clear error only when directory creation is impossible

Notes

This was observed during a real local test run of the CLI.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions