Skip to content

Add --depth flag to limit directory traversal depth #5

@MatthewMckee4

Description

@MatthewMckee4

Summary

Add a --depth <N> flag to limit how deep kount recurses into directories. Useful for getting a high-level overview of a project without descending into deeply nested dependencies or vendored code.

Example

# Only count files in the immediate directory
kount --depth 1 .

# Count up to 3 levels deep
kount --depth 3 src/

Acceptance criteria

  • --depth <N> limits directory traversal to N levels
  • --depth 0 counts only explicitly provided files
  • --depth 1 counts files in the given directory but not subdirectories
  • Works with the ignore crate's max_depth setting

Metadata

Metadata

Assignees

No one assigned

    Labels

    cliRelated to the command-line interfaceenhancementNew feature or requestfilteringRelated to file filtering and selection

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions