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

feat: input files on keys #6

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

sto
Copy link

@sto sto commented Nov 5, 2023

This MR includes my previous fix to return 1 on errors and adds a new input flag to allow loading data on a variable; this allows reading a file that contains something that is not a dict (in the example I use a list) and is useful to read multiple versions of the same input on different keys (that's why I wanted the feature on the first place).

As I'm using vim-go as my IDE and it uses tools to lint and improve code I've also applied changes to remove warnings (i.e. use functions on io or os modules instead of io/ioutil and some other style changes like using snakeCase names for variables).

This commit adds a '-k' option that loads onto a key the data from a given file.
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.

1 participant