-
Notifications
You must be signed in to change notification settings - Fork 212
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
Add a toml linter #74
Conversation
os.Exit(-1) | ||
} | ||
io.WriteString(os.Stdout, s) | ||
os.Exit(0) |
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 rather see a if/else
block here rather than os.Exit(0)
.
That's great! Do you mind adding a |
Usage() is called here by flag when -h or some invalid flags are passed |
Perfect. Thanks for your contribution! |
Supports stdin/stdout and also writing to files. Errors will be printed to stderr so they don't get piped to files unintentionally.
Based on #69