Whenever I work on a project and want the architecture of my project, I just simply use tree -I "(libraries, artifacts, etc.)". However, you can’t exactly use pacman, yay, npm, or any other method of installing packages in Roblox Studio. You use Plugins and of those that exist.
I couldn’t find one so far, but does anyone know if there exists such a plugin to generate a tree with a specified path.
Also, one more thing. If it is possible, how do you do it? Since there isn’t really a terminal in Roblox Studio. Just a command bar. What’s the command bar’s root (e.g. ./game, game/, game/workspace, etc.)?
This might be a stupid question as I do not expect Roblox Studio to have as many different features and plugins like you’d usually use off-site as you can’t create anything but games. What I create are more real-world based.
The command line (or any Lua) doesn’t have a concept of a current location. It has globals like script and game, the latter points to the root of the workspace, the former asks the engine to return which Script instance the code is being run on behalf of. script is nil for the command line, since what it runs is not associated to any instance.
To print a tree you just need to recursively iterate through each Instance’s children. Typically you’d indent more for each level.