Commit graph

3 commits

Author SHA1 Message Date
c0c9148281
cmds.projects.CmdCreateFile: Add subdirs src/python

In order to allow Pyright to check the types provided by dependant repositories without installing them, pyrightconfig.json contains a list of paths to their root directories in "extraPaths". These paths are unusable for Pyright, though: For type checking to work, it needs to be pointed to the "jw" namespace package paths within those repos. This commit achieves that by appending the subdirs src/python and tools/python to them, provided they exist.

TODO: This fix hardcodes the current project directory structure. Better would be a way to customize that via makefiles, where the paths can be more easily customized.

Signed-off-by: Jan Lindemann <jan@janware.com>
2026-06-09 07:45:15 +02:00
6dfb238364
cmds.projects.CmdCreateFile: Fix double-double quotes

CmdCreateFile creates quotes in- and outside of tmpl_render(), which makes for one too many. Fix that.

Signed-off-by: Jan Lindemann <jan@janware.com>
2026-06-04 23:14:49 +02:00
49016373e1
cmds.projects.CmdCreateFile: Add module

Add CmdCreateFile as a command to generate files from project metadata. It uses the new tmpl_render() engine, might serve as a central location to replace other code generating files, let's see how that evolves.

Signed-off-by: Jan Lindemann <jan@janware.com>
2026-05-31 18:20:29 +02:00