Feedback Wanted! The state of the CLI #372
Replies: 4 comments 22 replies
-
Yes, I'm in favor! My suggestion is renaming the low-level compiler to Open question: should |
Beta Was this translation helpful? Give feedback.
-
As mentioned in the discussion that I started. I want this tool to be powerful enough so most if not all projects can use it directly, rather than it being driven by build tools like So, I would like to see an Automatically runs a build script to generate code A script that runs after compiling, for if the target needs the code to be in a special shape. Also a |
Beta Was this translation helpful? Give feedback.
-
I love the proposal! I don't think I need much out of it, but I like the ideas you proposed. There is only one thing I would like to nitpick on, if possible:
I personally think LuaRocks should be the one to handle this? It's not something LuaRocks currently does, as it only handles Lua modules, but I think placing the |
Beta Was this translation helpful? Give feedback.
-
Alright, over the weekend I basically hammered out the sort of basic ideas that I had for this and now have a somewhat viable product to show off. For your viewing enjoyment: The cli bootstrapping itself from the old one: Building my neovim config: (which is probably too big for its own good, but hey, good stress test) So the course of action is mostly:
Then, once this is at least somewhat stabilized, work on the language server can continue, since this provides a nice api to load a |
Beta Was this translation helpful? Give feedback.
-
Hey all, there's been quite a bit of discussion about the scope of the current cli and we'd like some feedback.
As a brief intro, I've written a good chunk of where the current cli stands as well as a little offshoot experiment here called teal-cli, and have kicked off the development of the language server here.
The cli has been growing steadily and the scope of it has come into question about if it should be its own project. I'm generally in favor of this for the reasons outlined below.
I think the end result of this discussion is basically the ideas proposed by myself in #187, where the cli gets split of into its own fully fledged module, with a nice api for external tooling like a language server to use, and this repo is left with a very minimal cli that can just type check and compile simple files, not entire projects, along with an api for the package loader
tl.loader()
, and external tools like the cli to use for compiling.teal-cli
was a super experimental project for implementing things that I wanted. Basically a rough draft of cool features. But the code is a little messy, was written when some of the api to Teal itself wasn't as nice, and I personally would rather start from the ground up with the hindsight ofteal-cli
's codebase, rather than try to salvage it. Additionally, it brought in myltreesitter
module, which is a nice module, but tree-sitter can be a little annoying to install.So a new cli is going to be written, in its own repo and everything. So where do you, the user of Teal, come in?
Well what do you expect this tool to do? I'll start with some stuff that I would expect out of it.
teal-types
repo? One feature I implemented inteal-cli
was in a global config, you could point to where you installed theteal-types
repo and it would add the relevant folders to your pathtlconfig.tl
? Or having some sort ofproject.tl
/build.tl
/something else?Beta Was this translation helpful? Give feedback.
All reactions