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

added -rename=false cli flag #62

Merged
merged 8 commits into from
Oct 16, 2020
Merged

Conversation

shlomimatichin
Copy link
Contributor

@shlomimatichin shlomimatichin commented Oct 11, 2020

resolves #52
resolves #30

Copy link
Contributor

@roni-frantchi roni-frantchi left a 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.

tfschema/tfschema.go Show resolved Hide resolved
main.go Outdated Show resolved Hide resolved
args.Dir = setFlag("dir", ".")
args.IsSkipTerratagFiles = booleanFlag("skipTerratagFiles", true)
args.Verbose = booleanFlag("verbose", false)
args.Rename = booleanFlag("rename", true)
Copy link
Contributor

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

Copy link
Contributor Author

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.

Copy link
Contributor

Choose a reason for hiding this comment

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

That's fair.

file/file.go Outdated Show resolved Hide resolved
Copy link
Contributor

@roni-frantchi roni-frantchi left a comment

Choose a reason for hiding this comment

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

🔥

@omry-hay
Copy link
Contributor

@roni-frantchi @shlomimatichin can we merge this one?

@roni-frantchi roni-frantchi merged commit 383fed0 into env0:master Oct 16, 2020
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.

Have a flag on whether or not rename original files Better (and more descriptive) loggings
3 participants