Skip to content

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

Open
ravelll wants to merge 2 commits intomasterfrom
on
Open

Add a option '--on' to 'furik activity'#12
ravelll wants to merge 2 commits intomasterfrom
on

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