Closed shantanuraj closed 1 year ago
A follow up to this would be a PR implementing a custom parsing logic for the toml
files, that expands our macros.
Finally after that we can incorporate the unrolled config into our time entry start commands.
Just chiming in that it's functioning beautifully for me π
:star2: What does this PR do?
:bug: Recommendations for testing
toggl config
command to manage auto tracking configuration [^1].New commands introduced
:memo: Links to relevant issues/docs
See #45 which defines the configuration storage and retrieval mechanism. Minor changes have been incorporated that differ from the original spec.
Instead of using
md5(path)
we usebase64(path)
toggl config list
to log all tracked paths; it would be trivial. Config files are stored in directories specified by thedirectories::ProjectDirs::from("studio.watercooler", "labs", "toggl-cli")
[^3] method.I've updated the spec to reflect these changes.
Current locations are
$XDG_CONFIG_HOME
/toggl-cli or$HOME
/.config/toggl-cli{FOLDERID_RoamingAppData}
/labs/toggl-cli/config$HOME
/Library/Application Support/studio.watercooler.labs.toggl-cli:speech_balloon: Summarise how you feel about this PR with a gif/image
[^1]: Auto tracking RFC at #45
[^3]: For platform agnostic config directory calculation https://docs.rs/directories/5.0.0/directories/struct.ProjectDirs.html#method.config_dir