muktihari / fit

A FIT SDK for decoding and encoding Garmin FIT files in Go supporting FIT Protocol V2.
BSD 3-Clause "New" or "Revised" License
42 stars 4 forks source link

cli: refactor fitactivity #398

Closed muktihari closed 2 months ago

muktihari commented 2 months ago

New Feature

This PR adds new feature "reduce" to reduce record messages in a FIT file to answer this issue #394 .

This has 3 method to choose:

  1. Based on GPS points using RDP Ramer-Douglas-Peucker.
  2. Based on distance interval in meters
  3. Based on time interval in seconds`

Refactor

How we can interact with fitactivity CLI is also refactored for more structured commands (arguably easier to access and maintain). Some commands may differ, but they should be simple to follow. cmd/fitactivity/README.md file has been updated accordingly regarding the changes.

codecov-commenter commented 2 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 100.00%. Comparing base (2979f67) to head (52cf188). Report is 1 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #398 +/- ## ========================================= Coverage 100.00% 100.00% ========================================= Files 41 41 Lines 3691 3691 ========================================= Hits 3691 3691 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.