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

Add a option '--on' to 'furik activity' #12

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Add a option '--on' to 'furik activity' #12

wants to merge 2 commits into from

Conversation

ravelll
Copy link
Contributor

@ravelll ravelll commented Sep 16, 2016

I add a option '--on' to 'furik activity' command.
This option makes showing activities on a day simple.
Currently, to show it, we need to specify a date to both '--from' and '--to' options like below.

$ furik activity --from 2016-09-01 --to 2016-09-01

By using '--on' option, we can show it easily.

$ furik activity --on 2016-09-01

@linyows
Copy link
Contributor

linyows commented Sep 16, 2016

need test!

to = Date.parse(options[:to])
on = Date.parse(options[:on]) if options[:on]
from = on || Date.parse(options[:from])
to = on || Date.parse(options[:to])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

このonはこのあとどこで使われるんですかっ

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ravelll
Copy link
Contributor Author

ravelll commented Sep 16, 2016

japanese-apologies-gifs-_uudc

@hsbt
Copy link
Contributor

hsbt commented Sep 16, 2016

I prefer to use exist options such as from and to. When on option was provide, We can assign on value to from and on value + 1 to to.

@ravelll How do you think this?

@hsbt
Copy link
Contributor

hsbt commented Sep 16, 2016

oops, Your implementation is already adopt my comments 🙇

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.

4 participants