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

Add lua , c , c++ , js , python , go to format options #2040

Open
rudy-in opened this issue Sep 15, 2024 · 5 comments
Open

Add lua , c , c++ , js , python , go to format options #2040

rudy-in opened this issue Sep 15, 2024 · 5 comments

Comments

@rudy-in
Copy link

rudy-in commented Sep 15, 2024

the thing is explained above

@rudy-in
Copy link
Author

rudy-in commented Sep 15, 2024

Also can you add something like lua to nickel and toml to nickel , would be alot helpful thank you

@yannham
Copy link
Member

yannham commented Sep 16, 2024

Hello, I think the issue is missing a bit of context. What do you mean by "format options"? Are talking about the --format argument of nickel export? In that case, what does this mean to export a record to e.g. C++?

Or maybe I should put it differently: what are you trying to do precisely, so that we can understand better what we could do about it.

@rudy-in
Copy link
Author

rudy-in commented Sep 16, 2024

i need more format options , even if you cant add c , c++ in that its okay , but can you add lua , go , python and js to it? yes im talking about nickel export the --format flag , i can also help yall but im not familiar with the codebase right now understanding , the reason why i need it is because im kinda using this lang as a main language for my independent distro

@yannham
Copy link
Member

yannham commented Sep 16, 2024

I think my question is what do you want to do with the exported data? For example, in Python, wouldn't that be much easier to just export to JSON and read the JSON from Python to turn that into a dictionary? I would imagine that Lua can load JSON easily as well.

I can understand that for compiled language it's a bit different if you want your config to be available at compile-time.

@rudy-in
Copy link
Author

rudy-in commented Sep 16, 2024

reading json is easy in python

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

2 participants