Git Product home page Git Product logo

Comments (11)

neeasade avatar neeasade commented on May 29, 2024 1

As there are currently options for name and week start/end(which only works if you include both) -- maybe move this to use getopts ?

git standup -n "name" -w "SUN-SAT" -d 4 ?

but still be compatible with a one name call if one arg.

from git-standup.

fabienduhamel avatar fabienduhamel commented on May 29, 2024 1

You're right. Thank you for correcting me.

from git-standup.

kamranahmedse avatar kamranahmedse commented on May 29, 2024 1

Hey @nicosomb
I forgot to make a release for that. Just created it https://github.com/kamranahmedse/git-standup/releases/tag/2.0.0. Thanks

from git-standup.

kamranahmedse avatar kamranahmedse commented on May 29, 2024

Nope, it would work even if you do not provide the week days and only the name. But to change weekdays which is the last parameter you will have to provide the name as well.

Anyways, it needs to be changed, I had it in mind to change that just holding off for not having much time to work on that.

from git-standup.

neeasade avatar neeasade commented on May 29, 2024

I guess, better would be to use long options i.e.:
git standup --name="name" -week="SUN-SAT" --days=4

rockin - perhaps instead of days, maybe just allow an option to set the SINCE arg you're passing to the git log command?

from git-standup.

kamranahmedse avatar kamranahmedse commented on May 29, 2024

Maybe, but I guess days option should itself be there as well.

from git-standup.

fabienduhamel avatar fabienduhamel commented on May 29, 2024

Getops should work fine as @neeasade said. It handles long and short options in any order.

git-standup -n "name" -w "SUN-SAT" -d 4
git standup --name="name" --week="SUN-SAT" --days=4
git standup -n "name" --week="SUN-SAT" -d 4
git standup -d 4

should run perfectly. I tried not to broke the code yesterday but it seems that this is the best option. Next try soon.

from git-standup.

neeasade avatar neeasade commented on May 29, 2024

@fabienduhamel getopts bash builtin does not handle long args. getopt (a shell arg tool present in most linux systems, not OSX/BSD systems) does handle long args (ref link). The most portable option appears to be something like this.

from git-standup.

kamranahmedse avatar kamranahmedse commented on May 29, 2024

Added the support for that. Now you can do

$ git standup -d 5

And it will show you what you have done since the last 5 days. Also, other options have been updated, now there are -a, -w and -d flags for author, week and days respectively.

from git-standup.

fabienduhamel avatar fabienduhamel commented on May 29, 2024

Thank you 👍

from git-standup.

nicosomb avatar nicosomb commented on May 29, 2024

Hello @kamranahmedse!

Can you tag a new release with this nice feature (thanks @fabienduhamel for the idea ;-) ) please?
Then I will publish this new version on homebrew.

from git-standup.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.