You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I like strava-gear! Takes some guesswork out of how much distance I get out of my chains etc. :) But writing the rule file feels a little repetitive especially for boring components like chains.
I've patched up process_rule() a little bit with this:
So now I can just type role: -- and it'll name the part $BIKE-$ROLE-$YEAR$MONTH. Or role: -gp4k-2014 and it'll add the $BIKE-$ROLE prefix only, so I can at least track mildly interesting info like what model tyre I've installed that time. (And $BIKE-$ROLE-000000 for the stock-installed parts. -stock is nicer but doesn't sort as nicely.)
Am I the only one who likes this shorthand kind of syntax or is this worth a cleaned up PR?
The text was updated successfully, but these errors were encountered:
I like strava-gear! Takes some guesswork out of how much distance I get out of my chains etc. :) But writing the rule file feels a little repetitive especially for boring components like chains.
I've patched up
process_rule()
a little bit with this:So now I can just type
role: --
and it'll name the part$BIKE-$ROLE-$YEAR$MONTH
. Orrole: -gp4k-2014
and it'll add the$BIKE-$ROLE
prefix only, so I can at least track mildly interesting info like what model tyre I've installed that time. (And$BIKE-$ROLE-000000
for the stock-installed parts.-stock
is nicer but doesn't sort as nicely.)Am I the only one who likes this shorthand kind of syntax or is this worth a cleaned up PR?
The text was updated successfully, but these errors were encountered: