Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting per-hour rate #7

Open
jdudek opened this issue Dec 17, 2012 · 4 comments
Open

Setting per-hour rate #7

jdudek opened this issue Dec 17, 2012 · 4 comments

Comments

@jdudek
Copy link
Member

jdudek commented Dec 17, 2012

Allow setting your rate via muon config and display how much money you've earned today. Consider setting currency as well.

@paneq
Copy link
Member

paneq commented Jan 13, 2013

+1

@jdudek
Copy link
Member Author

jdudek commented Jan 13, 2013

The user should be able to set rate on three levels:

  • global config
  • local config
  • particular commit

We talked with @mlomnicki about the case when you have higher rate for weekends or evenings. Hopefully this could be handled via git pre-commit hook, which would add rate to commits created on weekends.

@paneq
Copy link
Member

paneq commented Jan 13, 2013

What do you mean by local ? Per project ? If so, that is what I need :)

pre-commit hook. Interesting idea. Here is mine:

Support configuration via ruby code.

So that I could write something like:

Muon.per_hour do |project, session, started_at, finished_at|
  random(5)
end

in ~/.muonprojects or perhaps .muon/config ?

I would love to see that :) And other configuration options implemented in similar way...

@jdudek
Copy link
Member Author

jdudek commented Jan 13, 2013

~/.muonprojects is just a list of projects. ~/.muonconfig is the global config file, .muon/config is local config file (i.e. per project).

I will think about configuration in Ruby ;)

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

No branches or pull requests

2 participants