Dedaub / srcup

Dedaub's CLI tool for uploading projects into Watchdog's analysis pipeline
2 stars 1 forks source link

feat: Add version control #5

Closed MichaelXanth closed 10 months ago

MichaelXanth commented 11 months ago

Changes

  1. Add support for --version and -v options to display the current version of the app
  2. Add version control so that when a new version is uploaded, prevent the apps from running and prompt the users to update the app before proceeding
  3. Allow the app to run without the required TARGET argument only when specific flags are enabled (i.e. -v)

Requirements

  1. You need to create a new tag for the desired versions

    • For example, when pushing version 0.4.3 you should create the tag v0.4.3
    • This can be done for each uploaded version or for crucial versions that contain significant changes or important bug fixes
  2. The tags don't need to be annotated. You can use lightweight tags. The commands to create a tag at the latest commit are:

    • git tag v0.4.3
    • git push origin v0.4.3
  3. To delete a tag run:

    • git tag -d v0.4.3
    • git push origin :refs/tags/v0.4.3

Implementation

iliastsa commented 11 months ago

Looks good, we can merge!