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 a JS config file mode. #22

Open
bbkane opened this issue Nov 7, 2024 · 0 comments
Open

Add a JS config file mode. #22

bbkane opened this issue Nov 7, 2024 · 0 comments

Comments

@bbkane
Copy link
Owner

bbkane commented Nov 7, 2024

The "directory" linking mode currently implemented doesn't support apps wanting their config in different places depending on the OS, or the user wanting to link a specific config depending on the hostname, etc.

It might be pure over engineering fun to embed a scripting language that the user can use to produce a list of links.

API:

fling config
    create # create config with type skeletons 
    eval # eval the config and print list of links 
    link
    unlink 

Things I want from the scripting language:

  • a pure go library
  • easy FFI
  • sandboxed
  • IDE support

I think GoJa with JSDoc comments + VS Code satisfy these, or perhaps Lua with LuaLSP type hints, or perhaps Typescript with whatever Logdy does

I also need to embed the version in the config so I can print a migration guide link if the API fling expects changes

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