-
Notifications
You must be signed in to change notification settings - Fork 44
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
added -rename=false cli flag #62
Conversation
53f0880
to
572b239
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good @shlomimatichin .
Added a couple of comments.
Also let's update the readme on this one.
args.Dir = setFlag("dir", ".") | ||
args.IsSkipTerratagFiles = booleanFlag("skipTerratagFiles", true) | ||
args.Verbose = booleanFlag("verbose", false) | ||
args.Rename = booleanFlag("rename", true) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd change this flag to be overwrite
and default to false
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
imho overwrite
boolean is a confusing term. overwrite
true makes sense. but in false, i would expect the file not to change, but currently it disappears, and two other files appear in it's place... so i'm not in love with rename
but i would avoid overwrite
, at least in my association of the term, it's confusing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's fair.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔥
@roni-frantchi @shlomimatichin can we merge this one? |
resolves #52
resolves #30