Comments (11)
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.
You're right. Thank you for correcting me.
from git-standup.
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.
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.
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.
Maybe, but I guess days option should itself be there as well.
from git-standup.
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.
@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.
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.
Thank you 👍
from git-standup.
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)
- Add flag to include branch name in commit output HOT 7
- Feature request: return commits for a single day
- Option to disable logging of repos without activity HOT 1
- Rebased commits appear multiple times
- Show time of the day HOT 2
- Incorrectly parses directories with spaces
- Feature Request: Filter on branch HOT 1
- Are multi line commit messages supported? HOT 2
- Bash and Zsh auto-completion
- for some reason, the tool no longer is searching all folders HOT 1
- Install : Not straight forward to install on Windows (Git-bash) HOT 1
- Bug: Detached branches trigger errors
- Include commits you are a co-author for
- Idea: Config for including/excluding specific projects/directories by path/glob
- $WEEKSTART comparison fails on non-English locales. HOT 1
- ignoring certain folder patterns? HOT 1
- No colors when running through watch
- Option to use AuthorDate instead of CommitDate HOT 3
- Does not work at user home level if the user directory itself is a Git repository as well HOT 1
- Doesn't respect git author per repo HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from git-standup.