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

Get line number of toml table or value in file #74

Open
oshawa-connection opened this issue Jun 21, 2022 · 1 comment
Open

Get line number of toml table or value in file #74

oshawa-connection opened this issue Jun 21, 2022 · 1 comment

Comments

@oshawa-connection
Copy link

oshawa-connection commented Jun 21, 2022

First off, thank you so much for making this library :)

Is there a way to get the line number of a table within a file? If not, is it a good idea to implement? I'd be happy to do the pull request if it is!

For example, if a config file has an invalid value (like there is a string value that must be one of a set number of values), someone could use this function to print out "invalid value at line X" to help find and fix their config file for their app.

@oshawa-connection
Copy link
Author

Created a PR for this #75

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

No branches or pull requests

1 participant