Skip to content

feat: add --disable-age and --disable-stats flags#250

Open
StanislavKozachenko wants to merge 1 commit intovoidcosmos:mainfrom
StanislavKozachenko:feat/disable-age-disable-stats
Open

feat: add --disable-age and --disable-stats flags#250
StanislavKozachenko wants to merge 1 commit intovoidcosmos:mainfrom
StanislavKozachenko:feat/disable-age-disable-stats

Conversation

@StanislavKozachenko
Copy link
Copy Markdown

Closes #249

Changes

  • Added disableAge and disableStats to the CLI config interface and default config.
  • Registered --disable-age and --disable-stats options in CLI help/options.
  • Added disableAge to CalculateFolderStatsOptions in scan.service.ts.
  • Updated calculateFolderStats() to skip modification time calculation when disableAge is enabled.
  • Updated result display to show placeholder text in Age column when --disable-age is enabled.
  • Implemented --disable-stats as a shortcut that enables both --disable-size and --disable-age.
  • Updated test config fixture to include the new fields.

Validation

  • npm test passes.
  • Verified --disable-age shows .. in the Age column instead of calculating modification time.
  • Verified --disable-stats disables both Size and Age columns.

Note

--disable-age and --disable-stats currently affect interactive UI mode.

- --disable-age skips modification time calculation
- --disable-stats is a shortcut for --disable-size + --disable-age

Closes voidcosmos#249
@StanislavKozachenko
Copy link
Copy Markdown
Author

@zaldih

Hi! Could you please review this PR?

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.

[FEATURE REQUEST] Disable age and stats calculation

1 participant