====== NervHome: Initial project setup ====== * As usual, we start with creating an empty project on gitlab, which we will call "nervhome" (even if I believe I probably already have that name used somewhere in my archives 🤔, but never mind): **Done** * Now I add that project into the nervproj config file: "projects": [ // ... more stuff here ... { "names": ["NervHome", "nvh"], "repository_url": "ssh://git@gitlab.nervtech.org:22002/nerv/nervhome.git" } ] * And now checking out the project locally: $ nvp -p nvh git clone D:/Projects/NervHome * And initializing that project: $ nvp -p nvh admin init * **Cool!** This actually worked just fine! :-) * The init command above will also create a template for the **nvp_plug.py** file where we should define the entrypoint for our project. ===== Navision Time generator ===== * First utility that I need to incorporate in this project is the navision time generator tool: I use this to generate default "navision" (a custom time monitoring tool used in my current job) .csv file. * So I will take the existing project from my giant "NervSeed" repository and convert it into a "component" here, and then I expect to be able to call it with a simple command line such as: $ nvp navi gen [idx] * **Note**: in the command above ''idx'' should be a relative month index compared to the current month * Hmmm... 🤔 actually... thinking about it maybe it's time for an upgrade here too: since I need to provide full weeks when reporting work time now: this tool should thus rather append weeks to a target csv file... let's see... * => **OK** so just using the command above but without a month index now. instead we can generate a "number of weeks" and by defautl going to the end of the year. * And a new full year entry file can be created with the command ''nvp navi gen --year 2023'' for instance.