Perfexionists / perun

Lightweight Performance Control System
GNU General Public License v3.0
16 stars 14 forks source link

Rework the handling of NotInPerunRepository exception #171

Closed tfiedor closed 8 months ago

tfiedor commented 9 months ago

Currently, when NotInPerunRepository exception is fired, the execution stops and user has to manually set up the Perun.

The functionality should be changed into following:

  1. When .perun does not exist and perun is run, then warning is issued to user and user is prompted whether user wants to initialize perun repository. If not confirmed the execution fails, otherwise, the following can happen:
    1. .git exists in the directory, then Perun is initialized with the git
    2. .git does not exist in the directory, then Perun is initilized with lightweight custom kernelvcs/osvcs, which is only based on OS/environment version.